pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/platform
Module Name: pkgsrc
Committed By: nia
Date: Wed Nov 15 14:14:09 UTC 2023
Modified Files:
pkgsrc/mk/platform: Darwin.mk DragonFly.mk FreeBSD.mk Linux.mk
NetBSD.mk OpenBSD.mk README SunOS.mk
Log Message:
mk/platform: Introduce a new OPSYS_HAS_POSIX_SPAWN variable.
To generate a diff of this commit:
cvs rdiff -u -r1.136 -r1.137 pkgsrc/mk/platform/Darwin.mk
cvs rdiff -u -r1.53 -r1.54 pkgsrc/mk/platform/DragonFly.mk
cvs rdiff -u -r1.38 -r1.39 pkgsrc/mk/platform/FreeBSD.mk
cvs rdiff -u -r1.92 -r1.93 pkgsrc/mk/platform/Linux.mk
cvs rdiff -u -r1.78 -r1.79 pkgsrc/mk/platform/NetBSD.mk
cvs rdiff -u -r1.44 -r1.45 pkgsrc/mk/platform/OpenBSD.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/mk/platform/README
cvs rdiff -u -r1.87 -r1.88 pkgsrc/mk/platform/SunOS.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/platform/Darwin.mk
diff -u pkgsrc/mk/platform/Darwin.mk:1.136 pkgsrc/mk/platform/Darwin.mk:1.137
--- pkgsrc/mk/platform/Darwin.mk:1.136 Tue Nov 14 13:41:09 2023
+++ pkgsrc/mk/platform/Darwin.mk Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.136 2023/11/14 13:41:09 nia Exp $
+# $NetBSD: Darwin.mk,v 1.137 2023/11/15 14:14:09 nia Exp $
#
# Variable definitions for the Darwin operating system.
@@ -223,6 +223,11 @@ CONFIGURE_ENV+= ac_cv_func_poll=no
OPSYS_HAS_KQUEUE= # defined
.endif
+# check for posix_spawn(3) support
+.if ${OPSYS_VERSION} >= 100500
+OPSYS_HAS_POSIX_SPAWN= # defined
+.endif
+
# If the deployment target is not set explicitly, the linker in Tiger and prior
# versions running on PowerPC hosts defaults to a target of 10.1.
# Set the target for Tiger systems to be 10.4.
Index: pkgsrc/mk/platform/DragonFly.mk
diff -u pkgsrc/mk/platform/DragonFly.mk:1.53 pkgsrc/mk/platform/DragonFly.mk:1.54
--- pkgsrc/mk/platform/DragonFly.mk:1.53 Tue Nov 9 12:04:43 2021
+++ pkgsrc/mk/platform/DragonFly.mk Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: DragonFly.mk,v 1.53 2021/11/09 12:04:43 nia Exp $
+# $NetBSD: DragonFly.mk,v 1.54 2023/11/15 14:14:09 nia Exp $
#
# Variable definitions for the DragonFly operating system.
@@ -60,6 +60,11 @@ _OPSYS_CAN_CHECK_SHLIBS= yes # use reade
OPSYS_HAS_KQUEUE= # defined
.endif
+# check for posix_spawn(3) support
+.if exists(/usr/include/spawn.h)
+OPSYS_HAS_POSIX_SPAWN= # defined
+.endif
+
# check for maximum command line length and set it in configure's environment,
# to avoid a test required by the libtool script that takes forever.
_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
Index: pkgsrc/mk/platform/FreeBSD.mk
diff -u pkgsrc/mk/platform/FreeBSD.mk:1.38 pkgsrc/mk/platform/FreeBSD.mk:1.39
--- pkgsrc/mk/platform/FreeBSD.mk:1.38 Tue Nov 9 12:04:43 2021
+++ pkgsrc/mk/platform/FreeBSD.mk Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: FreeBSD.mk,v 1.38 2021/11/09 12:04:43 nia Exp $
+# $NetBSD: FreeBSD.mk,v 1.39 2023/11/15 14:14:09 nia Exp $
#
# Variable definitions for the FreeBSD operating system.
@@ -71,6 +71,11 @@ SERIAL_DEVICES?= /dev/cuaa0
OPSYS_HAS_KQUEUE= # defined
.endif
+# check for posix_spawn(3) support, added in FreeBSD-8.0
+.if exists(/usr/include/spawn.h)
+OPSYS_HAS_POSIX_SPAWN= # defined
+.endif
+
# Register support for SSP on x86 architectures
.if (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "x86_64")
Index: pkgsrc/mk/platform/Linux.mk
diff -u pkgsrc/mk/platform/Linux.mk:1.92 pkgsrc/mk/platform/Linux.mk:1.93
--- pkgsrc/mk/platform/Linux.mk:1.92 Thu May 18 00:04:26 2023
+++ pkgsrc/mk/platform/Linux.mk Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.92 2023/05/18 00:04:26 schmonz Exp $
+# $NetBSD: Linux.mk,v 1.93 2023/11/15 14:14:09 nia Exp $
#
# Variable definitions for the Linux operating system.
@@ -214,3 +214,4 @@ MAKE_ENV+= NOGCCERROR=true
OPSYS_HAS_EVENTFD= # defined
OPSYS_HAS_TIMERFD= # defined
+OPSYS_HAS_POSIX_SPAWN= # defined
Index: pkgsrc/mk/platform/NetBSD.mk
diff -u pkgsrc/mk/platform/NetBSD.mk:1.78 pkgsrc/mk/platform/NetBSD.mk:1.79
--- pkgsrc/mk/platform/NetBSD.mk:1.78 Thu Oct 5 16:31:51 2023
+++ pkgsrc/mk/platform/NetBSD.mk Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.78 2023/10/05 16:31:51 rhialto Exp $
+# $NetBSD: NetBSD.mk,v 1.79 2023/11/15 14:14:09 nia Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -126,6 +126,11 @@ CFLAGS+= -mieee
FFLAGS+= -mieee
.endif
+# check for posix_spawn(3) support, added in NetBSD-6.0
+.if exists(${_CROSS_DESTDIR:U}/usr/include/spawn.h)
+OPSYS_HAS_POSIX_SPAWN= # defined
+.endif
+
# check for kqueue(2) support, added in NetBSD-1.6J
.if exists(${_CROSS_DESTDIR:U}/usr/include/sys/event.h)
OPSYS_HAS_KQUEUE= # defined
Index: pkgsrc/mk/platform/OpenBSD.mk
diff -u pkgsrc/mk/platform/OpenBSD.mk:1.44 pkgsrc/mk/platform/OpenBSD.mk:1.45
--- pkgsrc/mk/platform/OpenBSD.mk:1.44 Mon Nov 29 16:14:23 2021
+++ pkgsrc/mk/platform/OpenBSD.mk Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: OpenBSD.mk,v 1.44 2021/11/29 16:14:23 jperkin Exp $
+# $NetBSD: OpenBSD.mk,v 1.45 2023/11/15 14:14:09 nia Exp $
#
# Variable definitions for the OpenBSD operating system.
@@ -97,6 +97,11 @@ SERIAL_DEVICES?= /dev/null
OPSYS_HAS_KQUEUE= # defined
.endif
+# check for posix_spawn(3) support, added in OpenBSD-5.2
+.if exists(/usr/include/spawn.h)
+OPSYS_HAS_POSIX_SPAWN= # defined
+.endif
+
_OPSYS_SUPPORTS_CWRAPPERS= yes
_OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk
Index: pkgsrc/mk/platform/README
diff -u pkgsrc/mk/platform/README:1.8 pkgsrc/mk/platform/README:1.9
--- pkgsrc/mk/platform/README:1.8 Thu Mar 3 07:30:06 2022
+++ pkgsrc/mk/platform/README Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.8 2022/03/03 07:30:06 nia Exp $
+$NetBSD: README,v 1.9 2023/11/15 14:14:09 nia Exp $
These files contain platform-specific definitions that are used by the
pkgsrc infrastructure.
@@ -105,6 +105,8 @@ TODO: Document all these variables.
OPSYS_HAS_KQUEUE is defined if kqueue(2) is supported.
+ OPSYS_HAS_POSIX_SPAWN is defined is posix_spawn(3) is supported.
+
OPSYS_HAS_STATIC_PIE is defined if "-static -pie" is
supported by the toolchain. Position-independent executables
may need to be disabled on a per-package basis if the
Index: pkgsrc/mk/platform/SunOS.mk
diff -u pkgsrc/mk/platform/SunOS.mk:1.87 pkgsrc/mk/platform/SunOS.mk:1.88
--- pkgsrc/mk/platform/SunOS.mk:1.87 Tue Nov 22 16:57:31 2022
+++ pkgsrc/mk/platform/SunOS.mk Wed Nov 15 14:14:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.87 2022/11/22 16:57:31 jperkin Exp $
+# $NetBSD: SunOS.mk,v 1.88 2023/11/15 14:14:09 nia Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -44,6 +44,11 @@ MOTIF_TYPE_DEFAULT?= motif
INIT_SYSTEM?= smf
.endif
+# check for posix_spawn(3) support, added in SunOS-5.10
+.if ${OPSYS_VERSION} >= 051000
+OPSYS_HAS_POSIX_SPAWN= # defined
+.endif
+
# Comes with a builtin implementation based on mit-krb5
KRB5_DEFAULT?= mit-krb5
Home |
Main Index |
Thread Index |
Old Index