Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+71 -55
View File
@@ -1,69 +1,86 @@
$NetBSD: patch-SConstruct,v 1.2 2015/05/05 15:54:49 joerg Exp $
$NetBSD: patch-SConstruct,v 1.4 2016/06/17 11:51:08 fhajny Exp $
Add support for NetBSD/Dragonfly, fix locations.
--- SConstruct.orig 2015-04-08 20:28:08.000000000 +0000
--- SConstruct.orig 2016-06-02 14:46:27.000000000 +0000
+++ SConstruct
@@ -53,7 +53,9 @@ nix = False
linux = False
darwin = False
windows = False
+dragonfly = False
freebsd = False
+netbsd = False
openbsd = False
solaris = False
@@ -40,8 +40,12 @@ def get_running_os_name():
running_os = os.sys.platform
if running_os.startswith('linux'):
running_os = 'linux'
+ elif running_os.startswith('dragonfly'):
+ running_os = 'dragonfly'
elif running_os.startswith('freebsd'):
running_os = 'freebsd'
+ elif running_os.startswith('netbsd'):
+ running_os = 'netbsd'
elif running_os.startswith('openbsd'):
running_os = 'openbsd'
elif running_os == 'sunos5':
@@ -59,7 +63,7 @@ def env_get_os_name_wrapper(self):
@@ -65,8 +67,12 @@ elif platform.startswith("linux"):
platform = "linux"
elif "sunos5" == platform:
solaris = True
+elif platform.startswith( "dragonfly" ):
+ dragonfly = True
elif platform.startswith( "freebsd" ):
freebsd = True
+elif platform.startswith( "netbsd" ):
+ netbsd = True
elif platform.startswith( "openbsd" ):
openbsd = True
elif "win32" == platform:
@@ -571,6 +577,7 @@ envDict = dict(BUILD_ROOT=buildDir,
CONFIGUREDIR=sconsDataDir.Dir('sconf_temp'),
CONFIGURELOG=sconsDataDir.File('config.log'),
def is_os_raw(target_os, os_list_to_check):
okay = False
- posix_os_list = [ 'linux', 'openbsd', 'freebsd', 'osx', 'solaris' ]
+ posix_os_list = [ 'linux', 'openbsd', 'freebsd', 'osx', 'solaris', 'dragonfly', 'netbsd' ]
for p in os_list_to_check:
if p == 'posix' and target_os in posix_os_list:
@@ -831,6 +835,7 @@ envDict = dict(BUILD_ROOT=buildDir,
INSTALL_DIR=installDir,
+ ENV = os.environ
CONFIG_HEADER_DEFINES={},
LIBDEPS_TAG_EXPANSIONS=[],
+ ENV = os.environ,
)
if windows:
@@ -848,6 +855,12 @@ elif solaris:
env.Append( CPPDEFINES=[ "__sunos__" ] )
env = Environment(variables=env_vars, **envDict)
@@ -968,7 +973,9 @@ def CheckForProcessor(context, which_arc
os_macros = {
"windows": "_WIN32",
"solaris": "__sun",
+ "dragonfly": "__DragonFly__",
"freebsd": "__FreeBSD__",
+ "netbsd": "__NetBSD__",
"openbsd": "__OpenBSD__",
"osx": "__APPLE__",
"linux": "__linux__",
@@ -1233,7 +1240,7 @@ if env['_LIBDEPS'] == '$_LIBDEPS_OBJS':
libdeps.setup_environment(env, emitting_shared=(link_model.startswith("dynamic")))
-if env.TargetOSIs('linux', 'freebsd', 'openbsd'):
+if env.TargetOSIs('linux', 'dragonfly', 'freebsd', 'netbsd', 'openbsd'):
env['LINK_LIBGROUP_START'] = '-Wl,--start-group'
env['LINK_LIBGROUP_END'] = '-Wl,--end-group'
env['LINK_WHOLE_ARCHIVE_START'] = '-Wl,--whole-archive'
@@ -1261,10 +1268,24 @@ if env.TargetOSIs('linux'):
elif env.TargetOSIs('solaris'):
env.Append( LIBS=["socket","resolv","lgrp"] )
+elif os.sys.platform.startswith( "dragonfly" ):
+ env.Append( CPPPATH=[ "/usr/pkg/include" ] )
+ env.Append( LIBPATH=[ "/usr/pkg/lib" ] )
+ env.Append( LIBS=[ "m" ] )
+ env.Append( LIBS=[ "kvm" ] )
+ env.Append( CPPDEFINES=[ "__dragonfly__" ] )
+
elif freebsd:
elif env.TargetOSIs('freebsd'):
env.Append( LIBS=[ "kvm" ] )
env.Append( EXTRACPPPATH=[ "/usr/local/include" ] )
@@ -855,6 +868,12 @@ elif freebsd:
env.Append( CPPDEFINES=[ "__freebsd__" ] )
env.Append( CCFLAGS=[ "-fno-omit-frame-pointer" ] )
+elif os.sys.platform.startswith( "netbsd" ):
+ env.Append( CPPPATH=[ "/usr/pkg/include" ] )
+ env.Append( LIBPATH=[ "/usr/pkg/lib" ] )
+ env.Append( LIBS=[ "m" ] )
+ env.Append( LIBS=[ "kvm" ] )
+ env.Append( CPPDEFINES=[ "__netbsd__" ] )
+
elif openbsd:
env.Append( EXTRACPPPATH=[ "/usr/local/include" ] )
env.Append( EXTRALIBPATH=[ "/usr/local/lib" ] )
@@ -1020,8 +1039,11 @@ if nix:
elif env.TargetOSIs('openbsd'):
env.Append( LIBS=[ "kvm" ] )
@@ -1432,8 +1453,11 @@ if env.TargetOSIs('posix'):
if not has_option("disable-warnings-as-errors"):
env.Append( CCFLAGS=["-Werror"] )
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
+ env.Append( CPPDEFINES=["XP_UNIX=1"] )
env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
@@ -72,21 +89,20 @@ Add support for NetBSD/Dragonfly, fix locations.
# SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
# startup.
@@ -2163,7 +2185,7 @@ def doConfigure(myenv):
Exit(1)
@@ -2406,6 +2430,7 @@ def doConfigure(myenv):
# permit more than four parameters.
"BOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD",
"BOOST_SYSTEM_NO_DEPRECATED",
+ "BOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE",
]
)
@@ -2472,7 +2497,7 @@ def doConfigure(myenv):
myenv.ConfError("Couldn't find SASL header/libraries")
# requires ports devel/libexecinfo to be installed
- if freebsd or openbsd:
+ if freebsd or openbsd or netbsd or dragonfly:
- if env.TargetOSIs('freebsd', 'openbsd'):
+ if env.TargetOSIs('dragonfly', 'freebsd', 'netbsd', 'openbsd'):
if not conf.CheckLib("execinfo"):
print("Cannot find libexecinfo, please install devel/libexecinfo.")
Exit(1)
@@ -2409,7 +2431,7 @@ Export("mongoCodeVersion")
Export("usev8")
Export("v8version v8suffix")
Export("boostSuffix")
-Export("darwin windows solaris linux freebsd nix openbsd")
+Export("darwin windows solaris linux freebsd nix openbsd netbsd dragonfly")
Export('module_sconscripts')
Export("debugBuild optBuild")
Export("s3push")
myenv.ConfError("Cannot find libexecinfo, please install devel/libexecinfo.")