summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-10-20 20:29:14 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-10-20 20:29:48 +0300
commit9e9f43129927504a22efd67e1ff1320d55d84a56 (patch)
treea523d9d8f04ce252bb152414bc7a18ca84c646b2 /dev-util/yacc
parentsci-physics/thepeg: add missing include (diff)
downloadgentoo-9e9f43129927504a22efd67e1ff1320d55d84a56.tar.gz
gentoo-9e9f43129927504a22efd67e1ff1320d55d84a56.tar.bz2
gentoo-9e9f43129927504a22efd67e1ff1320d55d84a56.zip
dev-util/yacc: fix modern C
Closes: https://bugs.gentoo.org/875506 Closes: https://bugs.gentoo.org/730802 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-util/yacc')
-rw-r--r--dev-util/yacc/Manifest1
-rw-r--r--dev-util/yacc/yacc-1.9.1-r8.ebuild (renamed from dev-util/yacc/yacc-1.9.1-r7.ebuild)10
2 files changed, 9 insertions, 2 deletions
diff --git a/dev-util/yacc/Manifest b/dev-util/yacc/Manifest
index 307ea6be13d6..6318b80e5750 100644
--- a/dev-util/yacc/Manifest
+++ b/dev-util/yacc/Manifest
@@ -1 +1,2 @@
+DIST yacc-1.9.1-modern-C.patch.xz 8228 BLAKE2B b5f6097a09eb50d94f1b2516d2f2618c7877743c50afb408209f1b2eed9c66288109c5e3328839d88290d994cb29a3a5886054fe194f6b01db2900c489e3319b SHA512 20ca4ea0347f8bdf11546f1730184dc5ed190bbe684619aed6ff14f93cadb16d2d85de6b0b5f38a334d4104b84cce2ae25d4c51a8ca11f7512f33956287b7b72
DIST yacc-1.9.1.tar.Z 64805 BLAKE2B 3eeebea1dad52a26c8e90ae6aec99fe3643f040100af4516faed02295b203f717a41aec0231ecee97aa31b14c9c29cae6704e875a03e8b18a71255be9859dd09 SHA512 6adb51c5f07e8084a86688589f52d9eee0183fb4d77508e36621a6b0ba91a5c4195feb87db3401ec69560554f71f2f6984dec01266e41e0fd54fa72ef1780e80
diff --git a/dev-util/yacc/yacc-1.9.1-r7.ebuild b/dev-util/yacc/yacc-1.9.1-r8.ebuild
index b5faaa0fc64c..d36686bc5e40 100644
--- a/dev-util/yacc/yacc-1.9.1-r7.ebuild
+++ b/dev-util/yacc/yacc-1.9.1-r8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,7 +7,10 @@ inherit toolchain-funcs
DESCRIPTION="Yacc: Yet Another Compiler-Compiler"
HOMEPAGE="http://dinosaur.compilertools.net/#yacc"
-SRC_URI="ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/${P}.tar.Z"
+SRC_URI="
+ ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/${P}.tar.Z
+ https://dev.gentoo.org/~arthurzam/distfiles/dev-util/${PN}/${P}-modern-C.patch.xz
+"
LICENSE="public-domain"
SLOT="0"
@@ -23,6 +26,9 @@ PATCHES=(
# Avoid stack access error. See bug 232005.
"${FILESDIR}/${P}-CVE-2008-3196.patch"
+
+ # fixes for modern C compiler, bug #730802
+ "${WORKDIR}/${P}-modern-C.patch"
)
src_prepare() {