NetBSD Problem Report #55901

From www@netbsd.org  Sat Jan  2 08:52:59 2021
Return-Path: <www@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 7CCD11A923B
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  2 Jan 2021 08:52:59 +0000 (UTC)
Message-Id: <20210102085258.280301A923C@mollari.NetBSD.org>
Date: Sat,  2 Jan 2021 08:52:58 +0000 (UTC)
From: gharris@sonic.net
Reply-To: gharris@sonic.net
To: gnats-bugs@NetBSD.org
Subject: pkg-config script from libpcap isn't generated correctly
X-Send-Pr-Version: www-1.0

>Number:         55901
>Category:       lib
>Synopsis:       pkg-config script from libpcap isn't generated correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 02 08:55:00 +0000 2021
>Originator:     Guy Harris
>Release:        9.0
>Organization:
>Environment:
NetBSD netbsd-90.localdomain 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
If you run

    /usr/bin/pcap-config --libs

it prints

    -L/usr/lib  -l@PACKAGE_NAME@

It *should* print

     -L/usr/lib  -lpcap

Perhaps the build process isn't doing the "replace '@{config-variable-name}@' with the value of the config variable in question" process that it should do when turning pcap-config.in into pcap-config.
>How-To-Repeat:
Run

    /usr/bin/pcap-config --libs

from the command line, and see what its output is.
>Fix:

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.