dev-java/openjdk: fix build on gcc-9 by passing -Wno-error
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 9 May 2019 18:53:30 +0000 (11:53 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 9 May 2019 19:02:27 +0000 (12:02 -0700)
Closes: https://bugs.gentoo.org/685426
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
dev-java/openjdk/openjdk-8.212_p03.ebuild

index f2214b13c4a3c09c3c29b10c523b67b51bbaac5c..ea225e67d6263a0bd249ec258e0f94949c6c10e9 100644 (file)
@@ -133,6 +133,9 @@ src_prepare() {
        for repo in corba hotspot jdk jaxp jaxws langtools nashorn; do
                ln -s ../"${repo}-jdk${MY_PV}" "${repo}" || die
        done
+       # new warnings in new gcc https://bugs.gentoo.org/685426
+       sed -i '/^WARNINGS_ARE_ERRORS/ s/-Werror/-Wno-error/' \
+               hotspot/make/linux/makefiles/gcc.make || die
 }
 
 src_configure() {