svn commit: r531114 - head/net-im/ejabberd
Ashish SHUKLA
ashish at FreeBSD.org
Wed Apr 8 13:14:05 UTC 2020
Author: ashish
Date: Wed Apr 8 13:14:04 2020
New Revision: 531114
URL: https://svnweb.freebsd.org/changeset/ports/531114
Log:
- Fix brokenness on 11.x due to lack of LTO support, required by one
of the dependency
Thanks to dewayne at heuristicsystems.com.au for pointing out
the issue
PR: 245428
Reported by: Bernhard <bernhard.kneip at postadigitale.de>, pkg-fallout@
Modified:
head/net-im/ejabberd/Makefile
Modified: head/net-im/ejabberd/Makefile
==============================================================================
--- head/net-im/ejabberd/Makefile Wed Apr 8 12:42:40 2020 (r531113)
+++ head/net-im/ejabberd/Makefile Wed Apr 8 13:14:04 2020 (r531114)
@@ -151,6 +151,8 @@ FULLXML_CONFIGURE_ENABLE= full-xml
SQLITE_USES= sqlite
DOCS_MAKE_ARGS_OFF= NOPORTDOCS=yes
+.include <bsd.port.pre.mk>
+
pre-everything::
@if ${PKG_BIN} query %n-%v net-im/ejabberd; then \
${ECHO_MSG} needs to be uninstalled, before this port build could proceed. ; \
@@ -164,6 +166,10 @@ post-patch:
@${REINPLACE_CMD} -e 's,%%PORTVERSION%%,${PORTVERSION},' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e '/vsn/s/git/"${JIFFY_VER}"/' ${WRKSRC}/deps/jiffy/src/jiffy.app.src
@${REINPLACE_CMD} -e '/vsn/s/0.0.1/${BASE64URL_VER}/' ${WRKSRC}/deps/base64url/src/base64url.app.src
+.if ${OSVERSION} < 1200000
+ # Disable LTO required by dependency, not available by default in < 12.x
+ @${REINPLACE_CMD} -e 's/-flto//' ${WRKSRC}/deps/jiffy/rebar.config
+.endif
pre-configure:
cd ${WRKSRC} && ${SH} autogen.sh
@@ -192,4 +198,4 @@ post-install:
@${CHMOD} +x ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-${EIMP_VER}/priv/bin/eimp
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-${EIMP_VER}/priv/bin/eimp
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list