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.
2007-11-17 15:04:06 +03:00
2006-05-14 18:21:28 +04:00
2007-08-02 18:56:55 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 18:21:28 +04:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2004-02-29 14:14:02 +00:00
2002-03-25 20:16:26 +00:00
2007-11-10 13:27:49 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:44:16 +00:00
2002-03-25 20:16:26 +00:00
2007-11-10 13:26:47 +00:00
2007-11-10 13:26:47 +00:00
2006-11-17 00:01:44 +00:00
2006-05-14 17:05:34 +04:00
2007-11-10 13:27:49 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2003-05-01 12:19:59 +00:00
2007-11-10 20:47:04 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2007-11-10 13:26:47 +00:00
2003-11-24 18:59:03 +00:00
2002-03-25 20:16:26 +00:00

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
No description provided
Readme 4.5 MiB
Languages
C 88.7%
Shell 8.9%
M4 1.3%
Makefile 1%