Differences between revisions 6 and 7
Revision 6 as of 2008-06-24 15:50:21
Size: 1315
Editor: ?Ook
Comment: Elimiinated vocabulary link for "fake." Updated links and made them descriptive.
Revision 7 as of 2008-06-24 16:07:32
Size: 1522
Editor: ?Ook
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
 * [http://packages.debian.org/search?keywords=fakeroot&searchon=names&exact=1&suite=all&section=all Debian fakeroot package]
 * [http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/fakeroot.1.gz fakeroot manual]
 * [http://freshmeat.net/projects/fakeroot fakeroot home page]
 * [http://packages.debian.org/search?keywords=fakeroot&searchon=names&exact=1&suite=all&section=all http://packages.debian.org/search?keywords=fakeroot&searchon=names&exact=1&suite=all&section=all Debian fakeroot package]
 * [http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/fakeroot.1.gz http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/fakeroot.1.gz fakeroot manual]
 * [http://freshmeat.net/projects/fakeroot http://freshmeat.net/projects/fakeroot fakeroot home page]

Gives a fake ["root"] environment , to remove the need to become root for a ["package"] build.

fakeroot runs a command in an environment were it appears to have root privileges for file manipulation. This is useful for allowing users to create archives (tar, ar, .deb etc.) with files in them with root permissions/ownership. Without fakeroot one would have to have root privileges to create the constituent files of the archives with the correct permissions and ownership, and then pack them up, or one would have to construct the archives directly, without using the archiver

Debian

This package is intended to enable something like:

  dpkg-buildpackage -rfakeroot

i.e. to remove the need to become root for a package build. This is done by setting LD_PRELOAD to libfakeroot.so, which provides wrappers around getuid, chown, chmod, mknod, stat, and so on, thereby creating a fake root environment.

fakeroot requires SYSV IPC to operate.

See: