[PATCH] Document Requires.private

Stepan Kasal skasal at redhat.com
Sat Dec 8 08:55:53 PST 2007


Hello,
  I'd like to submit the attached patch to the man page pkg-config.1.

When discussing the usage of pkg-config in the util-linux-ng project,
it took me long time before I formed an opinion that Requires.private
is what we need.  Observe yourself:
http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/953

Documenting the Requires.private: tag in the man page will surely
help the people which will be solving the same problem.

Have a nice day,
	Stepan Kasal
-------------- next part --------------
2007-12-08  Stepan Kasal  <skasal at redhat.com>

	* pkg-config.1: Document "Requires.private" and recommend it
	for libraries.

--- pkg-config.1.reqpriv	2007-12-08 16:26:48.000000000 +0100
+++ pkg-config.1	2007-12-08 17:40:22.000000000 +0100
@@ -359,6 +359,17 @@
 line. If the version of a package is unspecified, any version will
 be used with no checking.
 .TP
+.I Requires.private:
+A list of packages required by this package. The difference from
+.I Requires
+is that the packages listed under
+.I Requires.private
+are not taken into account when a flag list is computed for dynamicly linked
+executable (i.e., when \-\-static was not specified).
+In the situation where each .pc file corresponds to a library,
+.I Requires.private
+shall be used exclusively to specify the dependencies between the libraries.
+.TP
 .I "Conflicts:"
 This optional line allows \fIpkg-config\fP to perform additional
 sanity checks, primarily to detect broken user installations.  The


More information about the pkg-config mailing list