Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: atrpms: users

kmdl rpm naming problem in rpm db

 

 

atrpms users RSS feed   Index | Next | Previous | View Threaded


m.richardson at ed

Oct 5, 2011, 7:10 AM

Post #1 of 4 (358 views)
Permalink
kmdl rpm naming problem in rpm db

I've just tried to install an atrpms drbd-kmdl rpm on 64-bit SL6
(drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64.rpm)

The rpm installs successfully, but I then see odd behaviour from the rpm
database.

If I split the name as queried from the database, I see the following:

]$ rpm -qa --queryformat '%{NAME}\n%{VERSION}\n%{RELEASE}\n' | grep
drbd-kmdl

drbd-kmdl-2.6.32-131.12.1.el6.x86_64
8.4.0
31.el6

However, if I then try to query that rpm based on the name field, I see:

]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64
package drbd-kmdl-2.6.32-131.12.1.el6.x86_64 is not installed

The name by which it does appear when queried is:

]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64.x86_64
drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64



I don't know if this is an issue with the rpm itself, or a bug in
rpmlib. Any suggestions as to what might be causing this?

Thanks,

Matthew


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
Attachments: signature.asc (0.19 KB)


Axel.Thimm at ATrpms

Oct 12, 2011, 2:50 AM

Post #2 of 4 (333 views)
Permalink
Re: kmdl rpm naming problem in rpm db [In reply to]

On Wed, 2011-10-05 at 15:10 +0100, Matthew Richardson wrote:
> I've just tried to install an atrpms drbd-kmdl rpm on 64-bit SL6
> (drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64.rpm)
>
> The rpm installs successfully, but I then see odd behaviour from the rpm
> database.
>
> If I split the name as queried from the database, I see the following:
>
> ]$ rpm -qa --queryformat '%{NAME}\n%{VERSION}\n%{RELEASE}\n' | grep
> drbd-kmdl
>
> drbd-kmdl-2.6.32-131.12.1.el6.x86_64
> 8.4.0
> 31.el6
>
> However, if I then try to query that rpm based on the name field, I see:
>
> ]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64
> package drbd-kmdl-2.6.32-131.12.1.el6.x86_64 is not installed
>
> The name by which it does appear when queried is:
>
> ]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64.x86_64
> drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64
>
>
>
> I don't know if this is an issue with the rpm itself, or a bug in
> rpmlib. Any suggestions as to what might be causing this?

It looks funny indeed. Perhaps EL6's rpm is overzealous in parsing the
input. Do you need to query with rpm -q? A workaround would be to query
with rpm -qa ...\* | grep ...

You can test whether this bug is in the rpm binary or rpmlib by using
the python wrappers.
--
http://thimm.gr/ - http://ATrpms.net/
Attachments: signature.asc (0.19 KB)


m.richardson at ed

Oct 12, 2011, 3:13 AM

Post #3 of 4 (335 views)
Permalink
Re: kmdl rpm naming problem in rpm db [In reply to]

On 12/10/11 10:50, Axel Thimm wrote:
> On Wed, 2011-10-05 at 15:10 +0100, Matthew Richardson wrote:
>> I've just tried to install an atrpms drbd-kmdl rpm on 64-bit SL6
>> (drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64.rpm)
>>
>> The rpm installs successfully, but I then see odd behaviour from the rpm
>> database.
>>
>> If I split the name as queried from the database, I see the following:
>>
>> ]$ rpm -qa --queryformat '%{NAME}\n%{VERSION}\n%{RELEASE}\n' | grep
>> drbd-kmdl
>>
>> drbd-kmdl-2.6.32-131.12.1.el6.x86_64
>> 8.4.0
>> 31.el6
>>
>> However, if I then try to query that rpm based on the name field, I see:
>>
>> ]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64
>> package drbd-kmdl-2.6.32-131.12.1.el6.x86_64 is not installed
>>
>> The name by which it does appear when queried is:
>>
>> ]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64.x86_64
>> drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64
>>
>>
>>
>> I don't know if this is an issue with the rpm itself, or a bug in
>> rpmlib. Any suggestions as to what might be causing this?
>
> It looks funny indeed. Perhaps EL6's rpm is overzealous in parsing the
> input. Do you need to query with rpm -q? A workaround would be to query
> with rpm -qa ...\* | grep ...
>
> You can test whether this bug is in the rpm binary or rpmlib by using
> the python wrappers.

I initially discovered this problem using the wrappers to rpmlib, so I'm
pretty sure its in there, rather than the binary.

Should I elevate this to the appropriate rpmlib devs, or is that
something best done from your side?

Thanks,

Matthew

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
Attachments: signature.asc (0.19 KB)


Axel.Thimm at ATrpms

Oct 12, 2011, 6:27 AM

Post #4 of 4 (338 views)
Permalink
Re: kmdl rpm naming problem in rpm db [In reply to]

On Wed, 2011-10-12 at 11:13 +0100, Matthew Richardson wrote:
> Should I elevate this to the appropriate rpmlib devs, or is that
> something best done from your side?

You can try, but if this is the default parser stripping off a possible
arch at the end of the argv (and using that for matching the arch) I
doubt there will be any change. It's probably just bad luck for package
names ending in .<arch> and rpm -q.
--
http://thimm.gr/ - http://ATrpms.net/
Attachments: signature.asc (0.19 KB)

atrpms users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.