Bug 253621 - uppercase package name causes dependency failure
Summary: uppercase package name causes dependency failure
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-20 21:43 UTC by Adam Monsen
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-20 21:51:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
specfile for PKG-A, a package with no dependencies and a non-numeric in the release field (454 bytes, text/plain)
2007-08-20 21:43 UTC, Adam Monsen
no flags Details
pkg_b specfile, a package dependent on a specific version and release of PKG-A (505 bytes, text/plain)
2007-08-20 21:45 UTC, Adam Monsen
no flags Details

Description Adam Monsen 2007-08-20 21:43:50 UTC
Description of problem:
Having an uppercase package name causes a dependency failure when a particular
release is specified in a 'Requires:' field.

Version-Release number of selected component (if applicable):
rpm-4.4.2-46.fc7

How reproducible:
Always.

Steps to Reproduce:
1. Build PKG-A ... rpmbuild --target=noarch -bb PKG-A.spec
2. Install PKG-A RPM ... sudo rpm -ihv /path/to/PKG-A-1.0-A1.noarch.rpm
3. Build pkg_b ... rpmbuild --target=noarch -bb pkg_b.spec
4. Install pkg_b RPM ... sudo rpm -ihv /path/to/pkg_b-1.0-1.noarch.rpm
  
Actual results:
pkg_b installs

Expected results:
RPM reports
"error: Failed dependencies:
	PKG_A = 1.0-A1 is needed by pkg_b-1.0-1.noarch"

Additional info:
* pkg_b requires a specific version and release of PKG-A.

* I set %_topdir and %_tmppath in my ~/.rpmmacros to allow building RPMs by
non-root users.

* Yes, I know that (a) this is a very contrived example and that (b) the Fedora
package naming conventions advise against non-numerics in the release field
except for pre-releases and (c) requiring a particular release of a package
should generally be avoided because is places a dependency on /how/ a package is
built.

* Assuming this is an actual bug, I'm having a hard time where the bug is in the
source code.

Comment 1 Adam Monsen 2007-08-20 21:43:51 UTC
Created attachment 161923 [details]
specfile for PKG-A, a package with no dependencies and a non-numeric in the release field

Comment 2 Adam Monsen 2007-08-20 21:45:05 UTC
Created attachment 161924 [details]
pkg_b specfile, a package dependent on a specific version and release of PKG-A

Comment 3 Adam Monsen 2007-08-20 21:51:35 UTC
Correction: I obviously swapped the Expected and Actual results in the original
post, sorry.

Expected results:
pkg_b installs

Actual results:
RPM reports
"error: Failed dependencies:
	PKG_A = 1.0-A1 is needed by pkg_b-1.0-1.noarch"


Also, here's a link to the section in the package naming guidelines regarding
non-numerics in the Release field:
http://fedoraproject.org/wiki/Packaging/NamingGuidelines#NonNumericRelease


And, UGH! There was just an error in pkg_b.spec. Dang underscores. Sorry for the
whitenoise.


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