commit:     9e9f43129927504a22efd67e1ff1320d55d84a56
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 20 17:29:14 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 20 17:29:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e9f4312

dev-util/yacc: fix modern C

Closes: https://bugs.gentoo.org/875506
Closes: https://bugs.gentoo.org/730802
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-util/yacc/Manifest                                       |  1 +
 dev-util/yacc/{yacc-1.9.1-r7.ebuild => yacc-1.9.1-r8.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
similarity index 78%
rename from dev-util/yacc/yacc-1.9.1-r7.ebuild
rename to 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() {

Reply via email to