NetBSD Problem Report #58614
From oster@fween.ca Sat Aug 17 19:46:57 2024
Return-Path: <oster@fween.ca>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id EA7851A9243
for <gnats-bugs@gnats.NetBSD.org>; Sat, 17 Aug 2024 19:46:56 +0000 (UTC)
Message-Id: <20240817183132.A73493775B6@pepe.fween.ca>
Date: Sat, 17 Aug 2024 12:31:32 -0600 (CST)
From: oster@netbsd.org
Reply-To: oster@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: mail/opendmarc fails to build with pkg-config not found
X-Send-Pr-Version: 3.95
>Number: 58614
>Category: pkg
>Synopsis: mail/opendmarc fails to build with pkg-config not found
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 17 19:50:00 +0000 2024
>Last-Modified: Sun Sep 08 20:25:01 +0000 2024
>Originator: Greg Oster
>Release: NetBSD 10.0_STABLE
>Organization:
>Environment:
System: NetBSD pepe 10.0_STABLE NetBSD 10.0_STABLE (GENERIC) #0: Sat Jul 20 12:54:28 CST 2024 oster@gonzo:/u1/builds/build416/src/obj/amd64/u1/builds/build416/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
mail/opendmarc fails to build with pkg-config not found:
...
checking whether to build static libraries... yes
checking pkg-config is at least version 0.9.0... no
configure: error: pkg-config not found
*** Error code 1
Stop.
make[1]: stopped in /usr/pkgsrc/mail/opendmarc
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/opendmarc
Same behaviour on -current. 'which pkg-config' returns /usr/pkg/bin/pkg-config,
and the version of that is 2.3.0.
./tools/bin/pkg-config is also there, The .work.log indicates it's trying to run:
/usr/pkgsrc/mail/opendmarc/work.pepe/.tools/bin/pkg-config --atleast-pkgconfig-version 0.9.0
set args --atleast-pkgconfig-version 0.9.0; shift; PKG_CONFIG_LIBDIR=/usr/pkgsrc/mail/opendmarc/work.pepe/.buildlink/lib/pkgconfig:/usr/pkgsrc/mail/opendmarc/work.pepe/.buildlink/share/pkgconfig false "$@"
and that has a return code of '1'.
Happy to provide additional debugging info if that would be useful.
>How-To-Repeat:
cd /usr/pkgsrc/mail/opendmarc
make install
>Fix:
Please. Thanks.
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/58614: mail/opendmarc fails to build with pkg-config not
found
Date: Sat, 17 Aug 2024 23:07:08 +0200
On Sat, Aug 17, 2024 at 07:50:01PM +0000, oster@netbsd.org wrote:
> checking whether to build static libraries... yes
> checking pkg-config is at least version 0.9.0... no
> configure: error: pkg-config not found
> *** Error code 1
I don't know the proper solution, but the proper workaround is
1. build in a sandbox with just the required dependencies installed, or
2. pkg_delete pkgconf pkg-config # depending on which you have installed)
then the build will succeed.
Thomas
From: Greg Oster <oster@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58614: mail/opendmarc fails to build with pkg-config not
found
Date: Sat, 17 Aug 2024 17:47:47 -0600
On 2024-08-17 15.10, gnats-admin@netbsd.org wrote:
> The following reply was made to PR pkg/58614; it has been noted by GNATS.
>
> From: Thomas Klausner <wiz@NetBSD.org>
> To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
> Cc:
> Subject: Re: pkg/58614: mail/opendmarc fails to build with pkg-config not
> found
> Date: Sat, 17 Aug 2024 23:07:08 +0200
>
> On Sat, Aug 17, 2024 at 07:50:01PM +0000, oster@netbsd.org wrote:
> > checking whether to build static libraries... yes
> > checking pkg-config is at least version 0.9.0... no
> > configure: error: pkg-config not found
> > *** Error code 1
>
> I don't know the proper solution, but the proper workaround is
>
> 1. build in a sandbox with just the required dependencies installed, or
>
> 2. pkg_delete pkgconf pkg-config # depending on which you have installed)
>
> then the build will succeed.
> Thomas
>
I had tried a sandbox with no packages installed, and just installing
opendmarc ("cd /usr/pkgsrc/mail/opendmarc && make install") on a test
box, but that didn't work for me...
"pkg_delete pkgconf" does work as a work-around.
Thanks.
Later...
Greg Oster
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/58614: mail/opendmarc fails to build with pkg-config not
found
Date: Sun, 18 Aug 2024 06:46:34 +0200
On Sat, Aug 17, 2024 at 11:50:02PM +0000, gnats-admin@netbsd.org wrote:
> I had tried a sandbox with no packages installed, and just installing
> opendmarc ("cd /usr/pkgsrc/mail/opendmarc && make install") on a test
> box, but that didn't work for me...
Probably you didn't have binary packages for all dependencies of
opendmarc yet, and building one of those did pull in pkgconf.
In that case, 'pkg_delete -r \*' (in the sandbox!) until nothing's
left and
make clean
make DEPENDS_TARGET=bin-install install-depends
will install just the listed requirements for the package.
> "pkg_delete pkgconf" does work as a work-around.
Great!
Thomas
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58614: mail/opendmarc fails to build with pkg-config not
found
Date: Sun, 8 Sep 2024 20:20:58 +0000
On Sat, Aug 17, 2024 at 09:10:01PM +0000, gnats-admin@netbsd.org wrote:
> From: Thomas Klausner <wiz@NetBSD.org>
>
> On Sat, Aug 17, 2024 at 07:50:01PM +0000, oster@netbsd.org wrote:
> > checking whether to build static libraries... yes
> > checking pkg-config is at least version 0.9.0... no
> > configure: error: pkg-config not found
> > *** Error code 1
>
> I don't know the proper solution, but the proper workaround is
>
> 1. build in a sandbox with just the required dependencies installed, or
>
> 2. pkg_delete pkgconf pkg-config # depending on which you have installed)
>
> then the build will succeed.
I'm confused; the package doesn't say it uses pkg-config, but if it's
going to try surely the best approach is to add it to USE_TOOLS...
--
David A. Holland
dholland@netbsd.org
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.