public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-db/mongodb/files: mongodb-2.0.3-fix-scons.patch
@ 2012-02-29 11:31 Alexys Jacob (ultrabug)
  0 siblings, 0 replies; 2+ messages in thread
From: Alexys Jacob (ultrabug) @ 2012-02-29 11:31 UTC (permalink / raw
  To: gentoo-commits

ultrabug    12/02/29 11:31:11

  Added:                mongodb-2.0.3-fix-scons.patch
  Log:
  version bump, drop old
  
  (Portage version: 2.1.10.49/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-db/mongodb/files/mongodb-2.0.3-fix-scons.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mongodb/files/mongodb-2.0.3-fix-scons.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mongodb/files/mongodb-2.0.3-fix-scons.patch?rev=1.1&content-type=text/plain

Index: mongodb-2.0.3-fix-scons.patch
===================================================================
--- a/SConstruct	2012-02-27 01:44:09.000000000 +0100
+++ b/SConstruct	2012-02-29 12:19:27.806016101 +0100
@@ -700,7 +700,7 @@
         env["CXX"] = "distcc " + env["CXX"]
         
     # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used. 
-    env.Append( CPPFLAGS="-fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch" )
+    env.Append( CPPFLAGS="-fPIC -fno-strict-aliasing -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch" )
     # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
     if linux:
         env.Append( CPPFLAGS=" -Werror " )
@@ -708,7 +708,9 @@
             env.Append( CPPFLAGS=" -fno-builtin-memcmp " ) # glibc's memcmp is faster than gcc's
 
     env.Append( CPPDEFINES="_FILE_OFFSET_BITS=64" )
+    env.Append( CXXFLAGS=os.environ['CXXFLAGS'])
     env.Append( CXXFLAGS=" -Wnon-virtual-dtor " )
+    env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
     env.Append( LINKFLAGS=" -fPIC -pthread -rdynamic" )
     env.Append( LIBS=[] )
 
@@ -718,12 +720,13 @@
 
     if linux and has_option( "sharedclient" ):
         env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )
+        env.Append( SHLINKFLAGS=" -Wl,-soname=libmongoclient.so " )
 
     if debugBuild:
         env.Append( CPPFLAGS=" -O0 -fstack-protector " );
         env['ENV']['GLIBCXX_FORCE_NEW'] = 1; # play nice with valgrind
     else:
-        env.Append( CPPFLAGS=" -O3 " )
+        env.Append( CXXFLAGS=" -O3 " )
         #env.Append( CPPFLAGS=" -fprofile-generate" )
         #env.Append( LINKFLAGS=" -fprofile-generate" )
         # then:
@@ -827,14 +830,16 @@
     binaries = ['python2.5', 'python2.6', 'python2.7', 'python25', 'python26', 'python27', 'python']
     for binary in binaries:
         try:
-            # py-2.4 compatible replacement for shell backticks
-            out, err = subprocess.Popen([binary, '-V'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
-            for stream in (out, err):
-                match = version.search(stream)
-                if match:
-                    versiontuple = tuple(map(int, match.group(1).split('.')))
-                    if versiontuple >= (2, 5):
-                        return binary
+            for path in smokeEnv['ENV']['PATH'].split(':'):
+                if os.path.isfile( '%s/%s' % (path, binary) ):
+                    # py-2.4 compatible replacement for shell backticks
+                    out, err = subprocess.Popen([binary, '-V'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+                    for stream in (out, err):
+                        match = version.search(stream)
+                        if match:
+                            versiontuple = tuple(map(int, match.group(1).split('.')))
+                            if versiontuple >= (2, 5):
+                                return binary
         except:
             pass
     # if that all fails, fall back to "python"






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-db/mongodb/files: mongodb-2.0.3-fix-scons.patch
@ 2012-05-11  8:13 Alexys Jacob (ultrabug)
  0 siblings, 0 replies; 2+ messages in thread
From: Alexys Jacob (ultrabug) @ 2012-05-11  8:13 UTC (permalink / raw
  To: gentoo-commits

ultrabug    12/05/11 08:13:57

  Removed:              mongodb-2.0.3-fix-scons.patch
  Log:
  Version bump, generic mms-agent URL, drop old.
  
  (Portage version: 2.1.10.56/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-11  8:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 11:31 [gentoo-commits] gentoo-x86 commit in dev-db/mongodb/files: mongodb-2.0.3-fix-scons.patch Alexys Jacob (ultrabug)
  -- strict thread matches above, loose matches on Subject: below --
2012-05-11  8:13 Alexys Jacob (ultrabug)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox