[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: source vs sourcecode



Scott Sloan wrote:

Interesting. It should , as the kernel-sourcecode provides
kernel-source:
pedro tirael /var/ $ rpm -q --provides kernel-sourcecode
kernel-source kernel-sourcecode = 2.6.6-1.427
pedro tirael /var/ $





ummm.. let's look


root Blacksmith root]# rpm -q kernel kernel-source
kernel-2.6.5-1.358
kernel-2.6.6-1.435
kernel-source-2.6.5-1.358
root Blacksmith root]#

As we can see kernel-sourcecode is not install but the source for .358 is, so let's tell yum to update kernel-source

[root Blacksmith root]# yum update kernel-source
Gathering header information file(s) from server(s)
Server: Atrpms.net
Server: Core Packages
Server: Dag
Server: Evolution Devel Snaps
Server: Fedora.us
Server: Freshrpms
Server: Livna
Server: Fedora Core GStreamer
Server: Fedora Core GStreamer dependencies
Server: J5's Experimental Project Utopia Repository
Server: New rpms's
Server: Fedora Updates
Finding updated packages
Downloading needed headers
No Packages Available for Update
No actions to take
[root Blacksmith root]#

Yum could not find an update for it... so yum doesn't see it as an update because string(kernel-sourcecode) != string(kernel-source) What happens if we do this

[root Blacksmith root]# yum update kernel-sourcecode
Gathering header information file(s) from server(s)
Server: Atrpms.net
Server: Core Packages
Server: Dag
Server: Evolution Devel Snaps
Server: Fedora.us
Server: Freshrpms
Server: Livna
Server: Fedora Core GStreamer
Server: Fedora Core GStreamer dependencies
Server: J5's Experimental Project Utopia Repository
Server: New rpms's
Server: Fedora Updates
Finding updated packages
Downloading needed headers
No Packages Available for Update
No actions to take
[root Blacksmith root]#

Since there is no kernel-sourcecode in the rpmdb it can't update it

But finds it in a search since "kernel-source" is contained in kernel-sourcecode.

[root Blacksmith root]# yum search kernel-source
Gathering header information file(s) from server(s)
Server: Atrpms.net
Server: Core Packages
Server: Dag
Server: Evolution Devel Snaps
Server: Fedora.us
Server: Freshrpms
Server: Livna
Server: Fedora Core GStreamer
Server: Fedora Core GStreamer dependencies
Server: J5's Experimental Project Utopia Repository
Server: New rpms's
Server: Fedora Updates
Finding updated packages
Downloading needed headers
Looking in available packages for a providing package
Available package: kernel-sourcecode.noarch 0:2.6.6-1.435 from updates matches with
kernel-sourcecode
1 results returned
[root Blacksmith root]#


I would think this isn't a bug because if you were to have all "almost like" strings updating other almost-like packages, your kernel-source could be overwritten with


kernel-sourcemircosoftstyle

and so forth.



No , it wouldnt. Yum should do the same thing as "rpm -q --provides kernel-sourcecode" , which returns

pedro tirael /var/ $ rpm -q --provides kernel-sourcecode
kernel-source kernel-sourcecode = 2.6.6-1.427
pedro tirael /var/ $
as I pointed earlier. Then , it should see that kernel-sourcecode provides kernel-source , remove it and then install kernel-sourcecode. That's why RPM has the Provides section. Then , this *is* a bug , as yum should download and install kernel-sourcecode as it provides kernel-source (as told by the RPM itself).


--
Pedro Macedo




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]