Alexey Tourbin
2bf12baa21
find-package (FindByPath): implemented smart check for alternatives, cf. bug #13374
Some examples. 1) $ sh -efu -c '. scripts/find-package.in; FindPackage script /usr/share/libtool' /usr/share/libtool $ sh -efu -c '. scripts/find-package.in; FindPackage script /usr/share/libtool/' /usr/share/libtool $ This shows that alterntaives check is no longer restricted to deficient readlink "$rep" |grep '^/etc/alternatives/' logic. Old behaviour was: $ sh -efu -c '. /usr/lib/rpm/find-package; FindPackage script /usr/share/libtool' /usr/share/libtool $ sh -efu -c '. /usr/lib/rpm/find-package; FindPackage script /usr/share/libtool/' sh: script: checking contents_index_all for /usr/share/libtool-1.5 sh: script: /usr/share/libtool-1.5 -> libtool_1.5 (via contents_index_all) libtool_1.5 $ 2) $ sh -efu -c '. scripts/find-package.in; FindPackage script /usr/share/libtool/../autoconf' /usr/share/autoconf /usr/share/libtool $ This shows that any number of alternatives can be resolved within a single path. 3) $ sh -efu -c '. scripts/find-package.in; FindPackage script /usr/share/libtool/config.guess' /usr/share/libtool sh: script: alternative /usr/share/libtool prevents /usr/share/libtool/config.guess resolution $ This shows that we cannot resolve paths under alternatives directory. 4) $ sh -efu -c '. scripts/find-package.in; FindPackage script /usr/share/libtool/../../bin/perl' /usr/share/libtool perl-base $ This shows that we actually CAN resolve paths which are not under alternatives directory.
This is RPM, the Red Hat Package Manager. The latest releases are always available at: ftp://ftp.rpm.org/pub/rpm Additional RPM documentation (papers, slides, HOWTOs) can also be found at the same site, as well as http://www.rpm.org. There is a mailing list for discussion of RPM issues, rpm-list@redhat.com. To subscribe, send a message to rpm-list-request@redhat.com with the word "subscribe" in the subject line. RPM was originally written by: Erik Troan <ewt@redhat.com> Marc Ewing <marc@redhat.com> See the CREDITS file for a list of folks who have helped us out tremendously. RPM is Copyright (c) 1998 by Red Hat Software, Inc., and may be distributed under the terms of the GPL and LGPL (see the file COPYING for details).
Description
Languages
C
88.7%
Shell
8.9%
M4
1.3%
Makefile
1%