Issue214

Project smart
Title incorrect 'no package provides ...' and incorrect '... is locked'
Priority bug Status done-review
Superseder Nosy List kindjal, rasker
Assigned To rasker Topics

Created on 2006-09-15.19:36:42 by kindjal, last changed 2008-07-01.10:06:17 by rasker.

Messages
msg1417 (view) Author: rasker Date: 2008-07-01.10:06:17
Retired

Reason for Retirement: Please confirm if this is still a problem in the latest
version of Smart.

Please reopen this issue in the new bugtracker if it is still an issue.
New Bugtracker : http://bugs.launchpad.net/smart
further details:
https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration.
msg710 (view) Author: kindjal Date: 2006-09-15.19:36:41
Summary
-------
smart (install|upgrade) foopackage-server claims that "no package provides
foopackage", when it should see that "foopackage" provides "foopackage".

Then...

smart (install|upgrade) foopackage foopackage-server claims that "conflicted
package foopackage-server is locked".


Details
-------

# cat /etc/issue
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Kernel \r on an \m

# uname -a
Linux scan00.pipesecure.com 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005
x86_64 x86_64 x86_64 GNU/Linux

# rpm -q smart
smart-0.42-1.rf

In this case "foopackage" is a personally built rpm of the "clamav" software
package.  Here I wrote a specfile for clamav that builds binary rpms for clamav,
clamav-server, clamav-libs.  clamav-server Requires: clamav-%{version}-%{release}.

RPMs build fine and if I install them with rpm (without smart), they install fine.

rpm -Uvh clamav clamav-server clamav-libs  # this works fine

# rpm -qp --provides clamav-0.88.4-1.x86_64.rpm
config(clamav) = 0.88.4-1
clamav = 0.88.4-1

# rpm -qpR clamav-server-0.88.4-1.x86_64.rpm |grep clamav|head -1
clamav = 0.88.4-1

# smart install clamav-server
Loading cache...
Updating cache...                         
########################################################## [100%]

Computing transaction...                                                       
                             error: Can't install clamav-server-0.88.4-1@x86_64:
no package provides clamav = 0.88.4-1

Saving cache...

# smart install clamav clamav-server
Loading cache...
Updating cache...                         
########################################################## [100%]

Computing transaction...                                                       
                             error: Can't install clamav-0.88.4-1@x86_64:
conflicted package clamav-server-0.88.4-1@x86_64 is locked

# smart flag --show
multi-version
    kernel
    kernel-smp

(Note that there are no locks)

I tried the nobiarch.patch from issue 177 to no avail.

I tried specifying @x86_64 on all package names to no avail.

I inspected the smart xml files and they correctly show the packages, provides
and requires, with the right version numbers present.

I can't figure out why:

1) clamav-server doesn't see that clamav provides clamav.
2) clamav-server is identified as "locked" when it isn't.
History
Date User Action Args
2008-07-01 10:06:17raskersetstatus: unread -> done-review
assignedto: rasker
messages: + msg1417
nosy: + rasker
2006-09-15 19:36:43kindjalcreate