Subject: pkg/20851: pkg_add fails when using symlink to package
To: None <gnats-bugs@gnats.netbsd.org>
From: None <franklin@elfie.org>
List: netbsd-bugs
Date: 03/23/2003 01:59:13
>Number: 20851
>Category: pkg
>Synopsis: pkg_add can't handle symlinks?!
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 22 23:02:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: John Franklin
>Release: NetBSD 1.6.1 RC2
>Organization:
John Franklin
franklin@elfie.org
ICBM: 35°43'56"N 78°53'27"W
>Environment:
System: NetBSD deathmitten 1.6P NetBSD 1.6P (DM.ACPI) #0: Wed Feb 26 09:30:42 EST 2003 franklin@deathmitten:/usr/src2/sys/arch/i386/compile/DM.ACPI i386
Architecture: i386
Machine: i386
>Description:
When building a handful of packages locally, all the actual files go
into the All directory, and symlinks are generated in other directories
like "x11" or "archivers".
When trying to run pkg_add on one of the symlinks, pkg_add reports no
pkg found.
>How-To-Repeat:
deathmitten# ls
Xaw3d-1.5.tgz gnome-utils-1.4.1.2.tgz
Xft2-2.1nb3.tgz gtk+-1.2.10nb3.tgz
aalib-x11-1.4.0.4nb2.tgz gtk2+-2.2.1.tgz
afterstep-1.8.11nb1.tgz rep-gtk-0.15nb2.tgz
asclock-1.0.tgz sawfish-1.2.tgz
ee-0.3.12nb3.tgz sawfish-replibs-1.2.tgz
gdm-2.2.0nb2.tgz vnc-3.3.3.2nb1.tgz
gnome-applets-1.4.0.4nb3.tgz vncviewer-3.3.3.2nb1.tgz
gnome-core-1.4.2nb2.tgz x11-links-0.12.tgz
gnome-libs-1.4.1.4nb3.tgz xp-1.2b10.tgz
gnome-pim-1.4.6.tgz xpenguins-2.1.tgz
gnome-users-guide-1.2nb1.tgz xv-3.10anb4.tgz
deathmitten# pkg_add xv-3.10anb4.tgz
pkg_add: no pkg found for 'xv-3.10anb4.tgz', sorry.
deathmitten# pwd
/usr/src/pkgsrc/packages/x11
deathmitten# pkg_add xv-3.10anb4.tgz
pkg_add: no pkg found for 'xv-3.10anb4.tgz', sorry.
deathmitten# pkg_add xv-3.10anb4
pkg_add: no pkg found for 'xv-3.10anb4', sorry.
deathmitten# file xv-3.10anb4.tgz
xv-3.10anb4.tgz: symbolic link to ../All/xv-3.10anb4.tgz
deathmitten# ls ../All/xv-3.10anb4.tgz
../All/xv-3.10anb4.tgz
deathmitten# file ../All/xv-3.10anb4.tgz
../All/xv-3.10anb4.tgz: gzip compressed data, from Unix
deathmitten# pkg_add ../All/xv-3.10anb4.tgz
lib/X11/app-defaults:
type (dir, link)
lib/X11/fs:
type (dir, link)
lib/X11/lbxproxy:
type (dir, link)
lib/X11/proxymngr:
type (dir, link)
lib/X11/rstart:
type (dir, link)
lib/X11/twm:
type (dir, link)
lib/X11/xdm:
type (dir, link)
lib/X11/xinit:
type (dir, link)
lib/X11/xsm:
type (dir, link)
lib/X11/xserver:
type (dir, link)
missing: ./lib/X11/rstart/commands (not created: File exists)
missing: ./lib/X11/rstart/commands/x11r6 (not created: File exists)
missing: ./lib/X11/rstart/contexts (not created: File exists)
missing: ./share/locale/bs (created)
missing: ./share/locale/bs/LC_MESSAGES (created)
deathmitten# pwd
/usr/src/pkgsrc/packages/x11
deathmitten# mount
/dev/wd0a on / type ffs (local)
/dev/wd0e on /var type ffs (local)
/dev/wd0f on /usr type ffs (local)
mfs:110 on /tmp type mfs (synchronous, local)
maus:/home on /home type nfs
maus:/usr/src2 on /usr/src type nfs
maus:/usr/src/pkgsrc on /usr/src/pkgsrc type nfs
procfs on /proc type procfs (local)
kernfs on /kern type kernfs (local)
deathmitten#
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: