LFS - DESTDIR Style
Bryan Kadzban
bryan at kadzban.is-a-geek.net
Tue Apr 1 16:16:58 MDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Sukucorp Sukucorp wrote:
> On Mon, Mar 31, 2008 at 5:12 PM, Bryan Kadzban
> <bryan at kadzban.is-a-geek.net> wrote:
>> But any kind of DESTDIR type setup would require it, if the
>> package's "make install" is run as a non-root user.
>
> fakeroot is not an absolute requirement for install-root style PM. I
> use the following wrappers to avoid using fakeroot.
>
> chgrp | chown )
> install )
> ldconfig )
Obviously no packages try to mknod during their installation then. ;-)
Does this handle e.g. fcron, where several binaries need to be setgid
fcron and/or setuid fcron? It looks like any files will end up being
setuid but owned by the non-root user that built the package here (or
owned by root, if root unpacks the package with something like tar's
- --no-same-owner flag), unless that's handled separately during the
package installation.
You are right: with enough workarounds, you don't need fakeroot. But
if you install the package into DESTDIR as root (or as a package user),
you don't need it either. ;-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH8rRZS5vET1Wea5wRAxFvAJ9rV10D8G8FBWnw28QTpLQcTFbMUgCeKaLV
/C0KcDWqvivQKm98v0S8nIs=
=k6MY
-----END PGP SIGNATURE-----
More information about the lfs-dev
mailing list