Hi,

> http://build-failures.rhaalovely.net/sparc64/2019-11-07/devel/universal-ctags.log

This is happening because autotools are detecting that -std=gnu99 is
needed with base-gcc, but is not inherited by the packcc target. I've
upstreamed it already [0].

This fixes the build on macppc [1] and amd64 is still fine. REVISION
bump is needed as build flags are changed on base-clang archs as well.

OK? 

Charlène. 


[0] https://github.com/universal-ctags/ctags/pull/2305
[1] https://bin.charlenew.xyz/universal-ctags.log


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/universal-ctags/Makefile,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 Makefile
--- Makefile    3 Nov 2019 16:18:01 -0000       1.9
+++ Makefile    10 Nov 2019 10:11:11 -0000
@@ -7,6 +7,7 @@ GH_PROJECT =    ctags
 GH_COMMIT =    efce8b1f56edcdbff094299356f4e26d8dfe9cfd
 # commit date YYYYMMDD
 DISTNAME =     universal-ctags-0.20191025
+REVISION =     0
 
 CATEGORIES =   devel
 
Index: patches/patch-Makefile_am
===================================================================
RCS file: patches/patch-Makefile_am
diff -N patches/patch-Makefile_am
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-Makefile_am   10 Nov 2019 10:11:11 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Use -std=gnu99 also for packcc. Fix the build with base-gcc, from
+https://github.com/universal-ctags/ctags/pull/2305
+
+Index: Makefile.am
+--- Makefile.am.orig
++++ Makefile.am
+@@ -25,7 +25,8 @@ noinst_PROGRAMS += packcc
+ noinst_PROGRAMS += mini-geany
+ 
+ packcc_CPPFLAGS =
+-packcc_CFLAGS =
++packcc_CFLAGS  =
++packcc_CFLAGS += $(EXTRA_CFLAGS)
+ dist_packcc_SOURCES = $(PACKCC_SRCS)
+ 
+ if HAVE_STRNLEN




Reply via email to