Subject: pkg/35952: pkgsrc gets confused by PKG_CONFIG_PATH
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/08/2007 23:25:00
>Number:         35952
>Category:       pkg
>Synopsis:       pkgsrc gets confused by PKG_CONFIG_PATH
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 08 23:25:00 +0000 2007
>Originator:     Roland Illig
When the PKG_CONFIG_PATH variable is set to $LOCALBASE/lib/pkgconfig, all installed packages are visible to the pkg-config tool, even if it is wrapped by the tool wrapper.

cd multimedia/mjpegtools
pkg_add gtk2+
env PKG_CONFIG_PATH=$LOCALBASE/lib/pkgconfig bmake
: "Expect it to fail because of a missing <gtk/gtk.h> header."
bmake clean

env PKG_CONFIG_PATH=/nonexistent bmake
: "This time, it works."

One of:

1) Ignore the value of PKG_CONFIG_PATH altogether by overriding it in mk/tools/, like PKG_CONFIG_LIBDIR.

2) Document that custom settings of PKG_CONFIG_PATH are not supported.
   Add a check for that.