Import of pkgsrc-2015Q2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$NetBSD: patch-am,v 1.18 2014/11/02 13:31:11 spz Exp $
|
||||
$NetBSD: patch-am,v 1.19 2015/04/24 03:01:36 rodent Exp $
|
||||
|
||||
Disabled modules for normal build:
|
||||
bsddb
|
||||
@@ -23,7 +23,7 @@ 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 2014-06-30 02:05:48.000000000 +0000
|
||||
--- setup.py.orig 2014-12-10 16:00:01.000000000 +0000
|
||||
+++ setup.py
|
||||
@@ -33,7 +33,7 @@ host_platform = get_platform()
|
||||
COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
|
||||
@@ -34,7 +34,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
|
||||
def add_dir_to_list(dirlist, dir):
|
||||
"""Add the directory 'dir' to the list 'dirlist' (at the front) if
|
||||
@@ -436,10 +436,15 @@ class PyBuildExt(build_ext):
|
||||
@@ -438,10 +438,15 @@ class PyBuildExt(build_ext):
|
||||
os.unlink(tmpfile)
|
||||
|
||||
def detect_modules(self):
|
||||
@@ -54,7 +54,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
if cross_compiling:
|
||||
self.add_gcc_paths()
|
||||
self.add_multiarch_paths()
|
||||
@@ -551,7 +556,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -553,7 +558,7 @@ class PyBuildExt(build_ext):
|
||||
|
||||
# Check for MacOS X, which doesn't need libm.a at all
|
||||
math_libs = ['m']
|
||||
@@ -63,7 +63,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
math_libs = []
|
||||
|
||||
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
||||
@@ -787,11 +792,10 @@ class PyBuildExt(build_ext):
|
||||
@@ -789,11 +794,10 @@ class PyBuildExt(build_ext):
|
||||
libraries=math_libs) )
|
||||
# Detect SSL support for the socket module (via _ssl)
|
||||
search_for_ssl_incs_in = [
|
||||
@@ -78,7 +78,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
)
|
||||
if ssl_incs is not None:
|
||||
krb5_h = find_file('krb5.h', inc_dirs,
|
||||
@@ -799,9 +803,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -801,9 +805,7 @@ class PyBuildExt(build_ext):
|
||||
if krb5_h:
|
||||
ssl_incs += krb5_h
|
||||
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
|
||||
@@ -89,7 +89,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
|
||||
if (ssl_incs is not None and
|
||||
ssl_libs is not None):
|
||||
@@ -820,7 +822,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -822,7 +824,7 @@ class PyBuildExt(build_ext):
|
||||
|
||||
# look for the openssl version header on the compiler search path.
|
||||
opensslv_h = find_file('openssl/opensslv.h', [],
|
||||
@@ -98,7 +98,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
if opensslv_h:
|
||||
name = os.path.join(opensslv_h[0], 'openssl/opensslv.h')
|
||||
if host_platform == 'darwin' and is_macosx_sdk_path(name):
|
||||
@@ -920,175 +922,6 @@ class PyBuildExt(build_ext):
|
||||
@@ -922,175 +924,6 @@ class PyBuildExt(build_ext):
|
||||
else:
|
||||
raise ValueError("unknown major BerkeleyDB version", major)
|
||||
|
||||
@@ -274,7 +274,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
# The sqlite interface
|
||||
sqlite_setup_debug = False # verbose debug prints from this script?
|
||||
|
||||
@@ -1205,35 +1038,39 @@ class PyBuildExt(build_ext):
|
||||
@@ -1207,35 +1040,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.
|
||||
@@ -338,7 +338,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
config_args = [arg.strip("'")
|
||||
for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
|
||||
dbm_args = [arg for arg in config_args
|
||||
@@ -1245,7 +1082,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -1247,7 +1084,7 @@ class PyBuildExt(build_ext):
|
||||
dbmext = None
|
||||
for cand in dbm_order:
|
||||
if cand == "ndbm":
|
||||
@@ -347,7 +347,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
# Some systems have -lndbm, others have -lgdbm_compat,
|
||||
# others don't have either
|
||||
if self.compiler.find_library_file(lib_dirs,
|
||||
@@ -1289,18 +1126,14 @@ class PyBuildExt(build_ext):
|
||||
@@ -1291,18 +1128,14 @@ class PyBuildExt(build_ext):
|
||||
libraries = gdbm_libs)
|
||||
break
|
||||
elif cand == "bdb":
|
||||
@@ -374,7 +374,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
if dbmext is not None:
|
||||
exts.append(dbmext)
|
||||
else:
|
||||
@@ -2228,9 +2061,9 @@ def main():
|
||||
@@ -2230,9 +2063,9 @@ def main():
|
||||
ext_modules=[Extension('_struct', ['_struct.c'])],
|
||||
|
||||
# Scripts to install
|
||||
|
||||
Reference in New Issue
Block a user