As shown in Landry's last powerpc bulk[0], appstream-glib doesn't build
on ld.bfd archs.  Here's a workaround taken from ncmpc / gvfs: disable
the use of -Wl,--as-needed.

ok?

[0] 
http://build-failures.rhaalovely.net/powerpc/2019-03-04/devel/appstream-glib.log


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/appstream-glib/Makefile,v
retrieving revision 1.46
diff -u -p -r1.46 Makefile
--- Makefile    28 Feb 2019 19:20:51 -0000      1.46
+++ Makefile    1 Apr 2019 13:58:12 -0000
@@ -47,6 +47,13 @@ CONFIGURE_ARGS=              -Drpm=false
 # requires libstemmer
 CONFIGURE_ARGS +=      -Dstemmer=false
 
+# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches;
+# build failures due to undefined references are often seen.
+.include <bsd.port.arch.mk>
+.if !${PROPERTIES:Mlld}
+CONFIGURE_ARGS +=      -Db_asneeded=false
+.endif
+
 # needed for `make test'
 PORTHOME=              ${WRKDIST}
 


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to