pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python24 Darwin build fixes:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1aa2e76b511
branches:  trunk
changeset: 485716:c1aa2e76b511
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Dec 19 05:30:14 2004 +0000

description:
Darwin build fixes:

- ignore poll()
- needs dlopen.buildlink3.mk
- pass -fPIC -fno-common to CC for objects being linked into a shared
  library

diffstat:

 lang/python24/Makefile.common  |   7 +++++--
 lang/python24/distinfo         |   4 ++--
 lang/python24/patches/patch-al |  28 ++++++++++++++++++----------
 3 files changed, 25 insertions(+), 14 deletions(-)

diffs (123 lines):

diff -r a5249ecb3dd6 -r c1aa2e76b511 lang/python24/Makefile.common
--- a/lang/python24/Makefile.common     Sun Dec 19 05:10:49 2004 +0000
+++ b/lang/python24/Makefile.common     Sun Dec 19 05:30:14 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1.1.1 2004/12/05 23:27:28 recht Exp $
+# $NetBSD: Makefile.common,v 1.2 2004/12/19 05:30:14 grant Exp $
 #
 
 DISTNAME=      Python-2.4
@@ -66,9 +66,11 @@
 PLIST_SUBST+=  EXTRA_SO=${EXTRA_SO_SUBST}
 PLIST_SUBST+=  OSSAUDIODEV=${OSSAUDIODEV_SUBST}
 
+.if ${OPSYS} == "Darwin"
 # Make sure python modules can link correctly
-.if ${OPSYS} == "Darwin"
 INSTALL_UNSTRIPPED=    yes
+# newer Darwin has poll() but not poll.h, so explicitly ignore poll().
+CONFIGURE_ENV+=                ac_cv_func_poll=no
 .endif
 
 .if ${OPSYS} == "IRIX"
@@ -105,5 +107,6 @@
 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
 .include "../../mk/ossaudio.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a5249ecb3dd6 -r c1aa2e76b511 lang/python24/distinfo
--- a/lang/python24/distinfo    Sun Dec 19 05:10:49 2004 +0000
+++ b/lang/python24/distinfo    Sun Dec 19 05:30:14 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/12/05 23:27:45 recht Exp $
+$NetBSD: distinfo,v 1.2 2004/12/19 05:30:14 grant Exp $
 
 SHA1 (Python-2.4.tar.bz2) = 80c06f491a4b2a629e868540150faf22c5d0e41e
 Size (Python-2.4.tar.bz2) = 7840762 bytes
@@ -13,5 +13,5 @@
 SHA1 (patch-ai) = 6435c5a7269c14d94eab6fb9777b9d059507e7b8
 SHA1 (patch-aj) = e471737ade95423039661b475f2dd0fc27aa9dac
 SHA1 (patch-ak) = f2e1d4087a94490bd3589a8c829ec72e04f31f72
-SHA1 (patch-al) = 2339f32554e13b24fe14a072665422b6e66ed0f8
+SHA1 (patch-al) = bd37238a62dc9a0f99b95aaac8de622a28919761
 SHA1 (patch-am) = aa71ec2f9cc8f434ff38b19df23b5dd433e13e5a
diff -r a5249ecb3dd6 -r c1aa2e76b511 lang/python24/patches/patch-al
--- a/lang/python24/patches/patch-al    Sun Dec 19 05:10:49 2004 +0000
+++ b/lang/python24/patches/patch-al    Sun Dec 19 05:30:14 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-al,v 1.1.1.1 2004/12/05 23:27:51 recht Exp $
+$NetBSD: patch-al,v 1.2 2004/12/19 05:30:14 grant Exp $
 
---- configure.orig     Sun Dec  5 22:09:59 2004
-+++ configure  Sun Dec  5 22:12:25 2004
-@@ -1479,6 +1479,8 @@
+--- configure.orig     2004-11-07 12:24:12.000000000 +1100
++++ configure
+@@ -1479,6 +1479,8 @@ case $ac_sys_system/$ac_sys_release in
    # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
    OpenBSD/2.* | OpenBSD/3.[0123456])
      define_xopen_source=no;;
@@ -11,7 +11,7 @@
    # On Solaris 2.6, sys/wait.h is inconsistent in the usage
    # of union __?sigval. Reported by Stuart Bishop.
    SunOS/5.6)
-@@ -3418,6 +3420,14 @@
+@@ -3418,6 +3420,14 @@ _ACEOF
          BLDLIBRARY='-L. -lpython$(VERSION)'
          RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
          ;;
@@ -26,7 +26,7 @@
    esac
  else # shared is disabled
    case $ac_sys_system in
-@@ -3816,7 +3826,12 @@
+@@ -3816,7 +3826,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
            ;;
        # is there any other compiler on Darwin besides gcc?
        Darwin*)
@@ -40,7 +40,7 @@
            ;;
      esac
      ;;
-@@ -10295,7 +10310,7 @@
+@@ -10295,7 +10310,7 @@ then
                        LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
                else
                        # No framework. Ignore undefined symbols, assuming they come from Python
@@ -49,7 +49,7 @@
                fi ;;
        Darwin/1.4*|Darwin/5.*|Darwin/6.*)
                LDSHARED='$(CC) $(LDFLAGS) -bundle'
-@@ -10305,8 +10320,8 @@
+@@ -10305,8 +10320,8 @@ then
                        LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
                else
                        # No framework, use the Python app as bundle-loader
@@ -60,7 +60,7 @@
                fi ;;
        Darwin/*)
                # Use -undefined dynamic_lookup whenever possible (10.3 and later).
-@@ -10324,8 +10339,8 @@
+@@ -10324,8 +10339,8 @@ then
                                LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)'
                        else
                                # No framework, use the Python app as bundle-loader
@@ -71,7 +71,15 @@
                        fi
                fi
                ;;
-@@ -14297,6 +14312,7 @@
+@@ -10370,6 +10385,7 @@ then
+                fi;;
+       Linux*|GNU*) CCSHARED="-fPIC";;
+       BSD/OS*/4*) CCSHARED="-fpic";;
++      Darwin/7*) CCSHARED="-fPIC -fno-common";;
+       FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
+       OpenUNIX*|UnixWare*)
+               if test "$GCC" = "yes"
+@@ -14297,6 +14313,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
  #include "confdefs.h"



Home | Main Index | Thread Index | Old Index