severity 627086 important tags 627086 + patch thanks
On Wed, 18 May 2011 00:15:22 +0900 YOSHINO Yoshihito wrote: [...] > pbuilder --execute copies a specified script into a chrooted environment > with name "/run", which is now a directory since initscripts 2.88dsf-13.3. > So it fails on distribution sid (and probably wheezy in the future.) Hi! I am getting the same exact error message and pdebuild refuses to build my packages... The attached patch fixes the bug for me. I hope the Debian pbuilder maintenance team can apply my patch real soon now, since this bug is probably preventing many pbuilder-managed chroot environments to be used normally. P.S.: Legal details: I think my patch is too trivial to be covered by my copyright; anyway, should it turn out to be actually copyrighted, I hereby release it under the same terms as pbuilder itself (that is to say, under the terms of the GNU General Public License, version 2 or any later version). -- http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt New GnuPG key, see the transition document! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
diff -ruN a/pbuilder b/pbuilder --- a/pbuilder 2011-04-09 01:39:36.000000000 +0200 +++ b/pbuilder 2011-05-22 22:32:39.000000000 +0200 @@ -116,11 +116,12 @@ recover_aptcache trap saveaptcache_umountproc_cleanbuildplace_trap exit sighup - RUNNAME="$BUILDPLACE/run" + RUNNAME=`mktemp $BUILDPLACE/runscript.XXXXXX` + RUNBASENAME=`basename $RUNNAME` cat "$EXECPROGRAM" > "$RUNNAME" chmod a+x "$RUNNAME" executehooks "F" - ( ${CHROOTEXEC} /run "$@" ) + ( ${CHROOTEXEC} /$RUNBASENAME "$@" ) RET=$? rm -f "$RUNNAME"
pgptX7s2v3VV2.pgp
Description: PGP signature