From owner-freebsd-current@FreeBSD.ORG Wed Nov 26 08:25:28 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9E6E16A4CE for ; Wed, 26 Nov 2003 08:25:28 -0800 (PST) Received: from praetor.linc-it.com (adsl-068-157-070-217.sip.jan.bellsouth.net [68.157.70.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A07043FE1 for ; Wed, 26 Nov 2003 08:25:27 -0800 (PST) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-19-162-175.jan.bellsouth.net [68.19.162.175]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by praetor.linc-it.com (Postfix) with ESMTP id AAFBD152FC; Wed, 26 Nov 2003 10:25:26 -0600 (CST) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 0DE0120F2A; Wed, 26 Nov 2003 10:25:25 -0600 (CST) Date: Wed, 26 Nov 2003 10:25:24 -0600 From: "Matthew D. Fuller" To: slave-mike Message-ID: <20031126162524.GP12248@over-yonder.net> References: <20031123012222.GB11523@dragon.nuxi.com> <20031123042635.GB677@saboteur.dek.spc.org> <3FC16644.7070005@acm.org> <20031124114006.GA60761@dragon.nuxi.com> <20031124210748.GG15294@wombat.localnet> <20031124224144.GC67578@dragon.nuxi.com> <20031125160934.GH12248@over-yonder.net> <3FC3AAAE.70508@rv1.dynip.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FC3AAAE.70508@rv1.dynip.com> User-Agent: Mutt/1.4.1i-fullermd.1 X-Editor: vi X-OS: FreeBSD cc: freebsd-current@freebsd.org cc: Tim Kientzle Subject: Re: HEADS UP: /bin and /sbin are now dynamically linked X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 16:25:28 -0000 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: @echo '==> Getting needed libraries' -@(cd ${SRCBASE}/bin && ldd ${BINFILES}) > liblist.raw -@(cd ${SRCBASE}/sbin && ldd ${SBINFILES}) >> liblist.raw [ ... similar stuff for other dirs ... ] -@grep -v '^[a-z]' liblist.raw | awk '{print $$3}' | sort | uniq \ | sed 's,^${SRCBASE},,' | sed 's,^/,,' > liblist.cooked -@echo >> liblist.cooked @tar -cf - -C ${SRCBASE} `cat liblist.cooked` \ | tar -xvpf - -C ${DSTBASE} -@(cd ${SRCBASE}/usr/lib && install -c -m 444 pam_* ${DSTBASE}/usr/lib) @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@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"