python*: Remove -luuid hack on SunOS. This ends up leaking into the shipped python-config, which wouldn't normally be a problem, but broken build systems such as waf end up linking against libraries that are not buildlinked, resulting in missing libuuid references. If this is still required for builtin libuuid support then that will need to be done in a different way that doesn't end up in the exported libraries.diff -r1.28 -r1.29 pkgsrc/lang/python310/Makefile
(jperkin)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.28 2023/11/10 16:55:31 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.29 2023/11/23 12:43:35 jperkin Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python310-${PY_DISTVERSION} | 5 | PKGNAME= python310-${PY_DISTVERSION} | |
6 | PKGREVISION= 4 | 6 | PKGREVISION= 4 | |
7 | CATEGORIES= lang python | 7 | CATEGORIES= lang python | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://www.python.org/ | 10 | HOMEPAGE= https://www.python.org/ | |
11 | COMMENT= Interpreted, interactive, object-oriented programming language | 11 | COMMENT= Interpreted, interactive, object-oriented programming language | |
12 | LICENSE= python-software-foundation | 12 | LICENSE= python-software-foundation | |
13 | 13 | |||
14 | CONFLICTS+= python-[0-9]* | 14 | CONFLICTS+= python-[0-9]* | |
@@ -75,27 +75,26 @@ ALL_ENV+= \ | @@ -75,27 +75,26 @@ ALL_ENV+= \ | |||
75 | _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_${PY_PLATNAME:Q} | 75 | _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_${PY_PLATNAME:Q} | |
76 | .endif | 76 | .endif | |
77 | 77 | |||
78 | # http://bugs.python.org/issue13241 | 78 | # http://bugs.python.org/issue13241 | |
79 | .if !empty(MACHINE_PLATFORM:MDarwin-1[12].*) | 79 | .if !empty(MACHINE_PLATFORM:MDarwin-1[12].*) | |
80 | PKGSRC_COMPILER= clang | 80 | PKGSRC_COMPILER= clang | |
81 | PKG_CC= clang | 81 | PKG_CC= clang | |
82 | PKG_CXX= clang++ | 82 | PKG_CXX= clang++ | |
83 | .endif | 83 | .endif | |
84 | 84 | |||
85 | # Used in socketmodule.c to determine if a sethostname declaration is required | 85 | # Used in socketmodule.c to determine if a sethostname declaration is required | |
86 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} | 86 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} | |
87 | LIBS.SunOS+= -lrt # fdatasync() | 87 | LIBS.SunOS+= -lrt # fdatasync() | |
88 | LIBS.SunOS+= -luuid | |||
89 | .if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} < 051100 | 88 | .if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} < 051100 | |
90 | SUBST_CLASSES+= setup | 89 | SUBST_CLASSES+= setup | |
91 | SUBST_MESSAGE.setup= Replacing crypt with crypt_i | 90 | SUBST_MESSAGE.setup= Replacing crypt with crypt_i | |
92 | SUBST_STAGE.setup= pre-configure | 91 | SUBST_STAGE.setup= pre-configure | |
93 | SUBST_FILES.setup= setup.py | 92 | SUBST_FILES.setup= setup.py | |
94 | SUBST_SED.setup= -e "s,'crypt','crypt_i'," | 93 | SUBST_SED.setup= -e "s,'crypt','crypt_i'," | |
95 | .endif | 94 | .endif | |
96 | 95 | |||
97 | PY_VER_SUFFIX= 3.10 | 96 | PY_VER_SUFFIX= 3.10 | |
98 | 97 | |||
99 | .if ${OPSYS} == "Darwin" | 98 | .if ${OPSYS} == "Darwin" | |
100 | USE_TOOLS+= gmake | 99 | USE_TOOLS+= gmake | |
101 | .endif | 100 | .endif |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2023/11/10 16:55:32 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2023/11/23 12:43:35 jperkin Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python311-${PY_DISTVERSION} | 5 | PKGNAME= python311-${PY_DISTVERSION} | |
6 | PKGREVISION= 4 | 6 | PKGREVISION= 4 | |
7 | CATEGORIES= lang python | 7 | CATEGORIES= lang python | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://www.python.org/ | 10 | HOMEPAGE= https://www.python.org/ | |
11 | COMMENT= Interpreted, interactive, object-oriented programming language | 11 | COMMENT= Interpreted, interactive, object-oriented programming language | |
12 | LICENSE= python-software-foundation | 12 | LICENSE= python-software-foundation | |
13 | 13 | |||
14 | CONFLICTS+= python-[0-9]* | 14 | CONFLICTS+= python-[0-9]* | |
@@ -72,27 +72,26 @@ CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ | @@ -72,27 +72,26 @@ CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ | |||
72 | CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ptc=no | 72 | CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ptc=no | |
73 | .endif | 73 | .endif | |
74 | 74 | |||
75 | # http://bugs.python.org/issue13241 | 75 | # http://bugs.python.org/issue13241 | |
76 | .if ${MACHINE_PLATFORM:MDarwin-1[12].*} | 76 | .if ${MACHINE_PLATFORM:MDarwin-1[12].*} | |
77 | PKGSRC_COMPILER= clang | 77 | PKGSRC_COMPILER= clang | |
78 | PKG_CC= clang | 78 | PKG_CC= clang | |
79 | PKG_CXX= clang++ | 79 | PKG_CXX= clang++ | |
80 | .endif | 80 | .endif | |
81 | 81 | |||
82 | # Used in socketmodule.c to determine if a sethostname declaration is required | 82 | # Used in socketmodule.c to determine if a sethostname declaration is required | |
83 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} | 83 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} | |
84 | LIBS.SunOS+= -lrt # fdatasync() | 84 | LIBS.SunOS+= -lrt # fdatasync() | |
85 | LIBS.SunOS+= -luuid | |||
86 | .if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} < 051100 | 85 | .if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} < 051100 | |
87 | SUBST_CLASSES+= setup | 86 | SUBST_CLASSES+= setup | |
88 | SUBST_MESSAGE.setup= Replacing crypt with crypt_i | 87 | SUBST_MESSAGE.setup= Replacing crypt with crypt_i | |
89 | SUBST_STAGE.setup= pre-configure | 88 | SUBST_STAGE.setup= pre-configure | |
90 | SUBST_FILES.setup= setup.py | 89 | SUBST_FILES.setup= setup.py | |
91 | SUBST_SED.setup= -e "s,'crypt','crypt_i'," | 90 | SUBST_SED.setup= -e "s,'crypt','crypt_i'," | |
92 | .endif | 91 | .endif | |
93 | 92 | |||
94 | PY_VER_SUFFIX= 3.11 | 93 | PY_VER_SUFFIX= 3.11 | |
95 | 94 | |||
96 | .if ${OPSYS} == "Darwin" | 95 | .if ${OPSYS} == "Darwin" | |
97 | USE_TOOLS+= gmake | 96 | USE_TOOLS+= gmake | |
98 | .endif | 97 | .endif |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2023/11/10 16:55:32 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2023/11/23 12:43:35 jperkin Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python312-${PY_DISTVERSION} | 5 | PKGNAME= python312-${PY_DISTVERSION} | |
6 | PKGREVISION= 4 | 6 | PKGREVISION= 4 | |
7 | CATEGORIES= lang python | 7 | CATEGORIES= lang python | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://www.python.org/ | 10 | HOMEPAGE= https://www.python.org/ | |
11 | COMMENT= Interpreted, interactive, object-oriented programming language | 11 | COMMENT= Interpreted, interactive, object-oriented programming language | |
12 | LICENSE= python-software-foundation | 12 | LICENSE= python-software-foundation | |
13 | 13 | |||
14 | CONFLICTS+= python-[0-9]* | 14 | CONFLICTS+= python-[0-9]* | |
@@ -81,27 +81,26 @@ CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ | @@ -81,27 +81,26 @@ CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ | |||
81 | CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ptc=no | 81 | CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ptc=no | |
82 | .endif | 82 | .endif | |
83 | 83 | |||
84 | # http://bugs.python.org/issue13241 | 84 | # http://bugs.python.org/issue13241 | |
85 | .if ${MACHINE_PLATFORM:MDarwin-1[12].*} | 85 | .if ${MACHINE_PLATFORM:MDarwin-1[12].*} | |
86 | PKGSRC_COMPILER= clang | 86 | PKGSRC_COMPILER= clang | |
87 | PKG_CC= clang | 87 | PKG_CC= clang | |
88 | PKG_CXX= clang++ | 88 | PKG_CXX= clang++ | |
89 | .endif | 89 | .endif | |
90 | 90 | |||
91 | # Used in socketmodule.c to determine if a sethostname declaration is required | 91 | # Used in socketmodule.c to determine if a sethostname declaration is required | |
92 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} | 92 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} | |
93 | LIBS.SunOS+= -lrt # fdatasync() | 93 | LIBS.SunOS+= -lrt # fdatasync() | |
94 | LIBS.SunOS+= -luuid | |||
95 | 94 | |||
96 | LIBS.NetBSD+= -lcrypt | 95 | LIBS.NetBSD+= -lcrypt | |
97 | 96 | |||
98 | PY_VER_SUFFIX= 3.12 | 97 | PY_VER_SUFFIX= 3.12 | |
99 | 98 | |||
100 | .if ${OPSYS} == "Darwin" | 99 | .if ${OPSYS} == "Darwin" | |
101 | USE_TOOLS+= gmake | 100 | USE_TOOLS+= gmake | |
102 | .endif | 101 | .endif | |
103 | 102 | |||
104 | .include "platname.mk" | 103 | .include "platname.mk" | |
105 | PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} | 104 | PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} | |
106 | 105 | |||
107 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 106 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise |