Bug 5216

Summary: urpmi --replacepkgs foo.rpm fails with conflicts
Product: Mageia Reporter: Barry Jackson <zen25000>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: mageia, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: MGA2TOO
Source RPM: urpmi-6.48-1.mga2 CVE:
Status comment:

Description Barry Jackson 2012-04-03 23:52:25 CEST
When re-installing a package from a local .rpm using 
urpmi --replacepkgs foo.rpm
the install fails with conflicts reported for all files.

Here is an example executed from the cauldroniurt directory containing the rpm :-
[root@jackodesktop x86_64]# urpmi --replacepkgs zoneminder-1.25.0-8.mga2.x86_64.rpm


installing zoneminder-1.25.0-8.mga2.x86_64.rpm
Preparing...                     ############################################################################
Installation failed:    file /etc/zm.conf from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/bin/zma from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/bin/zmc from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/bin/zmf from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/bin/zmfix from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/bin/zmstreamer from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/bin/zmu from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/bin/zmupdate.pl from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/lib/perl5/vendor_perl/5.14.2/ZoneMinder/General.pm from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/lib/perl5/vendor_perl/5.14.2/ZoneMinder/Memory.pm from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/share/doc/zoneminder/README.Mageia from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /usr/share/zoneminder/db/Makefile from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/cgi-bin/nph-zms from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/cgi-bin/zms from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/classic/views/event.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/mobile/views/event.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/cambozola.jar from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/classic/views/events.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/classic/views/frame.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/mobile/views/frame.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/classic/views/frames.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/classic/views/stats.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/classic/views/video.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/mobile/views/video.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
        file /var/www/html/zm/skins/mobile/views/eventdetails.php from install of zoneminder-1.25.0-8.mga2.x86_64 conflicts with file from package zoneminder-1.25.0-8.mga2.x86_64
Manuel Hiebel 2012-04-04 00:32:33 CEST

Assignee: bugsquad => thierry.vignaud

Comment 1 Thierry Vignaud 2012-04-04 11:47:54 CEST
works for me
Comment 2 Thierry Vignaud 2012-04-23 11:59:19 CEST
I need a working testcase

Keywords: (none) => NEEDINFO

Comment 3 Barry Jackson 2012-04-23 15:36:26 CEST
(In reply to comment #2)
> I need a working testcase

OK try this:-
mgarepo co cutecw
cd cutecw
bm -l
cd SRPMS/x86_64/
su
urpmi --replacepkgs cutecw-1.0-1.mga2.x86_64.rpm

installing cutecw-1.0-1.mga2.x86_64.rpm
Preparing...                     ############################################################################
Installation failed:    file /usr/bin/cutecw from install of cutecw-1.0-1.mga2.x86_64 conflicts with file from package cutecw-1.0-1.mga2.x86_64
        file /usr/share/applications/cutecw.desktop from install of cutecw-1.0-1.mga2.x86_64 conflicts with file from package cutecw-1.0-1.mga2.x86_64
Comment 4 Barry Jackson 2012-04-23 15:38:42 CEST
(In reply to comment #3)
> (In reply to comment #2)
> > I need a working testcase
> 
> OK try this:-
> mgarepo co cutecw
> cd cutecw
> bm -l
> cd SRPMS/x86_64/
> su
> urpmi --replacepkgs cutecw-1.0-1.mga2.x86_64.rpm
> 
> installing cutecw-1.0-1.mga2.x86_64.rpm
> Preparing...                    
> ############################################################################
> Installation failed:    file /usr/bin/cutecw from install of
> cutecw-1.0-1.mga2.x86_64 conflicts with file from package
> cutecw-1.0-1.mga2.x86_64
>         file /usr/share/applications/cutecw.desktop from install of
> cutecw-1.0-1.mga2.x86_64 conflicts with file from package
> cutecw-1.0-1.mga2.x86_64

Hmm... obviously install cutecw first ;)
Comment 5 Thierry Vignaud 2012-04-23 16:30:54 CEST
You regenerated the package...

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 6 Barry Jackson 2012-04-23 21:42:07 CEST
(In reply to comment #5)
> You regenerated the package...

Yes - is that a problem?

That was the reason for using --replacepkgs  - to test the rebuild.

Status: RESOLVED => UNCONFIRMED
Resolution: INVALID => (none)
Ever confirmed: 1 => 0

Marja Van Waes 2012-05-09 15:12:25 CEST

Keywords: NEEDINFO => (none)
CC: (none) => marja11

Comment 7 Marja Van Waes 2012-05-26 13:02:31 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 8 Barry Jackson 2012-05-28 00:50:20 CEST
@marja
It is still valid, however I'm not sure I understand tv's comment.

@tv 
Are you saying that in this use case it is expected to fail?
Sander Lepik 2012-05-28 09:53:33 CEST

Keywords: NEEDINFO => (none)
CC: (none) => sander.lepik

Marja Van Waes 2012-05-28 10:07:54 CEST

Whiteboard: (none) => MGA2TOO

Comment 9 Thierry Vignaud 2012-05-29 12:14:08 CEST
This bug is invalid.
--replacepkgs won't work if the package has been changed w/o bumping the release

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => INVALID

Comment 10 Thierry Vignaud 2012-06-01 11:49:33 CEST
BTW in your case, adding --replacefiles should do it
Comment 11 Barry Jackson 2012-06-04 12:21:14 CEST
(In reply to comment #10)
> BTW in your case, adding --replacefiles should do it

Ah great - good to know - thanks.