Re: /lib symlinks problem?

From: Ruslan Ermilov (ru_at_FreeBSD.org)
Date: 08/31/03

  • Next message: Soren Schmidt: "Re: ATAng not detecting drives"
    Date: Sun, 31 Aug 2003 17:52:24 +0300
    To: Alexander Leidinger <Alexander@Leidinger.net>
    
    
    
    

    On Sun, Aug 31, 2003 at 02:07:42PM +0200, Alexander Leidinger wrote:
    > On Sat, 30 Aug 2003 21:56:53 +0300
    > Ruslan Ermilov <ru@FreeBSD.org> wrote:
    >
    > > > I think a workaround would be to use absolute symlinks (at least as an
    > > > option).
    > > >
    > > I might be missing an obvious, but I just don't see a reason
    > > why we should use relative linking here: we should just link
    > > to where we really install. With the attached patch, I get:
    > >
    > > $ make -n install -DNOMAN DESTDIR=/foo
    > > install -C -o root -g wheel -m 444 libalias.a /foo/usr/lib
    > > install -s -o root -g wheel -m 444 libalias.so.4 /foo/lib
    > > ln -fs libalias.so.4 /foo/lib/libalias.so
    > > ln -fs /foo/lib/libalias.so.4 /foo/usr/lib/libalias.so
    >
    > Don't you have to remove the first ${DESTDIR} to make this work in the
    > "put a harddisk into a running system and install a system via
    > installworld & distribute" case?
    >
    Doh, you're of course right! An updated patch is attached.

    Now it looks like this:

    install -C -o root -g wheel -m 444 libalias.a /foo/usr/lib
    install -s -o root -g wheel -m 444 libalias.so.4 /foo/lib
    ln -fs libalias.so.4 /foo/lib/libalias.so
    ln -fs /lib/libalias.so.4 /foo/usr/lib/libalias.so

    This is also consistent with how we handle SYMLINKS:

    # make -f bsd.prog.mk BINDIR=/bin SYMLINKS='${BINDIR}/file1 ${BINDIR}/file2' install DESTDIR=/foo
    /foo/bin/file2 -> /bin/file1
    # ls -l /foo/bin
    total 0
    lrwxr-xr-x 1 root wheel 10 Aug 31 17:44 file2 -> /bin/file1

    Cheers,

    -- 
    Ruslan Ermilov		Sysadmin and DBA,
    ru@sunbay.com		Sunbay Software Ltd,
    ru@FreeBSD.org		FreeBSD committer
    
    

    
    




  • Next message: Soren Schmidt: "Re: ATAng not detecting drives"

    Relevant Pages

    • Re: STINKY VENDORS, STINKY MFGS,STINKY PRODUCTS,STINKY GROUP
      ... There's a reason I created that certificate. ... "Certificate Maker" on an Apple Mac SE running System 6.x. ... modern program. ...
      (alt.internet.wireless)
    • Re: System frezee without a reason?
      ... That's in the lines of what better x86 server already have, ... something like binary error log on Alpha running tru64, ... today) from the running system. ... reason might be that x86 systems were made to run windoze and it ...
      (comp.os.linux.misc)
    • Re: How can I get the minimum time unit in vc?
      ... And is this quite dependent on the running system or platform? ... The reason is simply: Windows is not a realtime OS, ...
      (microsoft.public.vc.debugger)
    • XP start error
      ... system32/hal.dll is missing or corrupted...please reinstall this file ... Where do I get this and how do I install just one file to the system if I ...
      (microsoft.public.windowsxp.general)
    • Re: XP start error
      ... system32/hal.dll is missing or corrupted...please reinstall this file ... Where do I get this and how do I install just one file to the system if I ...
      (microsoft.public.windowsxp.general)