[Piuparts-devel] Missing depends on lsb-base, need your help

Andreas Beckmann anbe at debian.org
Fri Oct 14 10:40:30 UTC 2016

On 2016-10-14 12:08, Santiago Vila wrote:
> So: What's the package enabling this policy-rc.d thing?

both pbuilder and sbuild create that:

$ grep -r policy-rc.d pbuilder-0.226.1/ sbuild-0.71.0/
pbuilder-0.226.1/pbuilder-modules:# Also create a policy-rc.d script if it doesn't already exist.
pbuilder-0.226.1/pbuilder-modules:    if [ -f "$BUILDPLACE/usr/sbin/policy-rc.d" ]; then
pbuilder-0.226.1/pbuilder-modules:        log.i "policy-rc.d already exists"
pbuilder-0.226.1/pbuilder-modules:        log.i "installing dummy policy-rc.d"
pbuilder-0.226.1/pbuilder-modules:" >  "$BUILDPLACE/usr/sbin/policy-rc.d"
pbuilder-0.226.1/pbuilder-modules:        chmod a+x "$BUILDPLACE/usr/sbin/policy-rc.d"
sbuild-0.71.0/bin/sbuild-createchroot:# Set up minimal /usr/sbin/policy-rc.d.
sbuild-0.71.0/bin/sbuild-createchroot:my $policy_rc_d = "${target}/usr/sbin/policy-rc.d";
sbuild-0.71.0/bin/sbuild-createchroot:# Display /usr/sbin/policy-rc.d.
sbuild-0.71.0/bin/sbuild-createchroot:print "I: Configured /usr/sbin/policy-rc.d:\n";
sbuild-0.71.0/bin/create-chroot:    echo "I: Creating a policy-rc.d to prevent daemon startups..."
sbuild-0.71.0/bin/create-chroot:    sudo mv "${TEMPFILE}" "${TARGET}/usr/sbin/policy-rc.d"
sbuild-0.71.0/bin/create-chroot:    sudo chown root: "${TARGET}/usr/sbin/policy-rc.d"
sbuild-0.71.0/bin/create-chroot:    sudo chmod 0755 "${TARGET}/usr/sbin/policy-rc.d"

I think build-essential is fine as it is now. Installing it on a "regular"
system shouldn't break that. Creating a special package build environment
should enable policy-rc.d (and the commonly used tools already do that).


More information about the Piuparts-devel mailing list