Subject: Re: x11-links wrong path
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/01/2003 07:46:29
More information:

On a correct system:

$ ls -l /usr/share/x11-links/include/X11/xpm.h
lrwxrwxrwx    1 root     root           28 Nov 26 22:28
/usr/share/x11-links/include/X11/xpm.h -> /usr/X11R6/include/X11/xpm.h

On the problem system:

$ ls -l /usr/share/x11-links/include/X11/xpm.h
lrwxrwxrwx    1 root     root           35 Mar 28 07:02
/usr/share/x11-links/include/X11/xpm.h ->
../../../../X11R6/include/X11/xpm.h

By looking at the dates, I assume this is from
x11-links/Makefile Revision 1.29: "Use PAX instead of CP (Solaris 'cp'
cannot copy symlinks)".

When I installed x11-links again, I saw many lines like:

Full pathname symlink `/usr/X11R6/lib/libxkbui.a' is target of
`/usr/share/x11-links/lib/libxkbui.a' - adjusting to
`../../../X11R6/lib/libxkbui.a'


This happened to me before. Can someone look at
http://mail-index.netbsd.org/tech-pkg/2002/11/26/0024.html ?

And can anyone explain the purpose of this CheckSymlink()?

I read at http://mail-index.netbsd.org/tech-pkg/1999/01/18/0008.html that
symlinks relative to PREFIX are needed to make binary packages function.
Can anyone explain that?

(That email thread was also about building with LOCALBASE=/usr and the
same wrong symlinks.)

   Jeremy C. Reed
   http://bsd.reedmedia.net/