[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
  Web www.spinics.net

_prefix hard-coded to /usr?

Quoting hmiller@xxxxxxxxxx:

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.

Herb Miller

Rpm-list mailing list

[Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch List]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]