NetBSD Problem Report #36338
From martin@duskware.de Tue May 15 07:52:25 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 24A2E63B400
for <gnats-bugs@gnats.netbsd.org>; Tue, 15 May 2007 07:52:25 +0000 (UTC)
Message-Id: <20070515012156.B9C1B63B400@narn.NetBSD.org>
Date: Tue, 15 May 2007 01:21:56 +0000 (UTC)
From: h-masuda@ootani.nagata.kobe.jp
Reply-To: h-masuda@ootani.nagata.kobe.jp
To: netbsd-bugs-owner@NetBSD.org
Subject: pkg_chk contains "@ID@" after install
X-Send-Pr-Version: www-1.0
>Number: 36338
>Category: pkg
>Synopsis: pkg_chk contains "@ID@" after install
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: tron
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 15 07:55:01 +0000 2007
>Closed-Date: Tue May 15 15:14:20 +0000 2007
>Last-Modified: Tue May 15 15:14:20 +0000 2007
>Originator: MASUDA Hideo
>Release:
>Organization:
Personal
>Environment:
>Description:
pkg_chk (files/pkg_chk.sh) has some @VAR@.
In the do-build stage, all @VAR@ are replaced.
But @ID@ (at line 692) is not replaced, so pkg_chk says
# pkg_chk -u -b -n
@ID@: not found
>How-To-Repeat:
cd $PKGSRCDIR/pkgtools/pkg_chk; make install
rm -r $PKGSRCDIR/pkgtools/pkg_chk
pkg_chk -u -n
>Fix:
Applying the following patch will be happy.
# cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /home/fs/NetBSD/cvsroot/pkgsrc/pkgtools/pkg_chk/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile 24 Apr 2007 22:16:38 -0000 1.52
+++ Makefile 15 May 2007 01:11:20 -0000
@@ -32,6 +32,7 @@
${SED} -e 's#@AWK@#${AWK}#g' \
-e 's#@GREP@#${GREP}#g' \
-e 's#@GZIP_CMD@#gzip#g' \
+ -e 's#@ID@#${ID}#g' \
-e 's#@MAKE@#${MAKE}#g' \
-e 's#@MAKECONF@#${TMP_MAKECONF}#g' \
-e 's#@PKG_ADD@#${PKG_ADD}#g' \
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->tron
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Tue, 15 May 2007 11:52:39 +0000
Responsible-Changed-Why:
I'll handle this PR.
State-Changed-From-To: open->analyzed
State-Changed-By: tron@netbsd.org
State-Changed-When: Tue, 15 May 2007 12:12:04 +0000
State-Changed-Why:
The fix is correct. I'll commit it as soon as the CVS server is up again.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36338 CVS commit: pkgsrc/pkgtools/pkg_chk
Date: Tue, 15 May 2007 14:48:44 +0000 (UTC)
Module Name: pkgsrc
Committed By: tron
Date: Tue May 15 14:48:43 UTC 2007
Modified Files:
pkgsrc/pkgtools/pkg_chk: Makefile
Log Message:
Actually substitute "@ID" with the path to id(1) while creating the
shell script. Bump package revision because of this fix.
Patch submitted by MASUDA Hideo in PR pkg/36338.
To generate a diff of this commit:
cvs rdiff -r1.52 -r1.53 pkgsrc/pkgtools/pkg_chk/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: analyzed->closed
State-Changed-By: tron@netbsd.org
State-Changed-When: Tue, 15 May 2007 15:14:20 +0000
State-Changed-Why:
I've committed your fix. Thanks a lot.
>Unformatted:
(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.