Tries to overwrite files from anyevent-perl without Replacing it

Bug #572151 reported by Jonathan Polirer
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libanyevent-perl (Ubuntu)
Invalid
Medium
Unassigned
Lucid
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: initramfs-tools

$ lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04

$ apt-cache policy libanyevent-perl
libanyevent-perl:
  Installed: (none)
  Candidate: 5.240-1
  Version table:
     5.240-1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/universe Packages

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: libanyevent-perl (not installed)
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
Date: Thu Apr 29 19:57:57 2010
ErrorMessage: trying to overwrite '/usr/share/man/man3/AnyEvent.3pm.gz', which is also in package anyevent-perl 0:1.02-0.2
SourcePackage: initramfs-tools
Title: package libanyevent-perl (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man3/AnyEvent.3pm.gz', which is also in package anyevent-perl 0:1.02-0.2

TEST CASE:
1. Add karmic to /etc/apt/sources.list.
2. Make sure libanyevent-perl is not installed.
3. Install anyevent-perl (from karmic, not available in lucid).
4. Install libanyevent-perl.

With 5.240-1 installation will fail (trying to overwrite files from
anyevent-perl). With the patch applied, dpkg should remove
anyevent-perl in favor of libanyevent-perl.

Revision history for this message
Jonathan Polirer (jonathanp-gmail) wrote :
Michael Vogt (mvo)
affects: initramfs-tools (Ubuntu) → libanyevent-perl (Ubuntu)
Revision history for this message
Ansgar Burchardt (aburch) wrote : Re: [Pkg-perl-maintainers] [Bug 572151] [NEW] package libanyevent-perl (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man3/AnyEvent.3pm.gz', which is also in package anyevent-perl 0:1.02-0.2

libanyevent-perl in Lucid should Conflict, Replace and Provide
anyevent-perl (which has been removed).

Even if libanyevent-perl in maverick does not do so in order to not
deviate from Debian, this should catch most people upgrading from
Karmic. The edge-case is people having anyevent-perl installed in
Karmic, upgrading to Lucid without installing libanyevent-perl and then
upgrading the Maverick.

A (untested) patch to add Conflicts, Replaces and Provides to d/control
is attached.

Regards,
Ansgar

 tag patch

Revision history for this message
Ansgar Burchardt (aburch) wrote : Re: [Pkg-perl-maintainers] [Bug 572151] [NEW] package libanyevent-perl (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man3/AnyEvent.3pm.gz', which is also in package anyevent-perl 0:1.02-0.2

> libanyevent-perl in Lucid should Conflict, Replace and Provide
> anyevent-perl (which has been removed).

It seems the correct version number would be 5.240-1ubuntu0.1. Updated
patch is attached.

TEST CASE:
1. Add karmic to /etc/apt/sources.list.
2. Make sure libanyevent-perl is not installed.
3. Install anyevent-perl (from karmic, not available in lucid).
4. Install libanyevent-perl.

With 5.240-1 installation will fail (trying to overwrite files from
anyevent-perl). With the patch applied, dpkg should remove
anyevent-perl in favor of libanyevent-perl.

Regards,
Ansgar

 summary "Tries to overwrite files from anyevent-perl without Replacing it"
 status inprogress
 importance medium
 assignee ansgar-43-1

summary: - package libanyevent-perl (not installed) failed to install/upgrade:
- trying to overwrite '/usr/share/man/man3/AnyEvent.3pm.gz', which is also
- in package anyevent-perl 0:1.02-0.2
+ Tries to overwrite files from anyevent-perl without Replacing it
Changed in libanyevent-perl (Ubuntu):
assignee: nobody → Ansgar Burchardt (ansgar-43-1)
importance: Undecided → Medium
status: New → In Progress
Changed in libanyevent-perl (Ubuntu):
assignee: Ansgar Burchardt (ansgar-43-1) → nobody
status: In Progress → Triaged
milestone: none → lucid-updates
milestone: lucid-updates → none
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Thanks for working on that!

Before uploading to -proposed, I ran update-maintainer to update the maintainer field. Please remember to do so next time ;-)
I also deleted the Provides clause in debian/control as the only dependency of anyevent-perl has been updated and libanyevent-perl will be always installed in a normal installation. No need to declare anyevent-perl as virtual package.

Waiting for ubuntu-sru team member to approve the upload.

Thanks again!

Fabrice

description: updated
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted libanyevent-perl into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in libanyevent-perl (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Steve Beattie (sbeattie) wrote :

I have reproduced the upgrade issue with the version of libanyevent-perl in lucid, 5.240-1, and can confirm that the version in lucid-proposed, 5.240-1ubuntu0.1, is installable when the package anyevent-perl from karmic is already installed. I tried to test out the benchmarking scripts included in the package's examples/ directory, but the import paths were not set up to work correctly out of the box.
It would be ideal if someone who makes use of the libanyevent-perl package could confirm that the version in proposed does not introduce any regressions. Thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

This is an upgrade-only problem, invalidating maverick task.

tags: added: verification-done
removed: verification-needed
Changed in libanyevent-perl (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libanyevent-perl - 5.240-1ubuntu0.1

---------------
libanyevent-perl (5.240-1ubuntu0.1) lucid-proposed; urgency=low

  * debian/control: Replace and Conflict on anyevent-perl to avoid an error when
    upgrading from previous versions. (LP: #572151)
 -- Ansgar Burchardt <ansgar@43-1.org> Sat, 01 May 2010 15:44:06 +0900

Changed in libanyevent-perl (Ubuntu Lucid):
status: Fix Committed → Fix Released
tags: added: testcase
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.