Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 471784

Summary: dev-db/mongodb-2.4.3 installs a /usr/lib file
Product: Gentoo Linux Reporter: arsenicum <mucinesra>
Component: [OLD] ServerAssignee: Ultrabug <ultrabug>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Log from build dirrectory
build.log.gz

Description arsenicum 2013-05-30 08:44:56 UTC
The package compiled successfuly but the emerge have failed then trying to merge with following message:

 * Detected file collision(s):
 * 
 *      /usr/lib
 * 
 * Searching all installed packages for file collisions...

As I can see in temporary image directory - there is a file /var/tmp/portage/dev-db/mongodb-2.4.3/image/usr/lib not adirectory(!). In the build.log I have found the reason:

Install file: "build/linux2/cc_i686-pc-linux-gnu-gcc/cxx_i686-pc-linux-gnu-g++/ssl/use-system-boost/use-system-pcre/use-system-snappy/use-system-tcmalloc/use-system-v8/client_build/libmongoclient.a" as "/var/tmp/portage/dev-db/mongodb-2.4.3/image/usr/lib

Reproducible: Always

Steps to Reproduce:
$ emerge =dev-db/mongodb-2.4.3

Actual Results:  
Here is part of build.log:

 * checking 750 files for package collisions
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/lib
 * 
 * Searching all installed packages for file collisions...



Same thing with 2.4.2, but 2.2.4 is ok.
Comment 1 arsenicum 2013-05-30 08:45:54 UTC
Created attachment 349626 [details]
emerge --info
Comment 2 arsenicum 2013-05-30 08:47:17 UTC
Created attachment 349628 [details]
Log from build dirrectory
Comment 3 arsenicum 2013-05-30 08:48:15 UTC
Created attachment 349630 [details]
build.log.gz
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-30 14:01:05 UTC
Install file: "build/linux2/cc_i686-pc-linux-gnu-gcc/cxx_i686-pc-linux-gnu-g++/ssl/use-system-boost/use-system-pcre/use-system-snapp
y/use-system-tcmalloc/use-system-v8/client_build/libmongoclient.a" as "/var/tmp/portage/dev-db/mongodb-2.4.3/image/usr/lib
Comment 5 Ultrabug gentoo-dev 2013-06-05 10:00:17 UTC
Thanks arsenicum, the ebuild was indeed wrongly forcing the usage of installAs() for x86 systems. After testing without this bit on a x86 box it worked as intended for me. Should be fixed now.

+*mongodb-2.4.4 (05 Jun 2013)
+
+  05 Jun 2013; Ultrabug <ultrabug@gentoo.org> -mongodb-2.4.2.ebuild,
+  -mongodb-2.4.3.ebuild, +mongodb-2.4.4.ebuild,
+  +files/mongodb-2.4.4-fix-sharedclient.patch,
+  -files/mongodb-2.4-fix-sharedclient.patch:
+  Version bump, drop old, fix #471784
+