pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python36 Fix a build issue observed on NetBSD/mac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/11857a91000d
branches:  trunk
changeset: 362991:11857a91000d
user:      he <he%pkgsrc.org@localhost>
date:      Mon May 29 23:06:45 2017 +0000

description:
Fix a build issue observed on NetBSD/macppc, in that alloca() is left
as an unresolved undefined symbol, causing the install to fail due to
PLIST issues.  Change from -std=c99 to -std=gnu99 to work around this
problem, based on hint from joerg@.
Bump PKGREVISION.

diffstat:

 lang/python36/Makefile                |   3 ++-
 lang/python36/distinfo                |   4 ++--
 lang/python36/patches/patch-configure |  13 ++++++++++++-
 3 files changed, 16 insertions(+), 4 deletions(-)

diffs (65 lines):

diff -r a93e683d7164 -r 11857a91000d lang/python36/Makefile
--- a/lang/python36/Makefile    Mon May 29 22:01:23 2017 +0000
+++ b/lang/python36/Makefile    Mon May 29 23:06:45 2017 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.6 2017/03/30 11:42:58 adam Exp $
+# $NetBSD: Makefile,v 1.7 2017/05/29 23:06:45 he Exp $
 
 .include "dist.mk"
 
 PKGNAME=       python36-${PY_DISTVERSION}
 CATEGORIES=    lang python
+PKGREVISION=   1
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.python.org/
diff -r a93e683d7164 -r 11857a91000d lang/python36/distinfo
--- a/lang/python36/distinfo    Mon May 29 22:01:23 2017 +0000
+++ b/lang/python36/distinfo    Mon May 29 23:06:45 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2017/05/23 10:53:56 jperkin Exp $
+$NetBSD: distinfo,v 1.10 2017/05/29 23:06:45 he Exp $
 
 SHA1 (Python-3.6.1.tar.xz) = 91d880a2a9fcfc6753cbfa132bf47a47e17e7b16
 RMD160 (Python-3.6.1.tar.xz) = 77e70ec6a07b9c17a99ac1df503f12f3a4c49fce
@@ -14,5 +14,5 @@
 SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567
 SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d
 SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be
-SHA1 (patch-configure) = fe9b0213b64313dab4c453a8bd7135db961f6ac4
+SHA1 (patch-configure) = a5b943a2fb05b237ff370e5632de0597813d7944
 SHA1 (patch-setup.py) = 1e14b84fc5cb21b3fa61755bf574021ba9b2ab81
diff -r a93e683d7164 -r 11857a91000d lang/python36/patches/patch-configure
--- a/lang/python36/patches/patch-configure     Mon May 29 22:01:23 2017 +0000
+++ b/lang/python36/patches/patch-configure     Mon May 29 23:06:45 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-configure,v 1.6 2017/05/23 10:53:56 jperkin Exp $
+$NetBSD: patch-configure,v 1.7 2017/05/29 23:06:45 he Exp $
 
 Simplify _sysconfigdata to include only platform name.
 
@@ -9,6 +9,8 @@
 
 Fix linking on Darwin.
 
+Use gnu99 instead of c99 to avoid "alloca() undefined" problems on macppc.
+
 --- configure.orig     2017-03-21 06:32:38.000000000 +0000
 +++ configure
 @@ -2928,7 +2928,7 @@ $as_echo_n "checking for python interpre
@@ -38,6 +40,15 @@
          LDLIBRARY='libpython$(LDVERSION).so'
          BLDLIBRARY='-L. -lpython$(LDVERSION)'
          RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+@@ -6897,7 +6897,7 @@ UNIVERSAL_ARCH_FLAGS=
+ # tweak BASECFLAGS based on compiler and platform
+ case $GCC in
+ yes)
+-    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
++    CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
+ 
+     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
+ $as_echo_n "checking for -Wextra... " >&6; }
 @@ -9188,8 +9188,8 @@ then
                        LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
                else



Home | Main Index | Thread Index | Old Index