pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang python*: Avoid configure test for POSIX semaphore...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3611d36c7511
branches:  trunk
changeset: 443066:3611d36c7511
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Dec 06 11:11:31 2020 +0000

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

diffstat:

 lang/python27/Makefile |  5 ++++-
 lang/python36/Makefile |  5 ++++-
 lang/python37/Makefile |  5 ++++-
 lang/python38/Makefile |  5 ++++-
 lang/python39/Makefile |  5 ++++-
 5 files changed, 20 insertions(+), 5 deletions(-)

diffs (95 lines):

diff -r eb0219a15260 -r 3611d36c7511 lang/python27/Makefile
--- a/lang/python27/Makefile    Sun Dec 06 11:08:09 2020 +0000
+++ b/lang/python27/Makefile    Sun Dec 06 11:11:31 2020 +0000
@@ -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-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}
diff -r eb0219a15260 -r 3611d36c7511 lang/python36/Makefile
--- a/lang/python36/Makefile    Sun Dec 06 11:08:09 2020 +0000
+++ b/lang/python36/Makefile    Sun Dec 06 11:11:31 2020 +0000
@@ -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+=       --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
diff -r eb0219a15260 -r 3611d36c7511 lang/python37/Makefile
--- a/lang/python37/Makefile    Sun Dec 06 11:08:09 2020 +0000
+++ b/lang/python37/Makefile    Sun Dec 06 11:11:31 2020 +0000
@@ -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+=       --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
diff -r eb0219a15260 -r 3611d36c7511 lang/python38/Makefile
--- a/lang/python38/Makefile    Sun Dec 06 11:08:09 2020 +0000
+++ b/lang/python38/Makefile    Sun Dec 06 11:11:31 2020 +0000
@@ -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+=       --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
diff -r eb0219a15260 -r 3611d36c7511 lang/python39/Makefile
--- a/lang/python39/Makefile    Sun Dec 06 11:08:09 2020 +0000
+++ b/lang/python39/Makefile    Sun Dec 06 11:11:31 2020 +0000
@@ -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+=       --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