Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358405 - g-cpan fails to install Dancer
Summary: g-cpan fails to install Dancer
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-11 14:52 UTC by Sven B
Modified: 2011-03-25 09:45 UTC (History)
0 users

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 Sven B 2011-03-11 14:52:40 UTC
g-cpan fails to install all needed dependencies for Dancer. 
It fails at perl-gcpan/HTTP-Date due to fail collisions with dev-perl/libwww-per

Reproducible: Always

Steps to Reproduce:
1. emerge genlop g-cpan
2. g-cpan -i Dancer

Actual Results:  
 * Messages for package perl-gcpan/HTTP-Date-6.00:

 * 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/perl5/vendor_perl/5.12.2/HTTP/Date.pm
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-perl/libwww-perl-5.836
 * 	/usr/lib/perl5/vendor_perl/5.12.2/HTTP/Date.pm
 * 
 * Package 'perl-gcpan/HTTP-Date-6.00' NOT merged due to file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.


Expected Results:  
Installing Dancer
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-03-14 17:05:09 UTC
I'm guessing this is a result of dev-perl/HTTP-Date-6.00 already existing, but being p-masked.  

HTTP-Date-6.00 conflicts only with versions of libwww-perl lower than 6.00, because HTTP-Date used to be part of libwww-perl, and I do not beleive there is any way for gcpan to be made aware of this fact.

If you had tried to build dancer before the lwp6 split occurred, it would have had no problem, but now the split has occurred, you are, I believe, temporarily up a proverbial creek without a paddle.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-03-14 21:35:34 UTC
Its also much easier to solve than it looks. What g-cpan appears to be doing is trying to create its own copies of libwww-perl, and only through that vector does it think it also needs to install HTTP::Date. 

I've just thrown together ( manually ) an ebuild for Dancer which should be on the Git overlay A.S.A.P. =)

Hopefully this serves as a good temporary solution.

http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=569e9db32b922f8efee4825048992be215eab46b
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2011-03-25 09:45:07 UTC
Well, it's a shortcoming of the information available via CPAN:
g-cpan doesn't know that HTML::Date is also provided by libwww-perl-5*

We can't work at the same time as CPAN. So it might break from time to time.

Anyway it should be fixed now as libwww-perl-6 is unmasked, or try the ebuild from the overlay and help improving it.

Thanks