Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375353 - dev-db/mongodb-1.8.2 fails to configure with linux-3.0.x
Summary: dev-db/mongodb-1.8.2 fails to configure with linux-3.0.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-16 11:36 UTC by Priit Laes (IRC: plaes)
Modified: 2011-07-29 15:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
https://github.com/mongodb/mongo/commit/b1ec2058673f8ca582a490c2dd4a8405698221ae.patch (mongodb-linux3.patch,1.55 KB, patch)
2011-07-29 11:18 UTC, SchAmane
Details | Diff
dev-db/mongodb-1.8.2-r1.ebuild (mongodb-1.8.2-r1.ebuild,1.97 KB, text/plain)
2011-07-29 11:19 UTC, SchAmane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2011-07-16 11:36:52 UTC
[snip]
>>> Compiling source in /home/tmp/portage/dev-db/mongodb-1.8.2/work/mongodb-src-r1.8.2 ...
scons -j3 --cxx=x86_64-pc-linux-gnu-g++ --sharedclient --usev8 all
scons: Reading SConscript files ...
scons version: 2.0.1
python version: 2 7 2 'final' 0
No special config for [linux3] which probably means it won't work
KeyError: 'LIBS':
  File "/home/tmp/portage/dev-db/mongodb-1.8.2/work/mongodb-src-r1.8.2/SConstruct", line 1011:
    env = doConfigure( env )
  File "/home/tmp/portage/dev-db/mongodb-1.8.2/work/mongodb-src-r1.8.2/SConstruct", line 789:
    myenv["LIBS_CLEAN"] = list( myenv["LIBS"] )
  File "/usr/lib/scons-2.0.1/SCons/Environment.py", line 409:
    return self._dict[key]
[/snip]

Required fix:
[snip]
--- SConstruct.old	2011-07-16 14:27:27.000000000 +0300
+++ SConstruct	2011-07-16 14:26:38.000000000 +0300
@@ -463,7 +463,7 @@
         env.Append( CPPPATH=filterExists(["/sw/include" , "/opt/local/include"]) )
         env.Append( LIBPATH=filterExists(["/sw/lib/", "/opt/local/lib"]) )
 
-elif 'linux2' == os.sys.platform:
+elif os.sys.platform in ('linux2', 'linux3'):
     linux = True
     platform = "linux"
[/snip]
Comment 1 Priit Laes (IRC: plaes) 2011-07-19 09:55:38 UTC
Also warning is issued when running mongodb init script:
* WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead
Comment 2 Johan Bergström 2011-07-21 14:08:27 UTC
Upstream bug created here: https://jira.mongodb.org/browse/SERVER-3457
Comment 3 Johan Bergström 2011-07-29 05:58:31 UTC
Fixed with this commit: https://github.com/mongodb/mongo/commit/b1ec2058673f8ca582a490c2dd4a8405698221ae
Comment 4 SchAmane 2011-07-29 11:18:45 UTC
Created attachment 281437 [details, diff]
https://github.com/mongodb/mongo/commit/b1ec2058673f8ca582a490c2dd4a8405698221ae.patch

patch from current master github branch for build on linux3
Comment 5 SchAmane 2011-07-29 11:19:26 UTC
Created attachment 281439 [details]
dev-db/mongodb-1.8.2-r1.ebuild

Updated ebuild.
Comment 6 SchAmane 2011-07-29 11:20:16 UTC
Save patch file as mongodb-linux3.patch in to the files folder.
Comment 7 Ultrabug gentoo-dev 2011-07-29 15:37:42 UTC
Hello guys, many thanks to all for the teamwork on this !

After testing, I've pushed this to tree.

+*mongodb-1.8.2-r1 (29 Jul 2011)
+
+  29 Jul 2011; Ultrabug <ultrabug@gentoo.org> +files/mongodb-linux3.patch,
+  +mongodb-1.8.2-r1.ebuild:
+  Fix linux-3 kernel compilation. Fix #375353. Thanks to Priit Laes, Johan
+  Bergström and SchAmane

@plaes, for the init.d problem, please open a new bug since this matter is not related to the main problem which is now solved here.