Subject: pkg/21263: symlinks for GNU_PROGRAM_PREFIX not checked, linking fails because file exists
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 04/22/2003 11:40:28
>Number: 21263
>Category: pkg
>Synopsis: symlinks for GNU_PROGRAM_PREFIX not checked, linking fails because file exists
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 22 18:41:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
Some packages that use GNU_PROGRAM_PREFIX also install a symlink
if needed.
But they don't check if already exists!
if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
${LN} -s ${GNU_PROGRAM_PREFIX}m4 ${PREFIX}/bin/gm4
>How-To-Repeat:
Install gm4 or gmake with empty GNU_PROGRAM_PREFIX and file
or link already exists.
>Fix:
gtar-base
patch
gm4
gmake
Maybe ln should also use -f to force; or remove first.
>Release-Note:
>Audit-Trail:
>Unformatted: