Index: head/devel/nspr/Makefile =================================================================== --- head/devel/nspr/Makefile (revision 464372) +++ head/devel/nspr/Makefile (revision 464373) @@ -1,50 +1,49 @@ # Created by: Maxim Sobolev # $FreeBSD$ PORTNAME= nspr DISTVERSION= 4.19 CATEGORIES= devel MASTER_SITES= MOZILLA/${PORTNAME}/releases/v${PORTVERSION}/src MAINTAINER= gecko@FreeBSD.org COMMENT= Platform-neutral API for system level and libc like functions LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cpe gmake pathfix CPE_VENDOR= mozilla CPE_PRODUCT= netscape_portable_runtime WRKSRC_SUBDIR= nspr GNU_CONFIGURE= yes USE_LDCONFIG= yes -CFLAGS+= -D_WANT_SEMUN OPTIONS_DEFINE= DEBUG TEST DEBUG_CONFIGURE_ENABLE=debug post-patch: # Do not install tools to build itself @${REINPLACE_CMD} -e '/RELEASE_BINS/d' \ ${WRKSRC}/pr/src/misc/Makefile.in post-build-TEST-on: @${DO_MAKE_BUILD} -C ${BUILD_WRKSRC}/lib/tests @${DO_MAKE_BUILD} -C ${BUILD_WRKSRC}/pr/tests @${LN} -fs libmy.so.1 ${BUILD_WRKSRC}/pr/tests/dll/libmy.so post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so do-test-TEST-on: ${TEST_WRKSRC}/lib/tests/string ${TEST_WRKSRC}/lib/tests/base64t cd ${TEST_WRKSRC}/pr/tests && ${WRKSRC}/pr/tests/runtests.sh # The test below is commented out, because arena requires # command-line arguments. If you can provide reasonable values # for it, please contact ${MAINTAINER}. Thank you. # ${TEST_WRKSRC}/lib/tests/arena # .include Index: head/devel/nspr/files/patch-bug1445193 =================================================================== --- head/devel/nspr/files/patch-bug1445193 (nonexistent) +++ head/devel/nspr/files/patch-bug1445193 (revision 464373) @@ -0,0 +1,16 @@ +Unbreak build on FreeBSD 12 or later + +diff --git pr/src/pthreads/ptsynch.c pr/src/pthreads/ptsynch.c +index a93b74795..126bed670 100644 +--- pr/src/pthreads/ptsynch.c ++++ pr/src/pthreads/ptsynch.c +@@ -911,7 +911,8 @@ PR_IMPLEMENT(PRStatus) PR_DeleteSemaphore(const char *name) + * From the semctl(2) man page in glibc 2.0 + */ + #if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \ +- || defined(FREEBSD) || defined(OPENBSD) || defined(BSDI) \ ++ || (defined(FREEBSD) && __FreeBSD_version < 1200059) \ ++ || defined(OPENBSD) || defined(BSDI) \ + || defined(DARWIN) || defined(SYMBIAN) + /* union semun is defined by including */ + #else Property changes on: head/devel/nspr/files/patch-bug1445193 ___________________________________________________________________ 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