Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562406 - sci-electronics/ghdl-0.29 incorrectly installs /usr/lib32/libiberty.a
Summary: sci-electronics/ghdl-0.29 incorrectly installs /usr/lib32/libiberty.a
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 12:51 UTC by email200202
Modified: 2017-07-14 10:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2015-10-06 12:51:39 UTC
There is file collision /usr/lib32/libiberty.a between the new sys-libs/binutils-libs-2.25.1-r1 and sci-electronics/ghdl-0.29. It prevents the installation of ghdl. 

>>> Failed to install sci-electronics/ghdl-0.29, Log file: 

>>>  '/var/tmp/portage/sci-electronics/ghdl-0.29/temp/build.log' 

 * Messages for package sci-electronics/ghdl-0.29: 

 * 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). See 
 * http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to 
 * solve the problem. And once again, please do NOT file a bug report 
 * unless you have completely understood the above message. 
 * 
 * Detected file collision(s): 
 * 
 *      /usr/lib32/libiberty.a 
 * 
 * Searching all installed packages for file collisions... 
 * 
 * Press Ctrl-C to Stop 
 * 
 * sys-libs/binutils-libs-2.25.1-r1:0::gentoo 
 *      /usr/lib32/libiberty.a 
 * 
 * Package 'sci-electronics/ghdl-0.29' NOT merged due to file collisions.
Comment 1 SpanKY gentoo-dev 2015-10-09 15:16:38 UTC
ghdl is broken.  toolchain packages own libiberty.a.
Comment 2 Marco Genasci 2016-12-16 10:01:20 UTC
I think the problem is in src_install. The solution is change from

rm "${D}"/usr/$(get_libdir)/lib*
cd "${D}"/usr/$(get_libdir)/gcc/${CHOST}/${GCC_VERSION} ; rm -rf `ls --ignore=vhdl*`

to 

for libdir in $(get_all_libdirs); do
        rm "${D}"/usr/${libdir}/lib*
        if [ -d "${D}/usr/${libdir}/gcc/${CHOST}/${GCC_VERSION}" ]; then
                cd "${D}"/usr/${libdir}/gcc/${CHOST}/${GCC_VERSION} ;rm -rf `ls --ignore=vhdl*`
        fi
done

I've added these changes to proposal of ghdl-0.33 ebuild (https://bugs.gentoo.org/show_bug.cgi?id=547356)
Comment 3 Pacho Ramos gentoo-dev 2017-07-14 10:56:48 UTC
removed