From a6793b6a16065e2cd0904c6ee41585e6a4dc6602 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 24 Jan 2025 05:23:29 +0000 Subject: [PATCH] dev-perl/Text-BibTeX: build w/ -std=gnu17 Closes: https://bugs.gentoo.org/944749 Signed-off-by: Sam James --- 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 4259932518fcd..6439fd86f1f0c 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 /a #include "\ btparse/tests/{tex,purify,postprocess,name,macro}_test.c || die perl-module_src_prepare