sci-electronics/gnucap: Force -std=gnu++98 to fix build with gcc-6, bug 594184
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Wed, 20 Sep 2017 21:24:57 +0000 (23:24 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Wed, 20 Sep 2017 21:25:27 +0000 (23:25 +0200)
The code is otherwise rather unfixable. Maybe one day somebody will have mercy
and do a version bump.

Closes: https://bugs.gentoo.org/594184
Package-Manager: Portage-2.3.10, Repoman-2.3.3

sci-electronics/gnucap/gnucap-0.35.20091207.ebuild

index 4affd99b9d65f675dbff86b240a918d772cf960d..ef828018d8f4f59cb38943111c79cd338d3d142e 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="2"
 
-inherit multilib toolchain-funcs
+inherit multilib toolchain-funcs flag-o-matic
 
 SNAPSHOTDATE="${P##*.}"
 MY_PV="${PN}-${SNAPSHOTDATE:0:4}-${SNAPSHOTDATE:4:2}-${SNAPSHOTDATE:6:2}"
@@ -51,6 +51,7 @@ src_prepare() {
                {src,modelgen}/ap_match.cc || die "sed failed"
 
        tc-export CC CXX
+       append-cxxflags -std=gnu++98
 }
 
 src_compile () {