Index: head/lang/spidermonkey60/Makefile =================================================================== --- head/lang/spidermonkey60/Makefile (revision 522841) +++ head/lang/spidermonkey60/Makefile (revision 522842) @@ -1,61 +1,62 @@ # $FreeBSD$ PORTNAME= spidermonkey DISTVERSION= 60.9.0 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= MOZILLA/firefox/releases/${DISTVERSION}esr/source PKGNAMESUFFIX= ${SP_VER} DISTNAME= firefox-${DISTVERSION}esr.source MAINTAINER= tcberner@FreeBSD.org COMMENT= Standalone JavaScript based from Mozilla 60-esr LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= autoconf-2.13:devel/autoconf213 LIB_DEPENDS= libnspr4.so:devel/nspr \ libffi.so:devel/libffi \ libicudata.so:devel/icu HAS_CONFIGURE= yes USES= compiler:c++14-lang gmake localbase pathfix pkgconfig \ python:2.7,build tar:xz USE_LDCONFIG= yes SP_VER= 60 WRKSRC= ${WRKDIR}/firefox-${DISTVERSION} PATCH_WRKSRC= ${WRKDIR}/firefox-${DISTVERSION}/ CONFIGURE_OUTSOURCE= yes CONFIGURE_SCRIPT= ../firefox-${DISTVERSION}/js/src/configure CONFIGURE_ARGS= --with-pthreads \ --prefix=${PREFIX:Q} \ --target=${CONFIGURE_TARGET} \ --with-intl-api \ --with-system-zlib \ --disable-gold \ --disable-debug \ --disable-debug-symbols \ --disable-jemalloc \ --with-system-icu \ --with-system-nspr \ --enable-shared-js \ --enable-optimize \ --enable-readline CONFIGURE_ENV= HOST_CC=${CC} HOST_CXX=${CXX} .include .if ${ARCH} == amd64 CONFIGURE_TARGET=x86_64-portbld-freebsd${OSREL} .endif post-install: ${RM} ${STAGEDIR}${PREFIX}/lib/libjs_static.ajs ${LN} -fs libmozjs-${SP_VER}.so ${STAGEDIR}${PREFIX}/lib/libmozjs-${SP_VER}.so.1 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/js${SP_VER} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmozjs-${SP_VER}.* .include Index: head/lang/spidermonkey60/files/patch-js_public_TypeDecls.h =================================================================== --- head/lang/spidermonkey60/files/patch-js_public_TypeDecls.h (nonexistent) +++ head/lang/spidermonkey60/files/patch-js_public_TypeDecls.h (revision 522842) @@ -0,0 +1,26 @@ +https://bugzilla.mozilla.org/show_bug.cgi?id=1426865 + +Add "dumb" patch to fix undefined symbols when trying to build gjs against +this spidermonkey version. + +This issue was fix in firefox and backported to esr 68. + +--- js/public/TypeDecls.h.orig 2019-09-01 13:09:17 UTC ++++ js/public/TypeDecls.h +@@ -20,6 +20,8 @@ + #include + #include + ++#pragma GCC visibility push(default) ++ + #include "js-config.h" + + typedef uint8_t jsbytecode; +@@ -89,5 +91,7 @@ typedef PersistentRooted PersistentRooted + typedef PersistentRooted PersistentRootedValue; + + } // namespace JS ++ ++#pragma GCC visibility pop + + #endif /* js_TypeDecls_h */ Property changes on: head/lang/spidermonkey60/files/patch-js_public_TypeDecls.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property