Hi,

> http://build-failures.rhaalovely.net/sparc64/2019-11-07/net/librsync.log

base-gcc uses -std=gnu89 by default, this includes some C99 features,
but not initialisations in for loops. This requires -std=gnu99 to build.

It builds fine on macppc [0] and amd64. 

Comments/feedback are welcome.

Charlène.


[0] https://bin.charlenew.xyz/librsync.log


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/librsync/Makefile,v
retrieving revision 1.24
diff -u -p -u -p -r1.24 Makefile
--- Makefile    17 Oct 2019 03:59:39 -0000      1.24
+++ Makefile    9 Nov 2019 07:30:21 -0000
@@ -3,6 +3,7 @@
 COMMENT=       library for delta compression of streams
 
 V =            2.2.1
+REVISION =     0
 DISTNAME =     librsync-${V}
 
 SHARED_LIBS =  rsync   5.0 # 2.1.0
@@ -24,6 +25,9 @@ LIB_DEPENDS=  devel/popt \
                security/libb2
 
 CONFIGURE_ARGS=        -DUSE_LIBB2=ON
+
+# There are C99 initial declarations in for loops, base-gcc needs this flag.
+CFLAGS +=      -std=gnu99
 
 post-install:
        ${INSTALL_MAN} ${WRKSRC}/doc/rdiff.1 ${PREFIX}/man/man1

Reply via email to