pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/python39



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Thu Jun 29 01:32:06 UTC 2023

Modified Files:
        pkgsrc/lang/python39: Makefile

Log Message:
python39: Fix env vars for sysconfig data when cross-compiling.

Paves the way to cross-version-compiling (e.g., netbsd9 building
packages for netbsd10) and cross-OS-compilation (e.g., macOS building
packages for NetBSD).


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 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/python39/Makefile
diff -u pkgsrc/lang/python39/Makefile:1.24 pkgsrc/lang/python39/Makefile:1.25
--- pkgsrc/lang/python39/Makefile:1.24  Tue Jun 27 10:35:30 2023
+++ pkgsrc/lang/python39/Makefile       Thu Jun 29 01:32:06 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2023/06/27 10:35:30 riastradh Exp $
+# $NetBSD: Makefile,v 1.25 2023/06/29 01:32:06 riastradh Exp $
 
 .include "dist.mk"
 
@@ -38,11 +38,8 @@ PTHREAD_OPTS+=       require
 
 .if ${USE_CROSS_COMPILE:U:tl} == "yes"
 TOOL_DEPENDS+=         ${PKGNAME}:../../${PKGPATH}
-# XXX copied from ../../lang/python/pyversion.mk to avoid including it
 CONFIGURE_ARGS+=       PYTHON_FOR_BUILD=${TOOLBASE:Q}/bin/python3.9
 CONFIGURE_ARGS+=       MACHDEP=${PY_PLATNAME}
-CONFIGURE_ARGS+=       \
-       _PYTHON_HOST_PLATFORM=${LOWER_OPSYS}-${MACHINE_GNU_ARCH}
 CONFIGURE_ARGS+=       ac_sys_system=${OPSYS}
 .  if ${OPSYS} == "OSF1"
 CONFIGURE_ARGS+=       ac_cv_buggy_getaddrinfo=true
@@ -51,9 +48,11 @@ CONFIGURE_ARGS+=     ac_cv_buggy_getaddrinfo
 .  endif
 CONFIGURE_ARGS.NetBSD+=        ac_cv_file__dev_ptmx=yes
 CONFIGURE_ARGS.NetBSD+=        ac_cv_file__dev_ptc=no
-MAKE_ENV+=             \
+ALL_ENV+=              _PYTHON_PROJECT_BASE=${WRKSRC:Q}
+ALL_ENV+=              \
        _PYTHON_HOST_PLATFORM=${LOWER_OPSYS}-${MACHINE_GNU_ARCH}
-MAKE_ENV+=             _PYTHON_PROJECT_BASE=${WRKSRC:Q}
+ALL_ENV+=              \
+       _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_${PY_PLATNAME}
 .endif
 
 # http://bugs.python.org/issue13241



Home | Main Index | Thread Index | Old Index