pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/54638: pkg-config and builtin packages
>Number: 54638
>Category: pkg
>Synopsis: pkg-config and builtin packages
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 22 12:15:00 +0000 2019
>Originator: Joern Clausen
>Release:
>Organization:
Bielefeld University
>Environment:
>Description:
This fails on Solaris:
$ pkg-config --cflags fontconfig
Package uuid was not found in the pkg-config search path.
Perhaps you should add the directory containing `uuid.pc'
to the PKG_CONFIG_PATH environment variable
Package 'uuid', required by 'fontconfig', not found
As a consequence, pkg-config for every package depending on fontconfig also fails:
$ pkg-config --cflags cairo
Package uuid was not found in the pkg-config search path.
Perhaps you should add the directory containing `uuid.pc'
to the PKG_CONFIG_PATH environment variable
Package 'uuid', required by 'fontconfig', not found
This makes pkg-config unusable as a tool to build software packages outside pkgsrc, as dependencies are reported as missing, although the corresponding packages are installed.
The reason is, that fontconfig.pc contains
Requires.private: uuid
devel/libuuid gets not installed on Solaris, because it is considered builtin. The same problem can probably occur for e.g. zlib, which is a requirement for freetype2, but can also be provided by the OS.
IMHO the .pc files for pkg-config should be adjusted, depending if a requirement is builtin or not. Another solution might be to install dummy .pc files for builtin packages.
PS: The easy solution would be to add devel/libuuid to PREFER_PKGSRC (which I did for e.g. zlib), but this package currently does not build on Solaris. But I think the interplay between builtin and pkg-config is a more fundamental problem.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index