NetBSD Problem Report #52955

From www@NetBSD.org  Sat Jan 27 22:06:25 2018
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 82BF97A169
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 27 Jan 2018 22:06:25 +0000 (UTC)
Message-Id: <20180127220624.81E458E1CC@mollari.NetBSD.org>
Date: Sat, 27 Jan 2018 22:06:24 +0000 (UTC)
From: vchaves@computer.org
Reply-To: vchaves@computer.org
To: gnats-bugs@NetBSD.org
Subject: pkgtools/pkg_chk: the PKG_SYSCONFDIR variable is not being replaced
X-Send-Pr-Version: www-1.0

>Number:         52955
>Category:       pkg
>Synopsis:       pkgtools/pkg_chk: the PKG_SYSCONFDIR variable is not being replaced
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 27 22:10:00 +0000 2018
>Closed-Date:    Sat Jan 27 23:17:43 +0000 2018
>Last-Modified:  Sat Jan 27 23:20:00 +0000 2018
>Originator:     Vicente Chaves
>Release:        pkgsrc-current
>Organization:
>Environment:
NetBSD dm4.vchaves.lab 7.1.1 NetBSD 7.1.1 (GENERIC.201712222334Z) amd64
>Description:
Apparently the PKG_SYSCONFDIR variable is not being replaced in the file pkg_chk.sh

in file:  /usr/pkg/sbin/pkg_chk
line 876: test -n "$PKG_SYSCONFDIR"  || PKG_SYSCONFDIR="@PKG_SYSCONFDIR@"

>How-To-Repeat:
cd /usr/pkgsrc/pkgtools/pkg_chk
make
make install
grep '@PKG_SYSCONFDIR@' /usr/pkg/sbin/pkg_chk
>Fix:
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_chk/Makefile,v
retrieving revision 1.86
diff -a -u -r1.86 Makefile
--- Makefile    9 Oct 2014 14:06:49 -0000       1.86
+++ Makefile    27 Jan 2018 21:56:36 -0000
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.86 2014/10/09 14:06:49 wiz Exp $

-PKGNAME=       pkg_chk-2.0.8
+PKGNAME=       pkg_chk-2.0.9
 CATEGORIES=    pkgtools

 OWNER=         abs@NetBSD.org
@@ -28,7 +28,7 @@
 SUBST_FILES.vars=      pkg_chk.sh pkg_chk.8
 SUBST_VARS.vars=       AWK BZCAT GREP GZCAT GZIP_CMD ID MAKE MAKECONF MKTEMP \
                        PKG_ADD PKG_ADMIN PKG_DELETE PKG_INFO \
-                       SED SH SORT TSORT PREFIX PKG_DBDIR XARGS
+                       SED SH SORT TSORT PREFIX PKG_DBDIR XARGS PKG_SYSCONFDIR

 REPLACE_SH+=           pkg_chk.sh

cvs diff: Diffing files

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 27 Jan 2018 23:17:43 +0000
State-Changed-Why:
Committed, thanks!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52955 CVS commit: pkgsrc/pkgtools/pkg_chk
Date: Sat, 27 Jan 2018 23:17:22 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sat Jan 27 23:17:22 UTC 2018

 Modified Files:
 	pkgsrc/pkgtools/pkg_chk: Makefile

 Log Message:
 pkg_chk: Replace PKG_SYSCONFDIR.

 From Vicente Chaves in PR 52955.

 Bump version.


 To generate a diff of this commit:
 cvs rdiff -u -r1.86 -r1.87 pkgsrc/pkgtools/pkg_chk/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.