dev-db/mongodb: reintroduce scons fixes
authorTomas Mozes <hydrapolic@gmail.com>
Tue, 9 Jan 2018 10:30:26 +0000 (11:30 +0100)
committerUltrabug <ultrabug@gentoo.org>
Thu, 11 Jan 2018 11:34:12 +0000 (12:34 +0100)
Closes: https://bugs.gentoo.org/643984
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/6804

dev-db/mongodb/files/mongodb-3.6.1-fix-scons.patch [new file with mode: 0644]
dev-db/mongodb/mongodb-3.6.1-r1.ebuild [moved from dev-db/mongodb/mongodb-3.6.1.ebuild with 99% similarity]

diff --git a/dev-db/mongodb/files/mongodb-3.6.1-fix-scons.patch b/dev-db/mongodb/files/mongodb-3.6.1-fix-scons.patch
new file mode 100644 (file)
index 0000000..d7bfb35
--- /dev/null
@@ -0,0 +1,32 @@
+diff --git a/SConstruct b/SConstruct
+index fe7975b..92659a7 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -1619,7 +1619,6 @@ if env.TargetOSIs('posix'):
+     # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
+     env.Append( CCFLAGS=["-fno-omit-frame-pointer",
+                          "-fno-strict-aliasing",
+-                         "-ggdb",
+                          "-pthread",
+                          "-Wall",
+                          "-Wsign-compare",
+@@ -1631,6 +1630,8 @@ if env.TargetOSIs('posix'):
+             env.Append( CCFLAGS=["-Werror"] )
+     env.Append( CXXFLAGS=["-Woverloaded-virtual"] )
++    env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
++    env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
+     if env.ToolchainIs('clang'):
+         env.Append( CXXFLAGS=['-Werror=unused-result'] )
+@@ -1650,8 +1651,8 @@ if env.TargetOSIs('posix'):
+     env.Append( LIBS=[] )
+-    #make scons colorgcc friendly
+-    for key in ('HOME', 'TERM'):
++    #make scons colorgcc, distcc, ccache friendly
++    for key in ('HOME', 'PATH', 'TERM'):
+         try:
+             env['ENV'][key] = os.environ[key]
+         except KeyError:
similarity index 99%
rename from dev-db/mongodb/mongodb-3.6.1.ebuild
rename to dev-db/mongodb/mongodb-3.6.1-r1.ebuild
index 363620ef0504ddb9effc3e1a04ee7e14ce557079..8291fe7fc50d43762e9d3210b79a6921b73e25e9 100644 (file)
@@ -52,6 +52,7 @@ PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
 
 PATCHES=(
        "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch"
+       "${FILESDIR}/${PN}-3.6.1-fix-scons.patch"
        "${FILESDIR}/${PN}-3.6.1-no-compass.patch"
 )