[CentOS-devel] a strange (new?) feature in rhel-6

Sat Jul 31 10:19:07 UTC 2010
Farkas Levente <lfarkas at lfarkas.org>

On 07/31/2010 12:11 PM, Marcus Moeller wrote:
> Hi,
> 
>> i'm just accidentally recognize that on rhel-6:
>> ----------------------------------------------
>> # rpm -qpi rhnsd-4.9.3-2.el6.x86_64.rpm
>> warning: rhnsd-4.9.3-2.el6.x86_64.rpm: Header V3 RSA/SHA256 signature:
>> NOKEY, key ID f21541eb
>> Name        : rhnsd                        Relocations: (not relocatable)
>> Version     : 4.9.3                             Vendor: Red Hat, Inc.
>> Release     : 2.el6                         Build Date: Wed 24 Mar 2010
>> 03:11:14 PM CET
>> Install Date: (not installed)               Build Host:
>> ls20-bc2-13.build.redhat.com
>> Group       : System Environment/Base       Source RPM:
>> rhnsd-4.9.3-2.el6.src.rpm
>> Size        : 92865                            License: GPLv2
>> Signature   : RSA/8, Tue 20 Apr 2010 07:50:37 PM CEST, Key ID
>> 938a80caf21541eb
>> Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
>> URL         : https://fedorahosted.org/spacewalk
>> Summary     : CentOS Network query daemon
>> Description :
>> The CentOS Update Agent that automatically queries the CentOS
>> Network servers and determines which packages need to be updated on
>> your machine, and runs any actions.
>> ----------------------------------------------
>> did you see the strange thing? (i run ths command on a centos system)
>> so if centos just rebuild the same src.rpm then do not need to modify
>> the package and the spec! (ok this pacakge won't be included in centos
>> anyway, just an example) since in that case the buildhost and vendor
>> changed because of the build system and the summary and other part will
>> change "automagically" even if the spec file contains _hard coded_ "Red
>> Hat". this can save same useless work..
> 
> Seems to be pushed directly from Spacewalk repos. Guess they might
> 'fix' it before release.

it seems you don't understand it. rpm change 'on the fly' all 'Red Hat'
string to the given os's vendor. if you run the above command on rhel-6
beta on the same file then it gives:
----------------------------------------------
# rpm -qpi rhnsd-4.9.3-2.el6.x86_64.rpm
Name        : rhnsd                        Relocations: (not relocatable)
Version     : 4.9.3                             Vendor: Red Hat, Inc.
Release     : 2.el6                         Build Date: Wed 24 Mar 2010
03:11:14 PM CET
Install Date: (not installed)               Build Host:
ls20-bc2-13.build.redhat.com
Group       : System Environment/Base       Source RPM:
rhnsd-4.9.3-2.el6.src.rpm
Size        : 92865                            License: GPLv2
Signature   : RSA/8, Tue 20 Apr 2010 07:50:37 PM CEST, Key ID
938a80caf21541eb
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : https://fedorahosted.org/spacewalk
Summary     : Red Hat Network query daemon
Description :
The Red Hat Update Agent that automatically queries the Red Hat
Network servers and determines which packages need to be updated on
your machine, and runs any actions.
----------------------------------------------

-- 
  Levente                               "Si vis pacem para bellum!"