Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 29259
Status: stalled
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: jeremiah [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: cpan-libcpanplus-perl generates a dpkg error
Date: Sun, 9 Sep 2007 17:52:27 +0200
To: bug-cpanplus [...] rt.cpan.org
From: Jeremiah Foster <jeremiah [...] jeremiahfoster.com>
Hello, dpkg will not overwrite files if they are from two different packages. In this case, dpkg gets asked to overwrite a file called MANIFEST.SKIP which was already installed by cpan-libextutils- manifest-perl. I think the best thing to do is not to try to overwrite that file, if that file is found, just go to the next action since that file is most likely going to be the same from the other package anyway. Unpacking cpan-libextutils-makemaker-perl (from .../cpan-libextutils- makemaker-perl_6.32-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/cpan-libextutils- makemaker-perl_6.32-1_all.deb (--unpack): trying to overwrite `/usr/local/share/perl/5.8.8/ExtUtils/ MANIFEST.SKIP', which is also in package cpan-libextutils-manifest-perl dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/cpan-libextutils-makemaker-perl_6.32-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Subject: Re: [rt.cpan.org #29259] cpan-libcpanplus-perl generates a dpkg error
Date: Sun, 9 Sep 2007 18:54:03 +0200
To: bug-CPANPLUS [...] rt.cpan.org
From: "Jos I. Boumans" <kane [...] cpan.org>
On Sep 9, 2007, at 5:52 PM, jeremiah foster via RT wrote: Show quoted text
> dpkg will not overwrite files if they are from two different > packages. In this case, dpkg gets asked to overwrite a file called > MANIFEST.SKIP which was already installed by cpan-libextutils- > manifest-perl.
This is a known issue: http://rt.cpan.org/Ticket/Display.html?id=21318 And it's an issue with EU::MM and EU::* providing the same files, which unfortunately CPANPLUS can't know about... Show quoted text
> I think the best thing to do is not to try to overwrite that file, if > that file is found, just go to the next action since that file is > most likely going to be the same from the other package anyway.
Is there some way we can programatically tell that to the dpkg tools? We control the creation of the files, but not the installation... Any tips would be greatly appreciated... Show quoted text
> Unpacking cpan-libextutils-makemaker-perl (from .../cpan-libextutils- > makemaker-perl_6.32-1_all.deb) ... > dpkg: error processing /var/cache/apt/archives/cpan-libextutils- > makemaker-perl_6.32-1_all.deb (--unpack): > trying to overwrite `/usr/local/share/perl/5.8.8/ExtUtils/ > MANIFEST.SKIP', which is also in package cpan-libextutils-manifest- > perl > dpkg-deb: subprocess paste killed by signal (Broken pipe) > Errors were encountered while processing: > /var/cache/apt/archives/cpan-libextutils-makemaker- > perl_6.32-1_all.deb > E: Sub-process /usr/bin/dpkg returned an error code (1)
Cheers, -- Jos Boumans "We are not far from the kind of moral decay that has brought on the fall of other nations and peoples" - Senator Barry Goldwater, 1964 CPANPLUS http://cpanplus.sf.net
Subject: Re: [rt.cpan.org #29259] cpan-libcpanplus-perl generates a dpkg error
Date: Sun, 9 Sep 2007 19:55:45 +0200
To: bug-CPANPLUS [...] rt.cpan.org
From: Jeremiah Foster <jeremiah [...] jeremiahfoster.com>
On Sep 9, 2007, at 6:54 PM, via RT wrote: Show quoted text
> > This is a known issue: > > http://rt.cpan.org/Ticket/Display.html?id=21318 > > And it's an issue with EU::MM and EU::* providing the same files, > which unfortunately CPANPLUS can't know about... >
>> I think the best thing to do is not to try to overwrite that file, if >> that file is found, just go to the next action since that file is >> most likely going to be the same from the other package anyway.
> > Is there some way we can programatically tell that to the dpkg > tools? We control the creation of the files, but not the > installation... > > Any tips would be greatly appreciated...
In debian, lintian (the policy violation tool) detects this issue and provides for a solution. The solution is to add this line to the debian/rules file: # remove .packlist files inserted by MakeMaker find . -type f -name .packlist | xargs -r rm -f This line goes under the install: section of the rules file. Does CPANPLUS touch the rules file when creating a deb? If so, adding this line will silence the dpkg issue and the lintian error. Jeremiah
Subject: Re: [rt.cpan.org #29259] cpan-libcpanplus-perl generates a dpkg error
Date: Mon, 10 Sep 2007 11:48:19 +0200
To: bug-CPANPLUS [...] rt.cpan.org
From: "Jos I. Boumans" <kane [...] xs4all.nl>
On 09 Sep 2007, at 19:56, jeremiah foster via RT wrote: Show quoted text
> In debian, lintian (the policy violation tool) detects this issue and > provides for a solution. The solution is to add this line to the > debian/rules file: > > # remove .packlist files inserted by MakeMaker > find . -type f -name .packlist | xargs -r rm -f > > This line goes under the install: section of the rules file. > > Does CPANPLUS touch the rules file when creating a deb? If so, adding > this line will silence the dpkg issue and the lintian error.
Yes, we create the rules file actually.. take a look here: http://search.cpan.org/src/KANE/CPANPLUS-Dist-Deb-0.08/lib/ CPANPLUS/Dist/Deb/Constants.pm and scroll all the way to the bottom -- you'll see 4 different constants for the 4 different combinations of intallers we may encounter (EU::MM/XS and no XS, M::B/XS and no XS). The lines you describe are already there.. however, in the case you are reporting, the problem is boht packages providing MANIFEST.SKIP as a file... and there's no way for us to know that there are any 2 packages on CPAN that may both provide an arbitrary file. If there's a *generic* way in debian to say 'never complain if this package overwrites someone elses file', or 'do not override someone elses file, just silently ignore it', that'd be a good solution... Let me know, -- Jos I. Boumans RIPE Network Coordination Center Database Group Manager Singel 258 Amsterdam NL http://www.ripe.net +31 20 535 4444
From: jeremiah [...] cpan.org
On Mon Sep 10 05:49:01 2007, kane@xs4all.nl wrote: Show quoted text
> > On 09 Sep 2007, at 19:56, jeremiah foster via RT wrote: >
> > In debian, lintian (the policy violation tool) detects this issue and > > provides for a solution. The solution is to add this line to the > > debian/rules file: > > > > # remove .packlist files inserted by MakeMaker > > find . -type f -name .packlist | xargs -r rm -f > >
There was a discussion[0] of this issue on use Perl. Smyler suggested using dpkg-divert which overides different file version and may get rid of this bug completely. My next step is to try to build cpanplus from a deb with dpkg-divert. This bug is still open and I am still working on it. Jeremiah [0] http://use.perl.org/comments.pl? sid=37084&op=Reply&threshold=0&commentsort=0&mode=thread&pid=58040
Subject: Re: [rt.cpan.org #29259] cpan-libcpanplus-perl generates a dpkg error
Date: Mon, 1 Oct 2007 11:31:33 +0200
To: bug-CPANPLUS [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On 27 Sep 2007, at 12:10, Jeremiah Foster via RT wrote: Show quoted text
> There was a discussion[0] of this issue on use Perl. Smyler > suggested using dpkg-divert > which overides different file version and may get rid of this bug > completely. My next step is > to try to build cpanplus from a deb with dpkg-divert. > > This bug is still open and I am still working on it. > > Jeremiah > > [0] http://use.perl.org/comments.pl? > sid=37084&op=Reply&threshold=0&commentsort=0&mode=thread&pid=58040
Great, thanks for the heads up -- I'm really interested in seeing this fixed :) Cheers, Jos