|
|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
--- Begin Message ---
- Subject: _prefix hard-coded to /usr?
- From: hmiller@xxxxxxxxxx
- Date: Sat, 28 Nov 2009 12:51:03 -0600
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 /usrIf 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
--- End Message ---
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list