Re: relocatable rpm .spec question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 22, 2006 at 02:07:36PM -0500, John Ellson wrote:

> But I have a %post containing "%{_bindir}/foo" that isn't getting 
> relocated properly.
> Its still looking for /usr/bin/foo instead of /home/ellson/usr/bin/foo.
> 
> I tried "%{prefix}/bin/foo" but it still resolves to /usr/bin/foo

All %{...} macros are evaluated at RPM build time, so this won't work.

> Is there a variable set by the --prefix option that I can use in %post ?

Yes, environment variables.  Using $RPM_INSTALL_PREFIX0 for the (first)
prefix should work.

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux