NetBSD Problem Report #56377

From triaxx@netbsd.org  Sat Aug 28 05:55:48 2021
Return-Path: <triaxx@netbsd.org>
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 90E711A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 28 Aug 2021 05:55:48 +0000 (UTC)
Message-Id: <20210828055547.040141A923A@mollari.NetBSD.org>
Date: Sat, 28 Aug 2021 05:55:46 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: Inconsistent libarchive.pc for builtin libarchive
X-Send-Pr-Version: 3.95

>Number:         56377
>Category:       pkg
>Synopsis:       Inconsistent libarchive.pc for builtin libarchive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 28 06:00:00 +0000 2021
>Last-Modified:  Thu Nov 04 10:09:07 +0000 2021
>Originator:     Frédéric Fauberteau
>Release:        NetBSD 9.2
>Organization:
>Environment:
System: NetBSD ultralisk.triaxx.org 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
Pkgsrc: HEAD
>Description:
For packages that includes archivers/libarchive/buildlink3.mk, bmake patch && bmake configure produces an inconsistent work/.buildlink/lib/pkgconfig/libarchive.pc where the field 'Version' is not computed:
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: libarchive
Description: library that can create and read several streaming archive formats
Version: 
Cflags: -I${includedir}
Cflags.private: -DLIBARCHIVE_STATIC
Libs: -L${libdir} -larchive
Libs.private: -llzma -lbz2 -lz

But when bmake configure is directly run, the filed 'Version' is correct:
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: libarchive
Description: library that can create and read several streaming archive formats
Version: 3.4.0
Cflags: -I${includedir}
Cflags.private: -DLIBARCHIVE_STATIC
Libs: -L${libdir} -larchive
Libs.private: -llzma -lbz2 -lz

It occurs for builtin libarchive.
It is problematic for the development of at least audio/ardour for which the configure step checks the version of libarchive using the pkgconfig tool. When we work at patching this package, 'bmake patch' following by 'bmake build' fails for some seemingly inconsistent reason.
The same behavior can be observed for misc/rpm but without impact on the build process since the libarchive version is not tested by pkgconfig.
>How-To-Repeat:
cd /usr/pkgsrc/audio/ardour && bmake patch && bmake configure
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Thu, 04 Nov 2021 10:09:07 +0000
Responsible-Changed-Why:
Over to libarchive maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.