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

Francesco Poli frx at firenze.linux.it
Mon Jan 18 23:05:14 UTC 2010


On Fri, 15 Jan 2010 22:35:41 +0100 Francesco Poli wrote:

> On Fri, 15 Jan 2010 21:15:14 +0100 Loïc Minier wrote:
> 
> [...]
> > 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.
[...]
> Maybe something like
> 
>   cd ${HOME}/*/debian/..
> 
> could help in my case.
> 
> > 
> >  Which is probably a good workaround for your hooks for now.
> 
> I was indeed planning to use a workaround like the one described above,
> but it has a flaw: it breaks if I keep more than one debianized
> source directory inside the same parent directory
[...]

I've updated my hook scripts with a workaround similar to the one
described above (see the web page on my .signature).
They suffer from the limitation I explained: I cannot place two
debianized source directories side by side.

Loïc, did you find the time to add the DEBSOURCEDIR environment
variable?
I still think it would be very useful.


-- 
 http://www.inventati.org/frx/progs/scripts/pdebuild-hooks.html
 Need some pdebuild hook scripts?
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20100119/d9b6d0e9/attachment.pgp>


More information about the Pbuilder-maint mailing list