[Scratchbox-users] Crocodile patch: configurable rootcmd for pbuilder-satisfydepends

Matt Hoosier matt.hoosier at gmail.com
Sun Jun 24 20:50:51 EEST 2007


Hi,

I've found that occasionally pbuilder-satisfydepends will fail on its
"apt-get -s" operations with odd fakeroot errors such as being unable
to connect to whatever TCP address is used behind the scenes. This
persists across resets of the build target, removals of the build
target, and reinstallations of all of Scratchbox, so I think this
problem may be a general-interest one (not particular to only my
installation).

In the head version of crocodile, pbuilder-satisfydepends is invoked
inside one massive fakeroot session ("fakeroot pbuilder-satisfydepends
--scratchbox ..."). When I remove the overarching fakeroot session
from the front of that and instead allow pbuilder-satisfydepends to
just run small fakeroot sessions directly around its APT operations,
the strange fakeroot-related errors disappear.

The attached patch adds a new option ("--rootcmd") to
pbuilder-satisfydepends. This is prepended (similar to any CHROOTEXEC
use) to any apt-get operations. For convenience, whenever the
"--scratchbox" option is specified, the default value of --rootcmd is
assumed to be "fakeroot".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crocodile_pbuilder_rootcmd.patch
Type: application/octet-stream
Size: 6319 bytes
Desc: not available
Url : http://lists.scratchbox.org/pipermail/scratchbox-users/attachments/20070624/fefe1dab/crocodile_pbuilder_rootcmd.obj


More information about the Scratchbox-users mailing list