If I try to emerge dev-lang/gdl, I get: >>> Installing dev-lang/gdl-0.9_rc1 * 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. * * package dev-lang/gdl-0.9_rc1 NOT merged * * Detected file collision(s): * * /usr/lib/libantlr.a * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * dev-java/antlr-2.7.7 * /usr/lib/libantlr.a * * Package 'dev-lang/gdl-0.9_rc1' NOT merged due to file collisions. If * necessary, refer to your elog messages for the whole content of the * above message. >>> Failed to install dev-lang/gdl-0.9_rc1, Log file: >>> '/tmp/portage/dev-lang/gdl-0.9_rc1/temp/build.log' Does this mean that dev-lang/gdl is trying to install a bundled copy of libantlr rather than simply using that provided by dev-java/antlr? Reproducible: Always Steps to Reproduce: 1. emerge dev-java/antlr dev-lang/gdl Actual Results: Error as described above Expected Results: Successful emerge
Created attachment 189626 [details] emerge --info output
I think gdl should not install this file.
Created attachment 192540 [details, diff] use system antlr patch from Fedora There is a patch in Fedora to fix this (ie. make gdl use system antlr). It applies to gdl-0.9_rc2. Bumping the ebuild and adding the fedora antlr patch (and removing the gcc-4.3 patch) works for me here on amd64, gcc-4.3.3. You also have to rename other patches in files/ directory to _rc2
Created attachment 192541 [details] updated ebuild
(In reply to comment #4) > Created an attachment (id=192541) [edit] > updated ebuild > Please add antlr dependency (possibly with cxx USE flag) Thanks.
'emerge dev-lang/gdl' still fails for with this patch: ... x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -DPJ_LIB__ -march=nocona -O3 -pipe -fomit-frame-pointer -MT libantlr_a-CharBuffer.o -MD -MP -MF .deps/libantlr_a-CharBuffer.Tpo -c -o libantlr_a-CharBuffer.o `test -f 'CharBuffer.cpp' || echo './'`CharBuffer.cpp mv -f .deps/libantlr_a-CharBuffer.Tpo .deps/libantlr_a-CharBuffer.Po x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -DPJ_LIB__ -march=nocona -O3 -pipe -fomit-frame-pointer -MT libantlr_a-CharScanner.o -MD -MP -MF .deps/libantlr_a-CharScanner.Tpo -c -o libantlr_a-CharScanner.o `test -f 'CharScanner.cpp' || echo './'`CharScanner.cpp In file included from CharScanner.cpp:10: ../../src/antlr/CharScanner.hpp:452: error: 'EOF' was not declared in this scope mv -f .deps/libantlr_a-BitSet.Tpo .deps/libantlr_a-BitSet.Po make[3]: *** [libantlr_a-CharScanner.o] Error 1
I'll have a look since I am in the process of bumping gdl anyways. Thanks, Markus
I've just committed a gdl-0.9_rc2 ebuild to portage cvs which links against system antlr removing the package collision. Thanks for all the help. Best, Markus