Bug#565436: pbuilder: new $HOME value broke my hook scripts

Junichi Uekawa dancer at netfort.gr.jp
Sat Jan 23 04:38:10 UTC 2010


At Fri, 15 Jan 2010 21:15:14 +0100,
Loïc Minier wrote:
> 
> severity 565436 wishlist
> tag 565436 + patch
> retitle 565436 PATH to Debian source in env var
> stop
> 
>         Hi
> 
> On Fri, Jan 15, 2010, Francesco Poli (t1000) wrote:
> > Would it be possible to add a new environment variable to identify the
> > debianized source directory?
> > 
> > I think that adding the following simple line in pdebuild-internal just
> > before    export HOME=$(readlink -f $(pwd)/../) 
> > would suffice:
> > 
> >   export DEBSOURCEDIR=$(readlink -f $(pwd))
> > 
> > maybe with a comment that explains that this is useful for
> > hook scripts.
> > 
> > I think this would be harmless and very useful for many hook
> > scripts written by users in the future.
> > Please add this line as soon as possible, if you agree.
> 
>  Sure; that seems fine; not sure about the actual name, but that would
>  work.
> 
>  The other hooks around do things like:
>     cd /tmp/buildd/*/debian/..
> 
>  Which is probably a good workaround for your hooks for now.

We probably need to export a env var to the source tree, since that
doesn't always work, and relying on that is a bit flaky.







More information about the Pbuilder-maint mailing list