NetBSD Problem Report #54638
From www@netbsd.org Tue Oct 22 12:14:39 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id EAA017A256
for <gnats-bugs@gnats.NetBSD.org>; Tue, 22 Oct 2019 12:14:38 +0000 (UTC)
Message-Id: <20191022121437.C95E17A257@mollari.NetBSD.org>
Date: Tue, 22 Oct 2019 12:14:37 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: pkg-config and builtin packages
X-Send-Pr-Version: www-1.0
>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:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.