Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71695 - Package name without version in package.provided breaks versioned depstrings
Summary: Package name without version in package.provided breaks versioned depstrings
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-18 13:02 UTC by Ed Catmur
Modified: 2004-11-18 15:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2004-11-18 13:02:59 UTC
A random example:

# echo "x11-libs/qt" >> /etc/portage/profile/package.provided
# emerge -pv scribus

These are the packages that I would merge, in order:

Calculating dependencies -
Invalid package name: x11-libs/qt
#

This is not a very illuminating error message.

Note that versionless items in package.provided work as expected for depstrings without version specifiers.
Comment 1 Ed Catmur 2004-11-18 13:15:50 UTC
Obviously the fix to this depends on whether a versionless package name in package.provided should be understood to satisfy depstrings with version specifiers.

The way I understand it, it should not. In that case, something like this should work:

@@ -3914,8 +3914,11 @@ def match_from_list(mydep,candidate_list

        elif operator in [">", ">=", "<", "<="]:
                for x in candidate_list:
+                       xs = pkgsplit(x)
+                       if xs == None:
+                               continue
                        try:
-                               result = pkgcmp(pkgsplit(x), [cat+"/"+pkg,ver,rev])
+                               result = pkgcmp(xs, [cat+"/"+pkg,ver,rev])
                        except SystemExit, e:
                                raise
                        except:
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-11-18 15:21:34 UTC
No. package.provided represents packages that you have installed that aren't managed by portage. It is not possible that you could have a package installed that does not have a version.