Subject: Re: UNPRIVED & DESTDIR
To: David Laight <david@l8s.co.uk>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-toolchain
Date: 05/13/2002 13:33:12
On Mon, 13 May 2002, David Laight wrote:

: > : (For what it's worth, rather than writing a script to parse the
: > : METALOG, you can use mtree(8) -D with a little bit of awk magic to
: > : replace the majority of what you've done.)
: >
: > Wouldn't "pax -r -w -pe -M ..." do the job too?  :)
:
: No because:
:
: 1) the files in DESTDIR for an UNPRIVED build do not have the
:    permissions applied (because you wouldn't be able to overwrite them,
:    and some need to be suid root, not suid build-user).

Er, you'd "pax -r -w -pe" from $DESTDIR to /.  There's a copy involved.
This copy (done as root, of course), if taking into account the metalog,
should produce proper permissions on the binaries installed into /.

: 2) the filenames in METALOG are all preceeded by the absolute
:    pathname of DESTDIR.

Sed script.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/