rpmbuild: variables in %post

Reindl Harald h.reindl at thelounge.net
Tue Nov 29 14:04:03 UTC 2011



Am 29.11.2011 14:44, schrieb Paul Howarth:
> On 11/29/2011 01:16 PM, Reindl Harald wrote:
>> hi, i have a "little" problem with rpmbuild
>>
>> on the begin of my spec-file: %define kernel_uname_r %(echo $(uname -r))
>> this works fine in %files, but is ignored in %post
>> FATAL: Could not open '/boot/System.map-': No such file or directory
>> why?
> 
> Does it help if you use %global instead of %define ?

this does the trick!
thank you very much!

if will cross-post a link to my src.rpm of open-vm-tools on fedora-users/devel,
rpmfusion-users and open-vmtools since they are retired for F15 in the
rpmfusion-repos and hardly needed if someone is using fedora-guests
on vSphere with HA-Clustering

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20111129/8c550ec6/attachment.bin 


More information about the devel mailing list