commit:     a6793b6a16065e2cd0904c6ee41585e6a4dc6602
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 24 05:23:29 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 24 05:23:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6793b6a

dev-perl/Text-BibTeX: build w/ -std=gnu17

Closes: https://bugs.gentoo.org/944749
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-perl/Text-BibTeX/Text-BibTeX-0.890.0-r1.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-perl/Text-BibTeX/Text-BibTeX-0.890.0-r1.ebuild 
b/dev-perl/Text-BibTeX/Text-BibTeX-0.890.0-r1.ebuild
index 4259932518fc..6439fd86f1f0 100644
--- a/dev-perl/Text-BibTeX/Text-BibTeX-0.890.0-r1.ebuild
+++ b/dev-perl/Text-BibTeX/Text-BibTeX-0.890.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,7 +7,7 @@ DIST_AUTHOR=AMBS
 DIST_VERSION=0.89
 DIST_EXAMPLES=( "examples/*" "scripts/*" )
 
-inherit perl-module
+inherit flag-o-matic perl-module
 
 DESCRIPTION="A Perl library for reading, parsing, and processing BibTeX files"
 
@@ -36,6 +36,9 @@ PATCHES=(
 )
 
 src_prepare() {
+       # bug #944749
+       append-cflags -std=gnu17
+
        sed -i -e "/#include <stdio.h>/a #include <string.h>"\
                btparse/tests/{tex,purify,postprocess,name,macro}_test.c || die
        perl-module_src_prepare

Reply via email to