[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debhelper-compat 13 now have a writable "$HOME"



Hello,

On Thu 10 Aug 2023 at 11:51am -07, Manphiz wrote:

> And I forgot to provide more context on having dh-elpa provide a "$HOME"
> (not necessarily writable), so here it is: while practicing elpa-ifying
> auctex, I found that it tried to access "$HOME" even though native
> compilation was turned off by default in dh-elpa.  Turns out it sets the
> "default-directory" to "$HOME" to cope with an evince issue[1].  So
> during byte-compiling it will try to set $CWD to $HOME, but it will not
> actually write anything (so no Debian Policy violation).  With compat 13
> it passes the dh_auto_build phase but fails in dh_elpa_test as the
> latter doesn't set up $HOME in the same way.
>
> Though not a common practice (yet), it seems having a usable $HOME is
> expected for some field usage, and providing a similar set up in dh-elpa
> may help in such cases.
>
> [1] https://git.savannah.gnu.org/cgit/auctex.git/commit/?id=fa309c9559f0a6dc3428daca6896f615e7030521

Generally you can set HOME to /nonexistent for builds.

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: