[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Order of prefixes' matching on relocation ?
- From: "Serguei Ostrovskii" <sostrovsky snip net>
- To: <rpm-list redhat com>
- Subject: Order of prefixes' matching on relocation ?
- Date: Fri, 15 Feb 2002 13:45:26 -0500
Hello,
I grepped through all 20Mb of rpm-list.mbox and learned that
THE way to relocate a package is:
1) Have in .spec when building the package
Prefix: <absolute.path.from.1> <absolute.path.from.2> ...
2) Use in command line when installing the binary package
rpm -i ... --relocate <absolute.path.from.1>=<absolute.path.to.1> --relocate <absolute.path.from.2>=<absolute.path.to.2> ...
I gather I'd use something like
Prefix: %{_prefix} %{_defaultdocdir} %{_sysconfdir}
What's unclear is the order the prefixes get matched.
Example:
Often used values are
%_prefix /usr
%_defaultdocdir /usr/share/doc
It illustrates the scenario when one path is the exact subset of other.
Now, if %{_prefix} is matched first the things will be screwed up.
Question:
Do "from" patches from Prefix: match in the order they appear in the line,
or something more sensitive ( like try the longest patch first, etc. ) used ?
Thank you.
Sergey Ostrovsky.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]