pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/php-apcu Use spinlocks instead of default fcntl locks



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e9d7009c7c20
branches:  trunk
changeset: 459017:e9d7009c7c20
user:      manu <manu%pkgsrc.org@localhost>
date:      Tue Sep 28 13:22:27 2021 +0000

description:
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.

diffstat:

 www/php-apcu/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 33c5892d0cd7 -r e9d7009c7c20 www/php-apcu/Makefile
--- a/www/php-apcu/Makefile     Tue Sep 28 13:05:08 2021 +0000
+++ b/www/php-apcu/Makefile     Tue Sep 28 13:22:27 2021 +0000
@@ -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 @@
 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