On Saturday, 22 October 2005 00:36, Thomas Bushnell BSG wrote: > Isaac Clerencia <[EMAIL PROTECTED]> writes: > > On Friday, 21 October 2005 07:26, Thomas Bushnell BSG wrote: > >> I'm trying to solve bug 304932/334877. > >> > >> I can reproduce the build failure using pbuilder, but not when I build > >> on my own system directly. > >> > >> I would like to do the pbuilder build and then examine the failing > >> filesystem, but pbuilder always deletes the build directory, and the > >> manual gives no clear indication of how to prevent this. --debug says > >> that it only avoids cleanup in update and create. > > > > Use pbuilder hooks for that, they allow great flexibility, for example, > > examining the filesystem after failing or using ccache to speed up build > > time. > > Well, this build takes a long time (at least 45 minutes from start to > failure). I'm getting tired of trying over and over again; it took me > about four hours of compiling to prove certainly that Blars suggestion > wouldn't work. I've an ugly hack to get ccache working inside the pbuilder, that saves lots of build time: [EMAIL PROTECTED]:~/debian/pbuilder-hooks$ cat A01sh #!/bin/sh echo "Setting up ccache" apt-get install ccache cd /usr/lib/ccache for c in * do ln -s /usr/bin/ccache /usr/sbin/$c done ln -s /var/cache/pbuilder/ccache /root/.ccache
and I run pbuilder as: pdebuild -- --bindmounts /var/cache/pbuilder/ccache --hookdir ~/debian/pbuilder-hooks/ > which did not succeed; it ran the script, but apparently pbuilder > doesn't pass stdin/stdout down to the scripts. Well, I tried that and didn't managed to get it working so I just put there a sleep 9999999 so I can chroot into the pbuilder build dir and debug the problem :) -- Isaac Clerencia at Warp Networks, http://www.warp.es Work: <[EMAIL PROTECTED]> | Debian: <[EMAIL PROTECTED]>
pgpYceYncWvMD.pgp
Description: PGP signature