pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Mar 17 18:34:26 UTC 2024

Modified Files:
        pkgsrc/lang/erlang: Makefile
        pkgsrc/lang/erlang21: Makefile

Log Message:
erlang: Only use kernel-poll when erlang finds the implementation acceptable.


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 pkgsrc/lang/erlang/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/erlang21/Makefile

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

Modified files:

Index: pkgsrc/lang/erlang/Makefile
diff -u pkgsrc/lang/erlang/Makefile:1.119 pkgsrc/lang/erlang/Makefile:1.120
--- pkgsrc/lang/erlang/Makefile:1.119   Wed Dec 20 18:46:53 2023
+++ pkgsrc/lang/erlang/Makefile Sun Mar 17 18:34:26 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.119 2023/12/20 18:46:53 wiz Exp $
+# $NetBSD: Makefile,v 1.120 2024/03/17 18:34:26 nia Exp $
 
 DISTNAME=      erlang-${DIST_VERSION_MAJOR}.${DIST_VERSION_MINOR}${!empty(DIST_VERSION_PATCH):?.:}${DIST_VERSION_PATCH}
 PKGNAME=       ${DISTNAME:S/OTP-/erlang-/}
@@ -65,10 +65,12 @@ SMF_NAME=           epmd
 
 CONFIGURE_ARGS.DragonFly+=     --disable-sctp
 
-###
-### XXX There may be others here.
-###
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "Darwin"
+.if defined(OPSYS_HAS_KQUEUE) && ${OPSYS} != "Darwin"
+CONFIGURE_ARGS+=       --enable-kernel-poll
+.endif
+
+# Erlang rejects kqueue implementations before Sierra.
+.if ${OPSYS} == "Darwin" && ${OPSYS_VERISON} > 101200
 CONFIGURE_ARGS+=       --enable-kernel-poll
 .endif
 

Index: pkgsrc/lang/erlang21/Makefile
diff -u pkgsrc/lang/erlang21/Makefile:1.6 pkgsrc/lang/erlang21/Makefile:1.7
--- pkgsrc/lang/erlang21/Makefile:1.6   Tue Oct 24 22:09:36 2023
+++ pkgsrc/lang/erlang21/Makefile       Sun Mar 17 18:34:26 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2023/10/24 22:09:36 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2024/03/17 18:34:26 nia Exp $
 
 DISTNAME=              OTP-${DIST_VERSION_MAJOR}.${DIST_VERSION_MINOR}${!empty(DIST_VERSION_PATCH):?.:}${DIST_VERSION_PATCH}
 PKGNAME=               ${DISTNAME:S/OTP-/erlang21-/}
@@ -59,10 +59,12 @@ SMF_NAME=           epmd21
 
 CONFIGURE_ARGS.DragonFly+=     --disable-sctp
 
-###
-### XXX There may be others here.
-###
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "Darwin"
+.if defined(OPSYS_HAS_KQUEUE) && ${OPSYS} != "Darwin"
+CONFIGURE_ARGS+=       --enable-kernel-poll
+.endif
+
+# Erlang rejects kqueue implementations before Sierra.
+.if ${OPSYS} == "Darwin" && ${OPSYS_VERISON} > 101200
 CONFIGURE_ARGS+=       --enable-kernel-poll
 .endif
 



Home | Main Index | Thread Index | Old Index