Re: Is there a way to preserve pbuilder chroot environment?
On Fri, Feb 28, 2014 at 1:42 PM, Barry Warsaw <barry@python.org> wrote:
> On Feb 28, 2014, at 10:52 AM, Mikhail Morfikov wrote:
>
>>I'm new to building packages by using pbuilder tool, and I have to build
>>a package multiple times before it builds successfully, or in the way
>>I prefer.
>
> This is one of the reasons why I prefer to use sbuild for most of my local
> builds. You can tell it to preserve the chroot when the build fails, and it's
> easy to go in, inspect the build environment, and tweak your package into
> building. Occasionally, it's even useful to preserve the chroot when the
> package build succeeds, just to poke around.
Pbuilder also supports that using hooks, e.g.:
# ln -s /usr/share/doc/pbuilder/examples/C10shell
/var/cache/pbuilder/hooks/C10shell
...and the next time your build fails, pbuilder will dump you in the
chroot with a shell.
Regards,
Vincent
Reply to: