_prefix hard-coded to /usr?

hmiller at hiwaay.net hmiller at hiwaay.net
Sat Nov 28 19:14:30 UTC 2009


In my RPM .spec file, I have set PREFEX to /usr/local.

In the %post section, I need to use the prefix variable to make some changes.
However, when I echo ${_prefix} it is not set to /usr/local.  It is  
set to /usr

If I do an "rpmbuild --showrc", there is a line showing prefix set to /usr.

Is there some trick to using _prefix in my %post scripting section of  
my .spec file?

I need the actual PREFIX value that is set in my .spec file, or the  
--prefix value entered on the command line by the user who installs  
the subsequent rpm file.

Thanks,
Herb Miller

-------------- next part --------------
An embedded message was scrubbed...
From: hmiller at hiwaay.net
Subject: _prefix hard-coded to /usr?
Date: Sat, 28 Nov 2009 12:51:03 -0600
Size: 1169
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20091128/e288b805/attachment.eml>


More information about the Rpm-list mailing list