Subject: Broken symlink handling - affects sun-jdk14
To: None <tech-pkg@netbsd.org>
From: David Brownlee <abs@absd.org>
List: tech-pkg
Date: 07/06/2004 12:48:30
sun-jdk14 creates a symlink of 'jre' to '.', however when making
a binary package this is mangled to 'java/sun-1.4', breaking the
package. Any thoughts on how to best handle this?
# ls -l /usr/pkg/java/sun-1.4/
total 11440
-rw-rw-r-- 1 root wheel 10 Jul 6 12:30 .pkgsrc
drwxr-xr-x 2 root wheel 512 Jul 6 12:30 .systemPrefs
-r--r--r-- 1 root wheel 1098 Jul 6 12:30 CHANGES
-r--r--r-- 1 root wheel 4431 Jul 6 12:30 COPYRIGHT
-rw-rw-r-- 1 root wheel 446 Jul 6 12:30 ControlPanel.html
-r--r--r-- 1 root wheel 14337 Jul 6 12:30 LICENSE
-r--r--r-- 1 root wheel 10088 Jul 6 12:30 README
-r--r--r-- 1 root wheel 16251 Jul 6 12:36 README.html
-r--r--r-- 1 root wheel 10129 Jul 6 12:36 THIRDPARTYLICENSEREADME.txt
-r--r--r-- 1 root wheel 969 Jul 6 12:30 Welcome.html
drwxrwxr-x 2 root wheel 1024 Jul 6 12:36 bin
drwxrwxr-x 6 root wheel 512 Jul 6 12:36 demo
drwxrwxr-x 3 root wheel 512 Jul 6 12:36 include
drwxrwxr-x 3 root wheel 512 Jul 6 12:30 javaws
lrwxrwxr-x 1 root wheel 1 Jul 6 12:36 jre -> .
drwxrwxr-x 13 root wheel 2560 Jul 6 12:36 lib
drwxrwxr-x 4 root wheel 512 Jul 6 12:30 man
drwxrwxr-x 4 root wheel 512 Jul 6 12:30 plugin
-rw-rw-r-- 1 root wheel 11537912 Jul 6 12:36 src.zip
# pkg_delete sun-jdk14
# pkg_add /pkgsrc/packages/NetBSD-2.0_BETA-i386/All/sun-jdk14-2.5.tgz
# ls -l /usr/pkg/java/sun-1.4/
total 11440
-rw-rw-r-- 1 root wheel 10 Jul 6 12:30 .pkgsrc
drwxr-xr-x 2 root wheel 512 Jul 6 12:30 .systemPrefs
-r--r--r-- 1 root wheel 1098 Jul 6 12:30 CHANGES
-r--r--r-- 1 root wheel 4431 Jul 6 12:30 COPYRIGHT
-rw-rw-r-- 1 root wheel 446 Jul 6 12:30 ControlPanel.html
-r--r--r-- 1 root wheel 14337 Jul 6 12:30 LICENSE
-r--r--r-- 1 root wheel 10088 Jul 6 12:30 README
-r--r--r-- 1 root wheel 16251 Jul 6 12:36 README.html
-r--r--r-- 1 root wheel 10129 Jul 6 12:36 THIRDPARTYLICENSEREADME.txt
-r--r--r-- 1 root wheel 969 Jul 6 12:30 Welcome.html
drwxrwxr-x 2 root wheel 1024 Jul 6 12:45 bin
drwxrwxr-x 6 root wheel 512 Jul 6 12:45 demo
drwxrwxr-x 3 root wheel 512 Jul 6 12:45 include
drwxrwxr-x 3 root wheel 512 Jul 6 12:30 javaws
lrwxrwxr-x 1 root wheel 12 Jul 6 12:45 jre -> java/sun-1.4
drwxrwxr-x 13 root wheel 2560 Jul 6 12:45 lib
drwxrwxr-x 4 root wheel 512 Jul 6 12:30 man
drwxrwxr-x 4 root wheel 512 Jul 6 12:30 plugin
-rw-rw-r-- 1 root wheel 11537912 Jul 6 12:36 src.zip
--
David Brownlee -- abs@absd.org