Hi, 

I've found out that the newest devel/libiscsi can't be built in the current
powerpc bulk due to `-Werror':

> cc1: warnings being treated as errors
> [...]
> At top level:
> cc1: error: unrecognized command line option "-Wno-stringop-truncation"
> Error while executing cc -DHAVE_CONFIG_H -I. -I.. -I./../include -I./include 
> -D_U_=__attribute__((unused)) -D_R_(A,B)=__attribute__((format(printf,A,B))) 
> -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align 
> -Wno-strict-aliasing -Wno-unknown-warning-option -Wno-stringop-truncation 
> -Werror -Wwrite-strings -O2 -pipe -MT libiscsi_la-login.lo -MD -MP -MF 
> .deps/libiscsi_la-login.Tpo -c login.c -fPIC -DPIC -o 
> .libs/libiscsi_la-login.o

The below diff fixes the build on powerpc[0], without breaking amd64.
No REVISION bump needed since it's just about downgrading warnings.

OK?

Charlène.


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


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/libiscsi/Makefile,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 Makefile
--- Makefile    26 Jan 2020 12:48:36 -0000      1.6
+++ Makefile    27 Jan 2020 22:00:21 -0000
@@ -21,6 +21,8 @@ WANTLIB=      c
 AUTOCONF_VERSION=      2.69
 AUTOMAKE_VERSION=      1.16
 
-CONFIGURE_STYLE= autoreconf
+CONFIGURE_STYLE=       autoreconf
+
+CONFIGURE_ARGS+=       --disable-werror
 
 .include <bsd.port.mk>

Reply via email to