Summary: | dev-db/mongodb-1.8.2 fails to configure with linux-3.0.x | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Priit Laes (IRC: plaes) <plaes> |
Component: | Current packages | Assignee: | Lance Albertson (RETIRED) <ramereth> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ultrabug |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
https://github.com/mongodb/mongo/commit/b1ec2058673f8ca582a490c2dd4a8405698221ae.patch
dev-db/mongodb-1.8.2-r1.ebuild |
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 Upstream bug created here: https://jira.mongodb.org/browse/SERVER-3457 Fixed with this commit: https://github.com/mongodb/mongo/commit/b1ec2058673f8ca582a490c2dd4a8405698221ae Created attachment 281437 [details, diff] https://github.com/mongodb/mongo/commit/b1ec2058673f8ca582a490c2dd4a8405698221ae.patch patch from current master github branch for build on linux3 Created attachment 281439 [details]
dev-db/mongodb-1.8.2-r1.ebuild
Updated ebuild.
Save patch file as mongodb-linux3.patch in to the files folder. 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. |
[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]