RPM

urpmq --whatrequires doesn't work with virtual provides

Bug #913248 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Mandriva
Invalid
Low

Bug Description

urpmi passthrough commands need changing

Tags: mageia urpmi
Revision history for this message
In , Luigiwalser (luigiwalser) wrote :

For example, the tomcat5-jasper package provides jasper5.

"urpmq --whatrequires jasper5" gives "No package named jasper5"

Revision history for this message
In , J-manuel (j-manuel) wrote :

Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Revision history for this message
In , Jeff Johnson (n3npq) wrote :
tags: added: mageia urpmi
Changed in mandriva:
importance: Unknown → Low
status: Unknown → Confirmed
Revision history for this message
In , Thierry-vignaud (thierry-vignaud) wrote :

"urpmq --whatprovides" != "urpmq --whatrequires"

Revision history for this message
In , Luigiwalser (luigiwalser) wrote :

Which makes for a logical imbalance.

Revision history for this message
In , Luigiwalser (luigiwalser) wrote :

I don't know how easy it would be to fix, but there are valid reasons for wanting to make this sort of query.

Granted, it is nice that you can use the package name and get any packages that require it either directly or through one of its provides, but still it would be nice to fix this if possible.

Revision history for this message
In , Thierry-vignaud (thierry-vignaud) wrote :

I don't understand what you want to fix.
"urpmq --whatprovides foobar" nicely returns all the packages providing foobar
"urpmq --whatrequires foobar" nicely returns all the packages providing foobar
(nothing for jasper5)

If you don't believe me, just look at the raw synthesis, nothing requires jasper5. Period.

This works nicely for eg: coreutils

Revision history for this message
In , Lmenut (lmenut) wrote :

Thierry, I confirm that "urpmq --whatrequires" with virtual provides doesn't give the result that we might expect.

coreutils isn't a good example here, because it's a package name.

Could you try with jre or java.
e.g. in mga2:
LC_ALL=C urpmq --whatprovides jre
java-1.5.0-gcj|java-1.7.0-openjdk|java-1.6.0-openjdk

LC_ALL=C urpmq --whatrequires jre
No package named jre
The following packages contain jre: jrefactory, jrefactory-javadoc, jrexx, jrexx-javadoc, ...
You should use "-a" to use all of them

but if I use rpm on my local mirror:
rpm -qp --queryformat '[%{NAME}-%{VERSION} %{REQUIRES}\n]' *.rpm |grep " jre$"
esmska-1.2.0 jre
fmj-20110107 jre
libreoffice-java-common-3.5.3.2 jre

Revision history for this message
In , Thierry-vignaud (thierry-vignaud) wrote :

man urpmq => "urpmq --whatrequires -p jre"

Changed in mandriva:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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