pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python27 Do not install bsddb185 module by default.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/66394d3b41c8
branches:  trunk
changeset: 357733:66394d3b41c8
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jan 26 23:10:35 2017 +0000

description:
Do not install bsddb185 module by default.
Bump PKGREVISION.

Based on patch from Jesus Cea on tech-pkg.

If you need this module, let me know and we can package it separately.

diffstat:

 lang/python27/Makefile         |  14 +---------
 lang/python27/PLIST.common     |   3 +-
 lang/python27/distinfo         |   4 +-
 lang/python27/patches/patch-am |  55 ++++++++++++++++++++++-------------------
 4 files changed, 35 insertions(+), 41 deletions(-)

diffs (224 lines):

diff -r 7c18f3e42cab -r 66394d3b41c8 lang/python27/Makefile
--- a/lang/python27/Makefile    Thu Jan 26 21:12:39 2017 +0000
+++ b/lang/python27/Makefile    Thu Jan 26 23:10:35 2017 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.68 2016/12/30 10:53:21 adam Exp $
+# $NetBSD: Makefile,v 1.69 2017/01/26 23:10:35 wiz Exp $
 
 .include "dist.mk"
 
 PKGNAME=       python27-${PY_DISTVERSION}
+PKGREVISION=   1
 CATEGORIES=    lang python
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -124,20 +125,9 @@
 .  endif
 .endif
 
-.include "../../mk/bdb.buildlink3.mk"
-MAKE_ENV+=     PY_BDB_TYPE=${BDB_TYPE}
-.if empty(BDB_LIBS)
-BUILDLINK_TRANSFORM+=  rm:-ldb
-.endif
-CFLAGS+=       -DHAVE_DB_185_H
-
 # configure complains about buggy getaddrinfo()
 CONFIGURE_ARGS.OSF1+=  --disable-ipv6
 
-.if defined(BUILDLINK_TRANSFORM)
-MAKE_ENV+=     PY_BDB_TRANSFORM=${BUILDLINK_TRANSFORM:Q}
-.endif
-
 PLIST_SUBST+=  PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
 
 TEST_TARGET=   test
diff -r 7c18f3e42cab -r 66394d3b41c8 lang/python27/PLIST.common
--- a/lang/python27/PLIST.common        Thu Jan 26 21:12:39 2017 +0000
+++ b/lang/python27/PLIST.common        Thu Jan 26 23:10:35 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.16 2016/12/30 10:53:21 adam Exp $
+@comment $NetBSD: PLIST.common,v 1.17 2017/01/26 23:10:35 wiz Exp $
 bin/2to3-${PY_VER_SUFFIX}
 bin/pydoc${PY_VER_SUFFIX}
 bin/python${PY_VER_SUFFIX}
@@ -1922,7 +1922,6 @@
 lib/python${PY_VER_SUFFIX}/lib-dynload/array.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/audioop.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/binascii.so
-lib/python${PY_VER_SUFFIX}/lib-dynload/bsddb185.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/bz2.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/cPickle.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/cStringIO.so
diff -r 7c18f3e42cab -r 66394d3b41c8 lang/python27/distinfo
--- a/lang/python27/distinfo    Thu Jan 26 21:12:39 2017 +0000
+++ b/lang/python27/distinfo    Thu Jan 26 23:10:35 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.63 2017/01/08 19:49:15 wiz Exp $
+$NetBSD: distinfo,v 1.64 2017/01/26 23:10:35 wiz Exp $
 
 SHA1 (Python-2.7.13.tar.xz) = 18a8f30a0356c751b8d0ea6f76e764cab13ee046
 RMD160 (Python-2.7.13.tar.xz) = be09518cdc335314de1c5ebe181690082ce780d7
@@ -20,7 +20,7 @@
 SHA1 (patch-ae) = d836d77854a2b3d79fa34a06a8e2493bf0a503e6
 SHA1 (patch-ah) = dbb36db1182748fae26320dbe0bc5f9006886b1c
 SHA1 (patch-al) = 541936b79f281db06761f4fa6a65a04e852b02b4
-SHA1 (patch-am) = cf82bd1996aea8a8536bd37a74563bb85817c968
+SHA1 (patch-am) = 25c29f3799cb02db962d5c42d71ec59b4748466f
 SHA1 (patch-an) = 9aad78714c4fe1a21cf66a6627d97d164ecea196
 SHA1 (patch-ao) = 5bcfad96f8e490351160f1a7c1f4ece7706a33fa
 SHA1 (patch-au) = 0ecdb937cbd58e3dbfa6fb94d1af5838619c77fd
diff -r 7c18f3e42cab -r 66394d3b41c8 lang/python27/patches/patch-am
--- a/lang/python27/patches/patch-am    Thu Jan 26 21:12:39 2017 +0000
+++ b/lang/python27/patches/patch-am    Thu Jan 26 23:10:35 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: patch-am,v 1.21 2016/07/26 16:44:28 kamil Exp $
+$NetBSD: patch-am,v 1.22 2017/01/26 23:10:35 wiz Exp $
 
 Disabled modules for normal build:
 bsddb
+bsddb185
 curses
 curses_panel
 elementtree
@@ -19,22 +20,20 @@
 
 Build the _ssl module with pkgsrc choiced OpenSSL.
 
-Build the 1.85 compat module all the time against the BDB version of choice.
-
 cygwin 2.7.3-no-libm.patch
 
 --- setup.py.orig      2016-06-25 21:49:32.000000000 +0000
 +++ setup.py
-@@ -33,7 +33,7 @@ host_platform = get_platform()
+@@ -33,7 +33,7 @@
  COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
  
  # This global variable is used to hold the list of modules to be disabled.
 -disabled_module_list = []
-+disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", "_sqlite3", "_tkinter", "gdbm", "pyexpat", "readline", "linuxaudiodev", "ossaudiodev", "spwd", "sunaudiodev"]
++disabled_module_list = ["_bsddb", "bsddb185", "_curses", "_curses_panel", "_elementtree", "_sqlite3", "_tkinter", "gdbm", "pyexpat", "readline", "linuxaudiodev", "ossaudiodev", "spwd", 
"sunaudiodev"]
  
  def add_dir_to_list(dirlist, dir):
      """Add the directory 'dir' to the list 'dirlist' (at the front) if
-@@ -454,10 +454,15 @@ class PyBuildExt(build_ext):
+@@ -454,10 +454,15 @@
              os.unlink(tmpfile)
  
      def detect_modules(self):
@@ -54,7 +53,7 @@
          if cross_compiling:
              self.add_gcc_paths()
          self.add_multiarch_paths()
-@@ -569,7 +574,7 @@ class PyBuildExt(build_ext):
+@@ -569,7 +574,7 @@
  
          # Check for MacOS X, which doesn't need libm.a at all
          math_libs = ['m']
@@ -63,7 +62,7 @@
              math_libs = []
  
          # XXX Omitted modules: gl, pure, dl, SGI-specific modules
-@@ -809,11 +814,10 @@ class PyBuildExt(build_ext):
+@@ -809,11 +814,10 @@
                                 libraries=math_libs) )
          # Detect SSL support for the socket module (via _ssl)
          search_for_ssl_incs_in = [
@@ -78,7 +77,7 @@
                               )
          if ssl_incs is not None:
              krb5_h = find_file('krb5.h', inc_dirs,
-@@ -821,9 +825,7 @@ class PyBuildExt(build_ext):
+@@ -821,9 +825,7 @@
              if krb5_h:
                  ssl_incs += krb5_h
          ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
@@ -89,7 +88,7 @@
  
          if (ssl_incs is not None and
              ssl_libs is not None):
-@@ -842,7 +844,7 @@ class PyBuildExt(build_ext):
+@@ -842,7 +844,7 @@
  
          # look for the openssl version header on the compiler search path.
          opensslv_h = find_file('openssl/opensslv.h', [],
@@ -98,7 +97,7 @@
          if opensslv_h:
              name = os.path.join(opensslv_h[0], 'openssl/opensslv.h')
              if host_platform == 'darwin' and is_macosx_sdk_path(name):
-@@ -942,175 +944,6 @@ class PyBuildExt(build_ext):
+@@ -942,175 +944,6 @@
              else:
                  raise ValueError("unknown major BerkeleyDB version", major)
  
@@ -274,10 +273,21 @@
          # The sqlite interface
          sqlite_setup_debug = False   # verbose debug prints from this script?
  
-@@ -1227,35 +1060,39 @@ 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.
+@@ -1216,46 +1049,32 @@
+         else:
+             missing.append('_sqlite3')
+ 
+-        # Look for Berkeley db 1.85.   Note that it is built as a different
+-        # module name so it can be included even when later versions are
+-        # available.  A very restrictive search is performed to avoid
+-        # accidentally building this module with a later version of the
+-        # underlying db library.  May BSD-ish Unixes incorporate db 1.85
+-        # symbols into libc and place the include file in /usr/include.
+-        #
+-        # If the better bsddb library can be built (db_incs is defined)
+-        # 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.
 -        f = "/usr/include/db.h"
 -
 -        if host_platform == 'darwin':
@@ -301,14 +311,9 @@
 -                    exts.append(Extension('bsddb185', ['bsddbmodule.c']))
 -            else:
 -                missing.append('bsddb185')
-+        libraries = os.getenv("PY_BDB_TYPE", "")
-+        if libraries:
-+            exts.append(Extension('bsddb185', ['bsddbmodule.c'],
-+                                   libraries=['db']))
-         else:
+-        else:
 -            missing.append('bsddb185')
-+            exts.append(Extension('bsddb185', ['bsddbmodule.c']))
- 
+-
          dbm_order = ['gdbm']
          # The standard Unix dbm module:
          if host_platform not in ['cygwin']:
@@ -338,7 +343,7 @@
              config_args = [arg.strip("'")
                             for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
              dbm_args = [arg for arg in config_args
-@@ -1267,7 +1104,7 @@ class PyBuildExt(build_ext):
+@@ -1267,7 +1086,7 @@
              dbmext = None
              for cand in dbm_order:
                  if cand == "ndbm":
@@ -347,7 +352,7 @@
                          # Some systems have -lndbm, others have -lgdbm_compat,
                          # others don't have either
                          if self.compiler.find_library_file(lib_dirs,
-@@ -1311,18 +1148,14 @@ class PyBuildExt(build_ext):
+@@ -1311,18 +1130,14 @@
                                  libraries = gdbm_libs)
                              break
                  elif cand == "bdb":
@@ -374,7 +379,7 @@
              if dbmext is not None:
                  exts.append(dbmext)
              else:
-@@ -2250,9 +2083,9 @@ def main():
+@@ -2250,9 +2065,9 @@
            ext_modules=[Extension('_struct', ['_struct.c'])],
  
            # Scripts to install



Home | Main Index | Thread Index | Old Index