Bug 168563 - Versioned self-obsoletes do not work
Summary: Versioned self-obsoletes do not work
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-17 10:09 UTC by Ville Skyttä
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-09-22 18:19:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
test-1.0 (obsoletes test = 1.1) (262 bytes, text/plain)
2005-09-17 10:09 UTC, Ville Skyttä
no flags Details
test-1.1 (235 bytes, text/plain)
2005-09-17 10:10 UTC, Ville Skyttä
no flags Details

Description Ville Skyttä 2005-09-17 10:09:33 UTC
Using versioned self-obsoletes would be a convenient way to avoid Epoch bumps 
in a lot of cases.  However, they don't work (tested on FC-4, I don't have a 
more recent system to test with).  Reproducer specfiles attached. 
 
# rpm -qp --provides test-1.0-1.i386.rpm 
test = 1.0-1 
# rpm -qp --provides test-1.1-1.i386.rpm 
test = 1.1-1 
# rpm -qp --obsoletes test-1.0-1.i386.rpm 
test = 1.1 
# rpm -qp --obsoletes test-1.1-1.i386.rpm 
(none) 
# rpm -i test-1.0-1.i386.rpm 
# rpm -U test-1.1-1.i386.rpm 
# rpm -q test 
test-1.1-1 
# rpm -U test-1.0-1.i386.rpm 
        package test-1.1-1 (which is newer than test-1.0-1) is already 
 
I would expect 1.1 not to be treated as an upgrade over 1.0, but yes the other 
way around.

Comment 1 Ville Skyttä 2005-09-17 10:09:33 UTC
Created attachment 118929 [details]
test-1.0 (obsoletes test = 1.1)

Comment 2 Ville Skyttä 2005-09-17 10:10:14 UTC
Created attachment 118930 [details]
test-1.1

Comment 3 Jeff Johnson 2005-09-22 18:19:36 UTC
Versioned: self-obsoletes is bad craziness. You really expect a package monkey to figure out how to use 
an overloaded Obsoletes: functionality in sensible and general ways?

Comment 4 Ville Skyttä 2005-09-22 18:46:00 UTC
What "overloaded Obsoletes"?  Consistent behaviour is easy to understand. 


Note You need to log in before you can comment on or make changes to this bug.