pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/php-apcu



Module Name:    pkgsrc
Committed By:   manu
Date:           Tue Sep 28 13:22:28 UTC 2021

Modified Files:
        pkgsrc/www/php-apcu: Makefile

Log Message:
Use spinlocks instead of default fcntl locks

This is only available on x86. Note that default fcntl implementation
is not only slower, it also leaks file descriptor on apachectl graceful.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/www/php-apcu/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/php-apcu/Makefile
diff -u pkgsrc/www/php-apcu/Makefile:1.19 pkgsrc/www/php-apcu/Makefile:1.20
--- pkgsrc/www/php-apcu/Makefile:1.19   Sun Mar  7 14:47:58 2021
+++ pkgsrc/www/php-apcu/Makefile        Tue Sep 28 13:22:27 2021
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2021/03/07 14:47:58 taca Exp $
+# $NetBSD: Makefile,v 1.20 2021/09/28 13:22:27 manu Exp $
 
 MODNAME=       apcu
 PECL_VERSION=  5.1.20
+PKGREVISION=   1
 CATEGORIES+=   sysutils
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -13,6 +14,14 @@ PHP_VERSIONS_INCOMPATIBLE=   56
 GNU_CONFIGURE_STRICT=  no # --with-pcre-dir is added for all PHP extensions
 CONFIGURE_ARGS+=       --enable-${MODNAME}
 
+# Use spinlocks if available
+# XXX Default is fnctl, and implentation leaks 
+# file descriptors on apachectl graceful
+.if ${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == x86_64
+CONFIGURE_ARGS+=       --enable-apcu-spinlocks
+.endif
+
+
 PLIST_SRC+=            ${.CURDIR}/PLIST.extras
 PLIST_SUBST+=          PKGBASE=${PKGBASE}
 



Home | Main Index | Thread Index | Old Index