Subject: pkg/22784: x11-links fails to install in Solaris
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dolemite@wuli.nu>
List: netbsd-bugs
Date: 09/14/2003 13:48:18
>Number: 22784
>Category: pkg
>Synopsis: x11-links fails to install in Solaris
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 14 13:49:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Alex Newman
>Release: Solaris 2.9
>Organization:
Psi Upsilon of Troy
>Environment:
SunOS unknown 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-5_10
>Description:
/usr/bin/mkdir -p /usr/pkgsrc/pkgtools/x11-links/work/share/x11-links
/usr/bin/rm -f /usr/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.dirs
/usr/bin/cat /usr/pkgsrc/pkgtools/x11-links/files/openwin | /usr/xpg4/bin/grep -v "^#" | /usr/xpg4/bin/sed -e "s,/[^/]*$,," | /usr/bin/sort -u | while read dir; do if [ -d /usr/openwin/$dir ]; then /usr/bin/mkdir -p /usr/pkgsrc/pkgtools/x11-links/work/share/x11-links/$dir; /usr/ucb/echo "@dirrm share/x11-links/$dir" >> /usr/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.dirs; fi; done
=> Fixing buildlink references in files-to-be-installed.
( /usr/bin/cat /usr/pkgsrc/pkgtools/x11-links/PLIST; /usr/bin/sort -u /usr/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.files; /usr/bin/sort -ur /usr/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.dirs; /usr/ucb/echo "@dirrm share/x11-links"; ) > /usr/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC
sort: can't stat /usr/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.files: No such file or directory
>How-To-Repeat:
Try to install x11-links in Solaris
>Fix:
I did the nasty hack of doing what it wanted manually and removing the offending lines from the Makefile.
Here was my hack
/usr/bin/cat /usr/pkgsrc/pkgtools/x11-links/files/openwin | /usr/xpg4/bin/grep -v "^#" | /usr/bin/sort -u | while read file
do
if [ -e /usr/openwin/$file ]
then echo $file
/usr/bin/ln -fs /usr/openwin/$file /usr/pkgsrc/pkgtools/x11-links/work/share/x11-links/$file
/usr/ucb/echo "share/x11-links/$file" >> /usr/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.files
fi
done
>Release-Note:
>Audit-Trail:
>Unformatted: