[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  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.

Thanks,
Herb Miller




_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

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