summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2011-05-06 16:21:16 +0000
committerabs <abs@pkgsrc.org>2011-05-06 16:21:16 +0000
commitf48db337a92c5125ca745c41f93c4429dc607813 (patch)
treea17fb237f06ac63ec7bd0c0acc5a5e7f077ac2c0 /lang
parent34fd7e7c693db07bf483a94bde53155471f9b09f (diff)
downloadpkgsrc-f48db337a92c5125ca745c41f93c4429dc607813.tar.gz
Fix build on (at least RHEL 5.6). Tested (and no change) on NetBSD 5.99.51
Diffstat (limited to 'lang')
-rw-r--r--lang/python27/distinfo4
-rw-r--r--lang/python27/patches/patch-am43
2 files changed, 29 insertions, 18 deletions
diff --git a/lang/python27/distinfo b/lang/python27/distinfo
index 61781de4f68..14567a05066 100644
--- a/lang/python27/distinfo
+++ b/lang/python27/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2011/03/28 16:00:07 drochner Exp $
+$NetBSD: distinfo,v 1.4 2011/05/06 16:27:04 abs Exp $
SHA1 (Python-2.7.1.tar.bz2) = fbe1894322ff91b80726e269c97454f4129fc2a3
RMD160 (Python-2.7.1.tar.bz2) = 3ce59305f6cd3fb320a53771d0ea01ec0687005f
@@ -9,7 +9,7 @@ SHA1 (patch-ad) = de730b9f5a5efb56afa8bed05824b5f6579242ec
SHA1 (patch-ae) = ff6d8c6164fe3c6dc4fb33d88eb8a49d5c5442f6
SHA1 (patch-ah) = 8e9ee44c7a054f1387b6d8ef8dbe9c1b8dc8d891
SHA1 (patch-al) = 2c6a578b62dfba45b2ba01a6b004f1d8feee0fe2
-SHA1 (patch-am) = c0a72af7c9827a9107fb7d1862febd487b9b5c83
+SHA1 (patch-am) = 760ed52308b31043bbf28528adf2a99f2420d85b
SHA1 (patch-an) = 6098fbf0fc31422196cc40d3a227934523db11ca
SHA1 (patch-ao) = 2061473e5e672b4cc38d91c5d8f885cb361a35b3
SHA1 (patch-au) = 700dc128833af755f3ea08c4db79c127453b12e6
diff --git a/lang/python27/patches/patch-am b/lang/python27/patches/patch-am
index e1ff54a5837..3db7010efc7 100644
--- a/lang/python27/patches/patch-am
+++ b/lang/python27/patches/patch-am
@@ -1,4 +1,4 @@
-$NetBSD: patch-am,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $
+$NetBSD: patch-am,v 1.2 2011/05/06 16:27:04 abs Exp $
Disabled modules for normal build:
bsddb
@@ -19,7 +19,7 @@ headers and libraries from the system.
Build the 1.85 compat module all the time against the BDB version of choice.
---- setup.py.orig 2010-06-27 12:36:16.000000000 +0000
+--- setup.py.orig 2010-10-31 16:40:21.000000000 +0000
+++ setup.py
@@ -21,7 +21,7 @@ from distutils.spawn import find_executa
COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount')
@@ -49,7 +49,7 @@ Build the 1.85 compat module all the time against the BDB version of choice.
# Add paths specified in the environment variables LDFLAGS and
# CPPFLAGS for header and library files.
-@@ -681,9 +687,7 @@ class PyBuildExt(build_ext):
+@@ -692,9 +698,7 @@ class PyBuildExt(build_ext):
if krb5_h:
ssl_incs += krb5_h
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
@@ -60,7 +60,7 @@ Build the 1.85 compat module all the time against the BDB version of choice.
if (ssl_incs is not None and
ssl_libs is not None):
-@@ -798,172 +802,6 @@ class PyBuildExt(build_ext):
+@@ -809,172 +813,6 @@ class PyBuildExt(build_ext):
else:
raise ValueError("unknown major BerkeleyDB version", major)
@@ -233,7 +233,7 @@ Build the 1.85 compat module all the time against the BDB version of choice.
# The sqlite interface
sqlite_setup_debug = False # verbose debug prints from this script?
-@@ -1079,31 +917,12 @@ class PyBuildExt(build_ext):
+@@ -1090,31 +928,12 @@ class PyBuildExt(build_ext):
# we do not build this one. Otherwise this build will pick up
# the more recent berkeleydb's db.h file first in the include path
# when attempting to compile and it will fail.
@@ -270,23 +270,34 @@ Build the 1.85 compat module all the time against the BDB version of choice.
dbm_order = ['gdbm']
# The standard Unix dbm module:
-@@ -1162,14 +981,11 @@ class PyBuildExt(build_ext):
- if db_incs is not None:
- print "building dbm using bdb"
- dbmext = Extension('dbm', ['dbmmodule.c'],
+@@ -1170,18 +989,14 @@ class PyBuildExt(build_ext):
+ libraries = gdbm_libs)
+ break
+ elif cand == "bdb":
+- if db_incs is not None:
+- print "building dbm using bdb"
+- dbmext = Extension('dbm', ['dbmmodule.c'],
- library_dirs=dblib_dir,
- runtime_library_dirs=dblib_dir,
- include_dirs=db_incs,
- define_macros=[
- ('HAVE_BERKDB_H', None),
- ('DB_DBM_HSEARCH', None),
- ],
+- define_macros=[
+- ('HAVE_BERKDB_H', None),
+- ('DB_DBM_HSEARCH', None),
+- ],
- libraries=dblibs)
-+ libraries=["db"])
- break
+- break
++ print "building dbm using bdb"
++ dbmext = Extension('dbm', ['dbmmodule.c'],
++ define_macros=[
++ ('HAVE_BERKDB_H', None),
++ ('DB_DBM_HSEARCH', None),
++ ],
++ libraries=["db"])
++ break
if dbmext is not None:
exts.append(dbmext)
-@@ -2032,9 +1848,9 @@ def main():
+ else:
+@@ -2043,9 +1858,9 @@ def main():
ext_modules=[Extension('_struct', ['_struct.c'])],
# Scripts to install