commit:     445d56b1f8a0227ce3654b5eaac415fcc5a232ca
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 01:55:13 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 01:55:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=445d56b1

sys-process/time: build with -std=gnu17

Bug: https://savannah.gnu.org/bugs/index.php?66450
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/time/time-1.9-r1.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/sys-process/time/time-1.9-r1.ebuild 
b/sys-process/time/time-1.9-r1.ebuild
index 7eea0b8d8d24..530fc7a3d101 100644
--- a/sys-process/time/time-1.9-r1.ebuild
+++ b/sys-process/time/time-1.9-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
+inherit flag-o-matic
+
 DESCRIPTION="Displays info about resources used by a program"
 HOMEPAGE="https://www.gnu.org/directory/time.html";
 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
@@ -16,3 +18,10 @@ BDEPEND="sys-apps/texinfo"
 PATCHES=(
        "${FILESDIR}"/${PN}-1.9-implicit-func-decl-clang.patch
 )
+
+src_configure() {
+       # https://savannah.gnu.org/bugs/index.php?66450
+       append-cflags -std=gnu17
+
+       econf
+}

Reply via email to