Bug#565436: closed by Mattia Rizzolo <mattia at mapreri.org> (Re: Bug#565436: pbuilder: new $HOME value broke my hook scripts)
Francesco Poli
invernomuto at paranoici.org
Thu Oct 15 22:20:07 UTC 2015
Control: found -1 0.216
On Thu, 15 Oct 2015 14:26:55 +0000 Mattia Rizzolo wrote:
[...]
Hello Mattia,
thanks for dedicating some time to my bug report! :-)
> On Fri, Jan 15, 2010 at 07:50:51PM +0100, Francesco Poli (t1000) wrote:
> > The recent change in the $HOME value set by pdebuild-internal
> > (see commit 88e0052c7362c2c2a7841579f007ccabeae27c49 ) broke most of
> > my hook scripts, since they unfortunately rely on the fact that $HOME
> > ends with "/../"
>
> That's a crazy assumption :)
I know, but I was trying to work around the absence of an environment
variable for the debianized source directory!
>
> > Would it be possible to add a new environment variable to identify the
> > debianized source directory?
>
> Well, pbuilder does not know it.
We are _not_ talking about pbuilder, we are talking about pdebuild !
Please re-read the initial bug report !
> all pbuilder knows is where the sources are copied and the name of the
> .dsc, then everything is up to the gods.
> So, since 0.216 there is a BUILDDIR variable that is also accessible by
> hooks. From there you can most probably reach the actual sources by
>
> ${BUILDDIR}/*/debian/../
BUILDDIR may be useful for users who invoke "pbuilder build ...".
I usually invoke "pdebuild ...", so I would need you to modify
pdebuild-internal, as requested in the original bug report:
just before
export HOME=$(readlink -f $(pwd)/../)
please add
export DEBSOURCEDIR=$(readlink -f $(pwd))
maybe with a check (in case of failure) and with a comment that
explains that this is useful for hook scripts.
[...]
> There you are, if you need more please open a new bug.
I would rather reopen this bug report, since the requested feature has
not yet been implemented...
Please let me know whether anything in my reasoning is flawed.
Thanks for your time and patience.
Bye.
--
http://www.inventati.org/frx/
There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20151016/2db75763/attachment-0001.sig>
More information about the Pbuilder-maint
mailing list