commit:     0fd631f8db8e5b612c97fdec47a1a62d3c6686ee
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Fri Nov 22 13:22:47 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 22 13:41:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fd631f8

www-client/w3m: fix build on newer gcc

temporary fix.
longer term goal is to move over to the maintained fork:
- https://sr.ht/~rkta/w3m/
- https://github.com/tats/w3m/issues/304

Closes: https://bugs.gentoo.org/943868
Signed-off-by: NRK <nrk <AT> disroot.org>
Closes: https://github.com/gentoo/gentoo/pull/39411
Signed-off-by: Sam James <sam <AT> gentoo.org>

 www-client/w3m/w3m-0.5.3_p20230121.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/www-client/w3m/w3m-0.5.3_p20230121.ebuild 
b/www-client/w3m/w3m-0.5.3_p20230121.ebuild
index 26ba1fc32582..3e44f0d3e7d1 100644
--- a/www-client/w3m/w3m-0.5.3_p20230121.ebuild
+++ b/www-client/w3m/w3m-0.5.3_p20230121.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit autotools prefix toolchain-funcs
+inherit autotools prefix toolchain-funcs flag-o-matic
 
 MY_P="${P/_p/+git}"
 MY_PV="${PV/_p/+git}"
@@ -67,6 +67,9 @@ src_configure() {
        local myconf=()
        local image imagelib
 
+       # Bug: https://bugs.gentoo.org/943868
+       append-cflags -std=gnu17
+
        if use gdk-pixbuf ; then
                imagelib="gtk3"
        elif use imlib ; then

Reply via email to