Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267671 - Collision between dev-lang/gdl-0.9_rc1 and dev-java/antlr-2.7.7: /usr/lib/libantlr.a
Summary: Collision between dev-lang/gdl-0.9_rc1 and dev-java/antlr-2.7.7: /usr/lib/lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 18:13 UTC by Zak Kipling
Modified: 2009-08-26 02:48 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge-info.txt,5.35 KB, text/plain)
2009-04-27 18:14 UTC, Zak Kipling
Details
use system antlr patch from Fedora (gdl-0.9_rc2-antlr.patch,2.91 KB, patch)
2009-05-26 20:46 UTC, Jiří Vyskočil
Details | Diff
updated ebuild (gdl-0.9_rc2.ebuild,2.12 KB, text/plain)
2009-05-26 20:46 UTC, Jiří Vyskočil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zak Kipling 2009-04-27 18:13:46 UTC
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
Comment 1 Zak Kipling 2009-04-27 18:14:54 UTC
Created attachment 189626 [details]
emerge --info output
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2009-04-27 18:41:12 UTC
I think gdl should not install this file.
Comment 3 Jiří Vyskočil 2009-05-26 20:46:27 UTC
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
Comment 4 Jiří Vyskočil 2009-05-26 20:46:48 UTC
Created attachment 192541 [details]
updated ebuild
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2009-05-26 20:51:31 UTC
(In reply to comment #4)
> Created an attachment (id=192541) [edit]
> updated ebuild
> 

Please add antlr dependency (possibly with cxx USE flag)

Thanks.
Comment 6 Juergen Rose 2009-08-25 08:46:48 UTC
'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
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2009-08-25 16:10:57 UTC
I'll have a look since I am in the process
of bumping gdl anyways.

Thanks,
Markus
Comment 8 Markus Dittrich (RETIRED) gentoo-dev 2009-08-26 02:48:23 UTC
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