_prefix hard-coded to /usr?

hmiller at hiwaay.net hmiller at hiwaay.net
Mon Nov 30 19:21:20 UTC 2009

I am using it in the %post section.  When I echo %{_prefix} from the  
%post section it shows up as /usr.

I will try the $RPM_INSTALL_PREFIX.  Maybe that is the one I need.  I  
will let you know.


Quoting "Mitko Haralanov" <mitko at qlogic.com>:

> On Sat, 28 Nov 2009 11:39:24 -0800
> "hmiller at hiwaay.net" <hmiller at hiwaay.net> wrote:
>> However, when I echo ${_prefix} it is not set to /usr/local.  It is
>> set to /usr
> How are you echo'ing %{_prefix}? If it is from inside your %post
> script, does it show the correct value?
> You could look into the $RPM_INSTALL_PREFIX variable.
> --
> Mitko Haralanov					 mitko at qlogic.com
> Senior Software Engineer			     650.934.8064
> NSG InfiniBand Engineering		    http://www.qlogic.com
> ==========================================
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list

More information about the Rpm-list mailing list