Re: HEADS UP: /bin and /sbin are now dynamically linked

From: Matthew D. Fuller <fullermd_at_over-yonder.net>
Date: Wed, 26 Nov 2003 10:25:24 -0600
On Tue, Nov 25, 2003 at 02:17:02PM -0500 I heard the voice of
slave-mike, and lo! it spake thus:
> Would it be possible to get a copy of this script?
> 
> Please! :)

Oh, it's pretty simplistic.  It's actually on a box that's in the closet
right now, but I think this is an older working version:
---
liblist:
    _at_echo '==> Getting needed libraries'
    -_at_(cd ${SRCBASE}/bin && ldd ${BINFILES}) > liblist.raw
    -_at_(cd ${SRCBASE}/sbin && ldd ${SBINFILES}) >> liblist.raw
[ ... similar stuff for other dirs ... ]
    -_at_grep -v '^[a-z]' liblist.raw | awk '{print $$3}' | sort | uniq \
        | sed 's,^${SRCBASE},,' | sed 's,^/,,' > liblist.cooked
    -_at_echo >> liblist.cooked
    _at_tar -cf - -C ${SRCBASE} `cat liblist.cooked` \
        | tar -xvpf - -C ${DSTBASE}
    -_at_(cd ${SRCBASE}/usr/lib && install -c -m 444 pam_* ${DSTBASE}/usr/lib)
    _at_echo '<== Done libraries'
---

You'll note that I already manually slipped in the pam_* .so's, which is
one of those additional non-obvious "extra files" things that Garance
mentioned in the other message.  I could probably replace the whole
transformation pipeline with a few lines of actual scripted awk(1); I
just did it all inline in the Makefile because I was lazy.

${SRCBASE} is somewhere I DESTDIR='d an installworld previously, and
${DSTBASE} becomes (as a result of a bunch of other make targets, of
which this is one of the later ones) a dir I can tar up and untar
somewhere as /.


-- 
Matthew Fuller     (MF4839)   |  fullermd_at_over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"
Received on Wed Nov 26 2003 - 07:25:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:31 UTC