NetBSD Problem Report #33716
From www@NetBSD.org Tue Jun 13 10:14:09 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id 9D17763B882; Tue, 13 Jun 2006 10:14:09 +0000 (UTC)
Message-Id: <20060613101409.9D17763B882@narn.NetBSD.org>
Date: Tue, 13 Jun 2006 10:14:09 +0000 (UTC)
From: harenberg@physik.uni-wuppertal.de
Reply-To: harenberg@physik.uni-wuppertal.de
To: gnats-bugs@NetBSD.org
Subject: pkg_install does not "update"
X-Send-Pr-Version: www-1.0
>Number: 33716
>Category: pkg
>Synopsis: pkg_install does not "update"
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 13 10:15:00 +0000 2006
>Closed-Date: Tue Jun 13 14:01:56 +0000 2006
>Last-Modified: Tue Jun 13 14:01:56 +0000 2006
>Originator: Torsten Harenberg
>Release: 3.0_STABLE
>Organization:
University of Wuppertal
>Environment:
NetBSD wpdu2.physik.uni-wuppertal.de 3.0_STABLE NetBSD 3.0_STABLE (wpdu2) #0: Fri May 5 11:53:24 CEST 2006 root@wpdu2.physik.uni-wuppertal.de:/usr/alphaobj/sys/arch/alpha/compile/wpdu2 alpha
>Description:
make update
or
make
make update
does not work on pkg_install:
12:09] root@wpdu2:/usr/pkgsrc/pkgtools/pkg_install $ make update
/usr/bin/make
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Installing dependencies for pkg_install-20060424
===> Overriding tools for pkg_install-20060424
===> Extracting for pkg_install-20060424
===> Patching for pkg_install-20060424
[...]
cc -DHAVE_CONFIG_H -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I. -I../lib -O2 -mieee -c show.c
cc -L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -Wl,-R/usr/pkg/lib -L../lib -o pkg_info main.o perform.o show.o -linstall -ltermcap -lnbcompat
=> Unwrapping files-to-be-installed.
/usr/bin/make deinstall UPDATE_RUNNING=YES
===> Deinstalling for pkg_install-20060424
Running /usr/pkgsrc/pkgtools/pkg_install/work/pkg_install-20060424/delete/pkg_delete pkg_install-20060405
Package `pkg_install-20060405' is marked as not for deletion
/usr/bin/make install
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Overriding tools for pkg_install-20060424
===> Installing for pkg_install-20060424
ERROR: pkg_install-20060405 is already installed - perhaps an older version?
ERROR: If so, you may use either of:
ERROR: - "pkg_delete pkg_install-20060405" and "/usr/bin/make reinstall"
ERROR: to upgrade properly
ERROR: - "/usr/bin/make update" to rebuild the package and all
ERROR: of its dependencies
ERROR: - "/usr/bin/make replace" to replace only the package without
ERROR: re-linking dependencies, risking various problems.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
[12:13] root@wpdu2:/usr/pkgsrc/pkgtools/pkg_install $
(tried to make clean, make, make update, didn't help. Also cvs update'd twice to be sure that was not an intermediate file change. Then tried to rm -rf /usr/pkgsrc and cvs co from scratch.)
>How-To-Repeat:
update pkgsrc and try to upgrade the pkg_install package
>Fix:
>Release-Note:
>Audit-Trail:
From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/33716 CVS commit: pkgsrc/pkgtools/pkg_install
Date: Tue, 13 Jun 2006 13:57:10 +0000 (UTC)
Module Name: pkgsrc
Committed By: jlam
Date: Tue Jun 13 13:57:10 UTC 2006
Modified Files:
pkgsrc/pkgtools/pkg_install: Makefile
Log Message:
This package overrides the "update" target (is that wise?) and runs
its own set of commands. One of these invoked "deinstall" with
UPDATE_RUNNING set to "YES"; however, UPDATE_RUNNING was made into a
pkgsrc private variable a little while ago. Fix "update" by setting
_UPDATE_RUNNING instead. This fixes PR pkg/33716.
To generate a diff of this commit:
cvs rdiff -r1.126 -r1.127 pkgsrc/pkgtools/pkg_install/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Tue, 13 Jun 2006 14:01:56 +0000
State-Changed-Why:
I have committed a fix for this problem on pkgsrc HEAD. Thanks for the PR!
>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.