NetBSD Problem Report #11233

Received: (qmail 21432 invoked from network); 15 Oct 2000 04:54:19 -0000
Message-Id: <[email protected]>
Date: Sun, 15 Oct 2000 00:54:10 -0400 (EDT)
From: Laine Stump <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: make update of tk fails if /usr/pkg/bin/wish already exists
X-Send-Pr-Version: 3.95

>Number:         11233
>Category:       pkg
>Synopsis:       make update of tk fails if /usr/pkg/bin/wish already exists
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    agc
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 15 04:55:00 +0000 2000
>Closed-Date:    Mon Oct 16 15:10:10 +0000 2000
>Last-Modified:  Mon Oct 16 15:10:10 +0000 2000
>Originator:     Laine Stump
>Release:        pkgsrc/lang/tk as of Aug 30, 2000
>Organization:
V-One Corporation
>Environment:

System: NetBSD idris.laine.org 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (GENERIC-lrs) #0: Tue Oct 3 17:56:06 EDT 2000 [email protected]:/drive2/src/src/sys/arch/i386/compile/GENERIC-lrs i386


>Description:

The tk installation makes a symlink from /usr/pkg/bin/wish8.3 to
/usr/pkg/bin/wish. If there is already a symlink for wish in
/usr/pkg/bin, this command fails, causing the installation to be
incomplete. This is especially painful if the "installation" is
actually a part of "make update" when there are already several
packages dependent on tk installed - those packages end up being
removed but not re-added (or at least they don't show up in the
"pkg_info" output)

>How-To-Repeat:

On a machine that has tk 8.0.x installed from pkgsrc, make sure there
is an existing link from /usr/pkg/bin/wish8.0 to /usr/pkg/bin/wish,
then do:

   cd /usr/pkgsrc/x11/tk (or even better, cd /usr/pkgsrc/lang/tcl)
   make clean
   make update


The make will end with a bunch of "Error 3"s, and you'll find that all
dependent packages have disappeared.

Note that this isn't a problem if the previous tk package had created
the /usr/pkg/bin/wish - it only shows up if the old package didn't
create it, but there was one added by hand.

>Fix:

    add "-f" to the ln -s that is done in pkgsrc/x11/tk/Makefile

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: agc 
State-Changed-When: Mon Oct 16 08:08:26 PDT 2000 
State-Changed-Why:  
agc applied a different fix to the one suggested in the PR, 
but with a similar effect - deleting any ${PREFIX}/bin/wish 
symbolic link before the package Makefile creates a new one. 
Thanks for the PR. 


Responsible-Changed-From-To: pkg-manager->agc 
Responsible-Changed-By: agc 
Responsible-Changed-When: Mon Oct 16 08:08:26 PDT 2000 
Responsible-Changed-Why:  
agc took responsibility for this one. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.