[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X11R6 -> . symlink



On Sat, Dec 22, 2001 at 11:02:30AM -0800, Jeff Bailey wrote:
> When I putting together the libio packages, should I also set an X11R6
> -> . symlink?  I'm coming very close to where I will need to build X.
> (Hurd depends on tetex-bin, tetex-bin depends on X.  Silly things like
> that...)

If you put that symlink in, the X packages will not install (see bug #114625
that I filed against xfree86-common).

I investigated a bit and found that the problem stems from the
xfree86-common package containing the symlinks
/usr/lib/X11 -> /usr/X11R6/lib/X11,
/usr/include/X11 -> /usr/X11R6/include/X11 and
/usr/bin/X11 -> /usr/X11R6/bin/X11.
If X11R6 is a symlink to . then those symlinks cannot be created (as the
hey intended to point to actually exist at those paths instead).  dpkg
doesn't seem to care about that (no errors), but the package's postinst
script chokes when it finds that they are not links.

I tried modifying the postinst to use readlink(1) with the -f flag to check
that the locations were the same, but it didn't behave properly as the
pathnames returned by one of the shell functions are relative paths.

So I tried a more significant hack and changed the package control files to
not include the links, but rather to create them in the postinst if it
needed to.  I extended this hack to all the other packages that build from
the XFree86 source (for consistancy, though I think xutils would have choked
in postinst otherwise).

I've not been able to test my changes, as I do not have enough disk space to
build X (a few packages built before I ran out and they seemed to work fine,
but I've not done anything thorough).

I put my best patch (against the XFree86 4.1.0-9 so maybe a little out of
date) up at http://www.blckknght.org/xfree86-hack.diff if anyone wants to
test it (or use it as a base for their own modifications).

-- 
Steven Barker                                      scbarker@uiuc.edu
  In English, every word can be verbed.  Would that it were so in our
  programming languages.
Get my GnuPG public key at: http://www.blckknght.org/pubkey.asc
Fingerprint: 272A 3EC8 52CE F22B F745  775E 5292 F743 EBD5 936B



Reply to: