Hi ports! 

> http://build-failures.rhaalovely.net/powerpc/2018-11-20/x11/rxvt-unicode.log

URxvt won't build with the default c++14 standard of gcc 6.4. The diff
i'm proposing here just downgrades the standard to gnu++98 [0].

It builds properly with g++ 6.4 [1], i've still checked with 4.9 in case
there would be an issue but it's fine as well [2].

Charlène. 

[0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71757#c0
[1] http://ix.io/1wsB
[2] http://ix.io/1wsA

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/rxvt-unicode/Makefile,v
retrieving revision 1.44
diff -u -p -u -p -r1.44 Makefile
--- Makefile    24 Oct 2018 14:28:13 -0000      1.44
+++ Makefile    20 Dec 2018 19:00:54 -0000
@@ -3,7 +3,7 @@
 COMMENT =      clone of rxvt with Unicode and Xft support
 
 DISTNAME =     rxvt-unicode-9.22
-REVISION =     7
+REVISION =     8
 CATEGORIES =   x11
 FIX_EXTRACT_PERMISSIONS=Yes
 
@@ -43,3 +43,9 @@ CONFIGURE_ENV +=      CPPFLAGS="-I${X11BASE}/
                        pt_cv_tty_group=yes
 
 .include <bsd.port.mk>
+
+# fix rxvtperl.C:(.text+0x13c34): undefined reference 
+# to `__cxa_throw_bad_array_new_length' with ports-gcc 6.4.
+.if ${CHOSEN_COMPILER} == "ports-gcc"
+CXXFLAGS += -std=gnu++98
+.endif 

Reply via email to