svn commit: r459644 - in head/devel: libosmo-netif libosmocore
Alexey Dokuchaev
danfe at FreeBSD.org
Mon Jan 22 11:50:10 UTC 2018
Author: danfe
Date: Mon Jan 22 11:50:08 2018
New Revision: 459644
URL: https://svnweb.freebsd.org/changeset/ports/459644
Log:
Unbreak the build on sparc64 and other big-endian architectures by
spelling FreeBSD's byte-swap routines names correctly and removing
GCC diagnostic #pragmas that were upsetting GCC 4.2.1.
Modified:
head/devel/libosmo-netif/Makefile
head/devel/libosmocore/Makefile
Modified: head/devel/libosmo-netif/Makefile
==============================================================================
--- head/devel/libosmo-netif/Makefile Mon Jan 22 11:49:15 2018 (r459643)
+++ head/devel/libosmo-netif/Makefile Mon Jan 22 11:50:08 2018 (r459644)
@@ -16,11 +16,6 @@ LIB_DEPENDS= libosmocore.so:devel/libosmocore \
libosmoabis.so:devel/libosmo-abis \
libtalloc.so:devel/talloc
-BROKEN_mips= Does not build: undefined reference to __bswap_16
-BROKEN_mips64= Does not build: undefined reference to __bswap_16
-BROKEN_powerpc64= Does not build: undefined reference to __bswap_16
-BROKEN_sparc64= Does not build: undefined reference to __bswap_16
-
USES= autoreconf libtool pathfix pkgconfig
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
@@ -41,5 +36,7 @@ DAHDI_CPPFLAGS= -I${LOCALBASE}/include
post-patch:
${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
+ @${REINPLACE_CMD} -e 's,__bswap_,__bswap,' \
+ ${WRKSRC}/examples/rs232-write.c
.include <bsd.port.mk>
Modified: head/devel/libosmocore/Makefile
==============================================================================
--- head/devel/libosmocore/Makefile Mon Jan 22 11:49:15 2018 (r459643)
+++ head/devel/libosmocore/Makefile Mon Jan 22 11:50:08 2018 (r459644)
@@ -29,5 +29,7 @@ DOXYGEN_CONFIGURE_ENV_OFF=ac_cv_path_DOXYGEN=false
post-patch:
${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
+ @${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
+ ${WRKSRC}/src/application.c
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list