[prev in list] [next in list] [prev in thread] [next in thread]
List: debian-devel
Subject: Re: Prevent pdebuild from removing temporary build dir
From: Pierre Habouzit <madcoder () debian ! org>
Date: 2007-07-31 21:27:50
Message-ID: 20070731212750.GB4644 () artemis ! corp
[Download RAW message or body]
On Tue, Jul 31, 2007 at 02:17:23PM -0700, Jérémie Corbier wrote:
> On Tue, Jul 31, 2007 at 10:53:10PM +0200, Andreas Tille wrote:
> > I would like to keep pbuilder the temporary build directory to
> > be able to inspect the library and what went different compared
> > to a build using dbuild. Unfortunately I did not found a
> > command line option to keep the temporary build dir.
> >
> > Any hints?
>
> How about using pbuilder hooks? Something like $hookdir/C01_shell:
>
> --- 8< ---
> #!/bin/sh
>
> cd /tmp/buildd/*/debian/..
> /bin/sh < /dev/tty > /dev/tty
> --- 8< ---
you may even want to have some usable env, and enhance it that way:
┌─(23:26)────
â””[artemis] cat .pbuilder/C10_launch_shell
#!/bin/sh
# invoke shell if build fails.
echo "I: installing necessary tools to work in the damn chroot"
apt-get install -y --force-yes vim zsh &>/dev/null
dpkg --purge nvi
cd /tmp/buildd/*/debian/..
/bin/zsh < /dev/tty > /dev/tty
--
·O · Pierre Habouzit
· ·O madcoder@debian.org
OOO http://www.madism.org
[Attachment #3 (application/pgp-signature)]
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic