[Rpm-maint] RFC: experiments with rich dependencies
lkardos at redhat.com
Wed Jan 14 09:42:42 UTC 2015
I tested this feature a little and I find the following problem.
I have package testA that requires (testB | testC). I tried to installed it.
# rpm -i testA-1-1.x86_64.rpm
error: Failed dependencies:
(testB | testC) is needed by testA-1-1.x86_64
# rpm -i testA-1-1.x86_64.rpm testB-1-1.x86_64.rpm
# rpm -q testA
#rpm -q testB
That's ok. Now I have successfully installed packages testA and testB. But then
I tried to uninstall package testB.
# rpm -e testB
# rpm -q testB
package testB is not installed
And this is problem I shouldn't be able to unistall package testB because it is
required by testA. This problem was created in commit 8674de47 on line 2108
in lib/rpmdb.c. The last char of string name is cut off no matter if that char
is white char or not. Try this:
# rpm -q --whatrequires testB
no package requires testB
# rpm -q --whatrequries test # Now without the last char
----- Original Message -----
> From: "Michael Schroeder" <mls at suse.de>
> To: "Panu Matilainen" <pmatilai at redhat.com>
> Cc: rpm-maint at lists.rpm.org
> Sent: Friday, September 12, 2014 6:06:15 PM
> Subject: Re: [Rpm-maint] RFC: experiments with rich dependencies
> On Thu, Sep 11, 2014 at 03:18:19PM +0300, Panu Matilainen wrote:
> > With rpm 4.12 branched out and new development cycle just starting, this
> > would be the prime time to land in such big new features and AFAICS this
> > would make for a fine starting point for further refining. I'd say go ahead
> > and push this pretty much as-is [**], unless others have objections.
> > Florian?
> Ok, pushed.
> Happy hacking,
> Michael Schroeder mls at suse.de
> SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
More information about the Rpm-maint