From: Akinori Hattori Date: Sat, 23 Jun 2018 08:15:49 +0000 (+0900) Subject: dev-db/qdbm: fix build with >=sys-devel/gcc-7 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e74b7e94d9d15ee82b2a10feb17b2e912a1701e0;p=gentoo.git dev-db/qdbm: fix build with >=sys-devel/gcc-7 Closes: https://bugs.gentoo.org/638878 Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- diff --git a/dev-db/qdbm/qdbm-1.8.78-r1.ebuild b/dev-db/qdbm/qdbm-1.8.78-r2.ebuild similarity index 93% rename from dev-db/qdbm/qdbm-1.8.78-r1.ebuild rename to dev-db/qdbm/qdbm-1.8.78-r2.ebuild index fcb210018c4c..fee0cfe58c34 100644 --- a/dev-db/qdbm/qdbm-1.8.78-r1.ebuild +++ b/dev-db/qdbm/qdbm-1.8.78-r2.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="6" USE_RUBY="ruby21 ruby22 ruby23 ruby24" RUBY_OPTIONAL="yes" -inherit autotools java-pkg-opt-2 perl-functions ruby-ng +inherit autotools flag-o-matic java-pkg-opt-2 perl-functions ruby-ng DESCRIPTION="Quick Database Manager" HOMEPAGE="http://fallabs.com/qdbm/" @@ -89,6 +89,9 @@ src_prepare() { default java-pkg-opt-2_src_prepare + # fix build with >=sys-devel/gcc-7, bug #638878 + append-cflags $(test-flags-CC -fno-tree-vrp) + sed -i \ -e "/^CFLAGS/s|$| ${CFLAGS}|" \ -e "/^OPTIMIZE/s|$| ${CFLAGS}|" \