rpmbuild: variables in %post

Paul Howarth paul at city-fan.org
Tue Nov 29 13:44:10 UTC 2011


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 ?

Paul.


More information about the devel mailing list