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:           Sat Mar 16 22:55:42 UTC 2024

Modified Files:
        pkgsrc/mk/platform: Darwin.mk FreeBSD.mk Linux.mk README

Log Message:
mk: Introduce a OPSYS_HAS_SENDFILE feature flag


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 pkgsrc/mk/platform/Darwin.mk
cvs rdiff -u -r1.39 -r1.40 pkgsrc/mk/platform/FreeBSD.mk
cvs rdiff -u -r1.94 -r1.95 pkgsrc/mk/platform/Linux.mk
cvs rdiff -u -r1.9 -r1.10 pkgsrc/mk/platform/README

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.137 pkgsrc/mk/platform/Darwin.mk:1.138
--- pkgsrc/mk/platform/Darwin.mk:1.137  Wed Nov 15 14:14:09 2023
+++ pkgsrc/mk/platform/Darwin.mk        Sat Mar 16 22:55:42 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.137 2023/11/15 14:14:09 nia Exp $
+# $NetBSD: Darwin.mk,v 1.138 2024/03/16 22:55:42 nia Exp $
 #
 # Variable definitions for the Darwin operating system.
 
@@ -226,6 +226,7 @@ OPSYS_HAS_KQUEUE=   # defined
 # check for posix_spawn(3) support
 .if ${OPSYS_VERSION} >= 100500
 OPSYS_HAS_POSIX_SPAWN= # defined
+OPSYS_HAS_SENDFILE=    # defined
 .endif
 
 # If the deployment target is not set explicitly, the linker in Tiger and prior

Index: pkgsrc/mk/platform/FreeBSD.mk
diff -u pkgsrc/mk/platform/FreeBSD.mk:1.39 pkgsrc/mk/platform/FreeBSD.mk:1.40
--- pkgsrc/mk/platform/FreeBSD.mk:1.39  Wed Nov 15 14:14:09 2023
+++ pkgsrc/mk/platform/FreeBSD.mk       Sat Mar 16 22:55:42 2024
@@ -1,4 +1,4 @@
-# $NetBSD: FreeBSD.mk,v 1.39 2023/11/15 14:14:09 nia Exp $
+# $NetBSD: FreeBSD.mk,v 1.40 2024/03/16 22:55:42 nia Exp $
 #
 # Variable definitions for the FreeBSD operating system.
 
@@ -76,6 +76,8 @@ OPSYS_HAS_KQUEUE=     # defined
 OPSYS_HAS_POSIX_SPAWN= # defined
 .endif
 
+OPSYS_HAS_SENDFILE=    # defined
+
 # 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.94 pkgsrc/mk/platform/Linux.mk:1.95
--- pkgsrc/mk/platform/Linux.mk:1.94    Wed Nov 29 17:13:47 2023
+++ pkgsrc/mk/platform/Linux.mk Sat Mar 16 22:55:42 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.94 2023/11/29 17:13:47 jperkin Exp $
+# $NetBSD: Linux.mk,v 1.95 2024/03/16 22:55:42 nia Exp $
 #
 # Variable definitions for the Linux operating system.
 
@@ -212,6 +212,7 @@ GLIBC_VERSION=              ${_GLIBC_VERSION_CMD:sh}
 MAKE_ENV+=     NOGCCERROR=true
 .endif
 
+OPSYS_HAS_SENDFILE=    # defined
 OPSYS_HAS_EVENTFD=     # defined
 OPSYS_HAS_TIMERFD=     # defined
 OPSYS_HAS_POSIX_SPAWN= # defined

Index: pkgsrc/mk/platform/README
diff -u pkgsrc/mk/platform/README:1.9 pkgsrc/mk/platform/README:1.10
--- pkgsrc/mk/platform/README:1.9       Wed Nov 15 14:14:09 2023
+++ pkgsrc/mk/platform/README   Sat Mar 16 22:55:42 2024
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.9 2023/11/15 14:14:09 nia Exp $
+$NetBSD: README,v 1.10 2024/03/16 22:55:42 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_SENDFILE is defined if sendfile(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



Home | Main Index | Thread Index | Old Index