Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461466 - dev-db/mongodb-2.4.2 fails multilib-strict check: Files matching a file type that is not allowed: usr/lib/libmongoclient.so
Summary: dev-db/mongodb-2.4.2 fails multilib-strict check: Files matching a file type ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 00:46 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2013-04-19 09:51 UTC (History)
3 users (show)

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


Attachments
mongodb-2.2.3-r2.ebuild (mongodb-2.2.3-r2.ebuild,3.15 KB, text/plain)
2013-03-19 10:56 UTC, Ultrabug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2013-03-12 00:46:29 UTC
dev-db/mongodb-2.2.3-r1 fails to install with FEATURES="multilib-strict". On amd64, it installs libmongoclient.so in both /usr/lib and /usr/lib64.


Files matching a file type that is not allowed:
   usr/lib/libmongoclient.so
 * ERROR: dev-db/mongodb-2.2.3-r1 failed:
 *   multilib-strict check failed!
 * 
 * Call stack:
 *   misc-functions.sh, line 1284:  Called install_qa_check
 *   misc-functions.sh, line  842:  Called die
 * The specific snippet of code:
 *              [[ ${abort} == yes ]] && die "multilib-strict check failed!"


# cd /var/tmp/portage/dev-db/mongodb-2.2.3-r1/image
# # tree usr/lib*
usr/lib
├── libmongoclient.a
└── libmongoclient.so
usr/lib64
└── libmongoclient.so

0 directories, 3 files
Comment 1 Ultrabug gentoo-dev 2013-03-19 10:56:13 UTC
Created attachment 342620 [details]
mongodb-2.2.3-r2.ebuild

@Arfrever: even if its not very elegant, this is the best I could come with in my limited time.

Would you please check that this fixes this bug and maybe give me your thoughts on this ebuild ?

Cheers
Comment 2 Ultrabug gentoo-dev 2013-03-20 17:31:34 UTC
I prefered to fix it while releasing the new version of mongodb. Reopen if you're not satisfied with this. Cheers

+*mongodb-2.4.0 (20 Mar 2013)
+
+  20 Mar 2013; Ultrabug <ultrabug@gentoo.org> +mongodb-2.4.0.ebuild,
+  metadata.xml:
+  Version bump, fix #461466 #421289, add ssl and sharedclient to IUSE
+
Comment 3 Arfrever Frehtes Taifersar Arahesis 2013-04-18 23:58:36 UTC
dev-db/mongodb-2.4.0 and dev-db/mongodb-2.4.1 work, but dev-db/mongodb-2.4.2 again has this bug.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2013-04-19 00:03:18 UTC
Hardcoded "/lib" in mongodb-2.4-fix-sharedclient.patch might be cause of this bug:

@@ -177,6 +179,8 @@ env.Install(
 prefix = GetOption("prefix")
 
 env.Install(prefix + "/lib", '${LIBPREFIX}mongoclient${LIBSUFFIX}')
+if has_option( "sharedclient" ):
+   env.Install(prefix + "/lib", '${SHLIBPREFIX}mongoclient${SHLIBSUFFIX}')
 
 for x in clientHeaderDirectories:
     inst = env.Install(prefix + "/include/mongo/" + x,
Comment 5 Ultrabug gentoo-dev 2013-04-19 07:12:17 UTC
Ah damn, I'm sick of this sharedclient, have to put my sed into play again sorry about that. Will be fixed this morning.
Comment 6 Ultrabug gentoo-dev 2013-04-19 09:51:29 UTC
done, cheers mate