Index: head/security/yara/Makefile =================================================================== --- head/security/yara/Makefile (revision 458922) +++ head/security/yara/Makefile (revision 458923) @@ -1,26 +1,27 @@ # $FreeBSD$ PORTNAME= yara PORTVERSION= 3.7.0 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= security MAINTAINER= antoine@FreeBSD.org COMMENT= Malware identification and classification tool LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING USE_GITHUB= yes GH_ACCOUNT= VirusTotal GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-magic --enable-dotnet INSTALL_TARGET= install-strip TEST_TARGET= check USES= alias autoreconf libtool pathfix ssl USE_LDCONFIG= yes CPPFLAGS+= -isystem ${OPENSSLINC} LIBS+= -L${OPENSSLLIB} .include Index: head/security/yara/files/patch-threading.c =================================================================== --- head/security/yara/files/patch-threading.c (nonexistent) +++ head/security/yara/files/patch-threading.c (revision 458923) @@ -0,0 +1,37 @@ +# Work around FreeBSD bug #189353 when /tmp is using tmpfs(5) + +--- threading.c.orig 2017-11-10 11:21:21 UTC ++++ threading.c +@@ -33,6 +33,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI + #include + #endif + ++#if defined(__FreeBSD__) ++#include ++#endif ++ + #include "threading.h" + + +@@ -88,6 +92,11 @@ int semaphore_init( + *semaphore = CreateSemaphore(NULL, value, 65535, NULL); + if (*semaphore == NULL) + return GetLastError(); ++ #elif defined(__FreeBSD__) ++ *semaphore = malloc(sizeof(sem_t)); ++ if (*semaphore == NULL) ++ return errno; ++ return sem_init(*semaphore, 0, value); + #else + // Mac OS X doesn't support unnamed semaphores via sem_init, that's why + // we use sem_open instead sem_init and immediately unlink the semaphore +@@ -112,6 +121,9 @@ void semaphore_destroy( + { + #if defined(_WIN32) || defined(__CYGWIN__) + CloseHandle(*semaphore); ++ #elif defined(__FreeBSD__) ++ sem_close(*semaphore); ++ free(*semaphore); + #else + sem_close(*semaphore); + #endif Property changes on: head/security/yara/files/patch-threading.c ___________________________________________________________________ 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