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 Dec  6 11:11:32 UTC 2020

Modified Files:
        pkgsrc/lang/python27: Makefile
        pkgsrc/lang/python36: Makefile
        pkgsrc/lang/python37: Makefile
        pkgsrc/lang/python38: Makefile
        pkgsrc/lang/python39: Makefile

Log Message:
python*: Avoid configure test for POSIX semaphores on Linux.

This attempts to build and run a program that uses POSIX semaphores.

This fails in a pbulk sandbox that doesn't contain /dev/shm, resulting
in a broken package where the idea that the platform doesn't support
POSIX semaphores is baked in forever. In newer Python versions,
this means Python doesn't even build properly.

XXX: We might want to avoid it on other platforms too...


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 pkgsrc/lang/python27/Makefile
cvs rdiff -u -r1.27 -r1.28 pkgsrc/lang/python36/Makefile
cvs rdiff -u -r1.22 -r1.23 pkgsrc/lang/python37/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/python38/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/python39/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/python27/Makefile
diff -u pkgsrc/lang/python27/Makefile:1.90 pkgsrc/lang/python27/Makefile:1.91
--- pkgsrc/lang/python27/Makefile:1.90  Sun Sep 20 11:06:23 2020
+++ pkgsrc/lang/python27/Makefile       Sun Dec  6 11:11:31 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.90 2020/09/20 11:06:23 mgorny Exp $
+# $NetBSD: Makefile,v 1.91 2020/12/06 11:11:31 nia Exp $
 
 .include "dist.mk"
 
@@ -23,6 +23,9 @@ CONFIGURE_ARGS+=      --with-system-ffi
 CONFIGURE_ARGS+=       --with-threads
 CONFIGURE_ENV+=                MKDIR_P=${MKDIR:Q}
 CONFIGURE_ENV+=                OPT=${CFLAGS:M*:Q}
+# If the build sandbox doesn't have /dev/shm mounted, don't produce
+# broken packages.
+CONFIGURE_ENV.Linux+=  ac_cv_posix_semaphores_enabled=yes
 PKGCONFIG_OVERRIDE+=   Misc/python.pc.in
 
 LDFLAGS+=              -L${WRKSRC}

Index: pkgsrc/lang/python36/Makefile
diff -u pkgsrc/lang/python36/Makefile:1.27 pkgsrc/lang/python36/Makefile:1.28
--- pkgsrc/lang/python36/Makefile:1.27  Tue Sep  1 09:26:54 2020
+++ pkgsrc/lang/python36/Makefile       Sun Dec  6 11:11:31 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2020/09/01 09:26:54 schmonz Exp $
+# $NetBSD: Makefile,v 1.28 2020/12/06 11:11:31 nia Exp $
 
 .include "dist.mk"
 
@@ -29,6 +29,9 @@ CONFIGURE_ARGS+=      --with-threads
 CONFIGURE_ARGS+=       --without-ensurepip
 CONFIGURE_ENV+=                OPT=${CFLAGS:M*:Q}
 CONFIGURE_ENV+=                ac_cv_path_mkdir=${TOOLS_PATH.mkdir}
+# If the build sandbox doesn't have /dev/shm mounted, don't produce
+# broken packages.
+CONFIGURE_ENV.Linux+=  ac_cv_posix_semaphores_enabled=yes
 PKGCONFIG_OVERRIDE+=   Misc/python.pc.in
 
 PTHREAD_OPTS+= require

Index: pkgsrc/lang/python37/Makefile
diff -u pkgsrc/lang/python37/Makefile:1.22 pkgsrc/lang/python37/Makefile:1.23
--- pkgsrc/lang/python37/Makefile:1.22  Tue Nov 17 19:33:26 2020
+++ pkgsrc/lang/python37/Makefile       Sun Dec  6 11:11:31 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2020/11/17 19:33:26 sjmulder Exp $
+# $NetBSD: Makefile,v 1.23 2020/12/06 11:11:31 nia Exp $
 
 .include "dist.mk"
 
@@ -29,6 +29,9 @@ CONFIGURE_ARGS+=      --with-system-ffi
 CONFIGURE_ARGS+=       --without-ensurepip
 CONFIGURE_ENV+=                OPT=${CFLAGS:M*:Q}
 CONFIGURE_ENV+=                ac_cv_path_mkdir=${TOOLS_PATH.mkdir}
+# If the build sandbox doesn't have /dev/shm mounted, don't produce
+# broken packages.
+CONFIGURE_ENV.Linux+=  ac_cv_posix_semaphores_enabled=yes
 PKGCONFIG_OVERRIDE+=   Misc/python.pc.in
 
 PTHREAD_OPTS+= require

Index: pkgsrc/lang/python38/Makefile
diff -u pkgsrc/lang/python38/Makefile:1.14 pkgsrc/lang/python38/Makefile:1.15
--- pkgsrc/lang/python38/Makefile:1.14  Tue Nov 17 19:33:14 2020
+++ pkgsrc/lang/python38/Makefile       Sun Dec  6 11:11:32 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/11/17 19:33:14 sjmulder Exp $
+# $NetBSD: Makefile,v 1.15 2020/12/06 11:11:32 nia Exp $
 
 .include "dist.mk"
 
@@ -30,6 +30,9 @@ CONFIGURE_ARGS+=      --with-system-ffi
 CONFIGURE_ARGS+=       --without-ensurepip
 CONFIGURE_ENV+=                OPT=${CFLAGS:M*:Q}
 CONFIGURE_ENV+=                ac_cv_path_mkdir=${TOOLS_PATH.mkdir}
+# If the build sandbox doesn't have /dev/shm mounted, don't produce
+# broken packages.
+CONFIGURE_ENV.Linux+=  ac_cv_posix_semaphores_enabled=yes
 PKGCONFIG_OVERRIDE+=   Misc/python.pc.in Misc/python-embed.pc.in
 
 PTHREAD_OPTS+= require

Index: pkgsrc/lang/python39/Makefile
diff -u pkgsrc/lang/python39/Makefile:1.2 pkgsrc/lang/python39/Makefile:1.3
--- pkgsrc/lang/python39/Makefile:1.2   Fri Nov 13 21:22:35 2020
+++ pkgsrc/lang/python39/Makefile       Sun Dec  6 11:11:32 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/11/13 21:22:35 sjmulder Exp $
+# $NetBSD: Makefile,v 1.3 2020/12/06 11:11:32 nia Exp $
 
 .include "dist.mk"
 
@@ -30,6 +30,9 @@ CONFIGURE_ARGS+=      --with-system-ffi
 CONFIGURE_ARGS+=       --without-ensurepip
 CONFIGURE_ENV+=                OPT=${CFLAGS:M*:Q}
 CONFIGURE_ENV+=                ac_cv_path_mkdir=${TOOLS_PATH.mkdir}
+# If the build sandbox doesn't have /dev/shm mounted, don't produce
+# broken packages.
+CONFIGURE_ENV.Linux+=  ac_cv_posix_semaphores_enabled=yes
 PKGCONFIG_OVERRIDE+=   Misc/python.pc.in Misc/python-embed.pc.in
 
 PTHREAD_OPTS+= require



Home | Main Index | Thread Index | Old Index