Hi,
Since powerpc switched to clang, `-latomic' and the 'atomic' WANTLIB
are not needed anymore on this arch, and actually break the build.
The following ports have no maintainers, so here is a diff for them
that disables that switch on powerpc. For maintained ports, i'm sending
diff to maintainers as soon as it's built.
REVISION bump is not needed since we don't have yet provided packages
with '_SYSTEM_VERSION-powerpc=1'
Here are the logs for audio/cmus [0] and net/isc-dhcp [1].
OK?
Charlène.
[0] https://bin.charlenew.xyz/macppc/paths/audio/cmus.log
[1] https://bin.charlenew.xyz/macppc/paths/net/isc-dhcp.log
Index: audio/cmus/Makefile
===
RCS file: /cvs/ports/audio/cmus/Makefile,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile
--- audio/cmus/Makefile 14 Feb 2020 11:11:32 - 1.24
+++ audio/cmus/Makefile 6 Apr 2020 14:25:48 -
@@ -76,7 +76,7 @@ CONFIGURE_ARGS= prefix=${PREFIX} \
NO_TEST= Yes
# undefined reference to `__atomic_fetch_add_8'
-.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "hppa"
+.if ${MACHINE_ARCH} == "hppa"
WANTLIB-main += atomic
WANTLIB-ffmpeg += atomic
LDFLAGS += -latomic
Index: net/isc-dhcp/Makefile
===
RCS file: /cvs/ports/net/isc-dhcp/Makefile,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile
--- net/isc-dhcp/Makefile 12 Feb 2020 13:59:48 - 1.56
+++ net/isc-dhcp/Makefile 6 Apr 2020 14:25:48 -
@@ -43,7 +43,7 @@ EXAMPLEDIR= share/examples/isc-dhcp
MAKE_ENV +=CC='${CC}'
# Fix "undefined reference to `__atomic_store_8'"
-.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Mhppa}
+.if ${MACHINE_ARCH:Mhppa}
WANTLIB += atomic
LIB_DEPENDS += lang/gcc/${MODGCC4_VERSION},-libs
MAKE_FLAGS += LDFLAGS="${LDFLAGS} -latomic"