• debhelper-compat 13 now have a writable "$HOME"

    From Manphiz@21:1/5 to All on Wed Aug 9 23:30:01 2023
    Dear Emacsen maintainers,

    While practicing some Emacsen packaging and getting assistance from #debian-mentors, I noticed that with "debhelper-compat (=13)" it now
    sets up a writable $HOME[1]. With this, Emacs with native compilation
    doesn't need any specially handling during build or test anymore, at
    least in dh_auto_*. However, currently dh-elpa doesn't use the same set
    up as dh_auto_*[2] yet, so currently it will still cause failure in
    targets like dh_elpa_test. Will the team consider to follow the same convention so that $HOME becomes writable? I assume this will also make
    it possible to drop the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
    related patches.

    [1] https://salsa.debian.org/debian/debhelper/-/blob/main/lib/Debian/Debhelper/Dh_Lib.pm#L2611
    [2] https://salsa.debian.org/debian/debhelper/-/blob/main/dh_auto_build#L50

    --
    Manphiz

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmTUA+MSHG1hbnBoaXpA Z21haWwuY29tAAoJEC3pZe1jglyT2yIP/juyAbw9X+jbIKNzKQdkVW/h0vQ3zq/n 2NRYwZkB+Gf9ZnHhjf7+GZWE9GQ+ZlhB1Kus5Em7reHJwXD5ru4WIFfN3oRjBTq2 CRD02uuFjXJvugZdWqps0NmyrMDT0GEZkXXisHkqkjRifSWTngxubPd+HDaB69qr Sgc8hD14cLUDydHt7NSJxMxcs02cFc6GMcBefIaeNA2pdqjFfLREWcFHHGuNFNX3 FJhD3JVprkouzUWXkQQw569p+qj6GMujR+kdfR0hyaJiNn82lL1QFKXvIYN88O8Q HmJqvyf6DNO/LL8K1gLi5KJUdJU/gQDf3106zXAd/d78Z5oybyvj8b61tyx1QaAh z1RIrbeus9UDdQ+Lmd27PMwx8z1xEGlAavrD6D/p1kZPRJXJt3UlQSv4cM38KbT3 9uWaItylHr16Ofo3aGElK+E6RvMEBQwy9bCxSYvz625TCmAk1G4LSe7QiGCRjcvs Znqr4Gk7PEPGs1FovmLrfEfB0TvI7fRUNClXQcRkVAl/huNjPxYP4GHCJBFeceV9 aW3Hvj/WOis1jvEfKEFeB/fUh46GB1RkngWV7Ex+MG3RMvN5rM4GgPYPDMKkSgbU oShipBui7K5iGUvCShWzwFRlo31FvHHJ8og0AhDsOuqgIeVagTVcBMhMZX0aUcss
    4P0aLLS4w0en
    =WXzm
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (
  • From Sean Whitton@21:1/5 to Manphiz on Thu Aug 10 12:00:01 2023
    Hello,

    On Wed 09 Aug 2023 at 02:23pm -07, Manphiz wrote:

    While practicing some Emacsen packaging and getting assistance from #debian-mentors, I noticed that with "debhelper-compat (=13)" it now
    sets up a writable $HOME[1]. With this, Emacs with native compilation doesn't need any specially handling during build or test anymore, at
    least in dh_auto_*. However, currently dh-elpa doesn't use the same set
    up as dh_auto_*[2] yet, so currently it will still cause failure in
    targets like dh_elpa_test. Will the team consider to follow the same convention so that $HOME becomes writable? I assume this will also make
    it possible to drop the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
    related patches.

    Debian Policy requires that package builds don't attempt to write into HOME.

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmTUs0oZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQB8MD/4riaTa8HYVLsiSdi+W78ar TmxHtqS1b0m74lJA1Kbr4N/vbQEs/N78nqjif39pZMvpAm69VrxYchRd2EaTeLxA R6tKCg1bZ/G6tHSfIl9XkKE4XXGCkspt01rgW1p5eiRJL7wRM6jETtyNNvNjPIJM Bj2LnxDCHUl2/6acQ3UUL4zbIPI4x9X32BaCnTbQ1vsLmIeSjaMKMaSg4rIeIVhD XMokqgwAIMar/EZNr7rLG9GtgcCdK98YSjrwjc1ti4RLI5k6bs5WaeGturGjnRS6 SY3Bp5LU+1qdX/goLiCvNIrn7VqyFk9XVhnJC/mNxWX3SDM5lxMMaoil41fHDksZ hNpX88DqueE+MAtEQtvhtwrYCHaoagUhzzErzkr9dkhht2sdISRlusbbovyZn6cl GS/aZa7536pKw5MdFCSYRY/EKiipIDFx6LLHyZtebDhgpVCYe4fux9RWKL4rAc3i wOq6bnDu/da0p56bqDHADrDHQpJAJM2lIPxk1PAl0Ieq916GFv51kG0gshlfwx8e pMbeHzoduhPwGox+EhrIcCBpeppzQdSwFHGrP/arbWRp3eSy/rfn6r9Pu+G1kt/u OHqJUf/c+fAWg7c8MWPdgaEOPoUTORca+GxEPEgkDqZyQ+JeiGUbqNZ09yDyRCnN KIW0vLCVccsMGleQIxaOCw==8z9L
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Manphiz@21:1/5 to Sean Whitton on Thu Aug 10 19:20:01 2023
    Sean Whitton <spwhitton@spwhitton.name> writes:

    Hello,

    On Wed 09 Aug 2023 at 02:23pm -07, Manphiz wrote:

    While practicing some Emacsen packaging and getting assistance from
    #debian-mentors, I noticed that with "debhelper-compat (=13)" it now
    sets up a writable $HOME[1]. With this, Emacs with native compilation
    doesn't need any specially handling during build or test anymore, at
    least in dh_auto_*. However, currently dh-elpa doesn't use the same set
    up as dh_auto_*[2] yet, so currently it will still cause failure in
    targets like dh_elpa_test. Will the team consider to follow the same
    convention so that $HOME becomes writable? I assume this will also make
    it possible to drop the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
    related patches.

    Debian Policy requires that package builds don't attempt to write into HOME.

    Indeed, found the item in section 4.9[1]. Though I do wonder what is
    the reason that compat 13 starts to provide a writeable $HOME?

    [1] https://www.debian.org/doc/debian-policy/ch-source.html#error-trapping-in-makefiles

    --
    Manphiz

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmTVGtUSHG1hbnBoaXpA Z21haWwuY29tAAoJEC3pZe1jglyTsvEP/AxQTxPvx0buzp4pPBejAp9oII53znq6 +kbmq916ljSutzbkidaVWRAMs7UC4QB/6TU5v1V8ugzpUqDog375oxJm/EDRRIJY ypHq3OdHrQ9C6pygJcg1U7Eah2UQmIYpI3mrjlD7HYONwBtpVlb+d5uQluXqJAOX YMKccAONyXJ8kOu9o+Sgyj5M0c3cUDitq/cUJWmlY00R+fc3m60P+0LMHOSdY1ud arpYzHNqjFvmWqLpDIvyc1AhLeI6Tsu6avsIn0J01zC5d4Gg0tXpe8nd3WZt2bQZ fWQXkhhQ9/aTvbCV30HpbYXqfNEIb13nv2uRBckQg9NMNhD9Pc5KXjbMMdSb+SgO Ctg50uacJLiVFQ4DZu4Ms1siszUxJgAJiB/9gwzSanQfxDCESbbbRrJAYLY0Uk7R +Rs1jbINmBP7XIV6Rj7Znjt/9C62UCnRvVb9Bt3Uifn8r2sTPqrYtzQoMDa5X1ap QEoqkQghQFAm/dlhu1lO/WRwOrUjgyqaFMSiCwyWrOJVZzGG5lrbQ8mwkprEjScq VbC+YYrf6wxTnPvs+4RcxIL0zf1d8ORaeCx7CAiKhfzouc0ooVvyxw+thG6gKPaa UP+RH8lfEdWYznBTNb/1EWCdrHKr4/SJg/A2eN0MwA6396pKNUF4M5mSwZUoHJ7m
    RWLhQb+Nm3Gn
    =HTkA
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (
  • From Manphiz@21:1/5 to Manphiz on Thu Aug 10 21:00:01 2023
    Manphiz <manphiz@gmail.com> writes:

    Sean Whitton <spwhitton@spwhitton.name> writes:

    Hello,

    On Wed 09 Aug 2023 at 02:23pm -07, Manphiz wrote:

    While practicing some Emacsen packaging and getting assistance from
    #debian-mentors, I noticed that with "debhelper-compat (=13)" it now
    sets up a writable $HOME[1]. With this, Emacs with native compilation
    doesn't need any specially handling during build or test anymore, at
    least in dh_auto_*. However, currently dh-elpa doesn't use the same set >>> up as dh_auto_*[2] yet, so currently it will still cause failure in
    targets like dh_elpa_test. Will the team consider to follow the same
    convention so that $HOME becomes writable? I assume this will also make >>> it possible to drop the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
    related patches.

    Debian Policy requires that package builds don't attempt to write into HOME.

    Indeed, found the item in section 4.9[1]. Though I do wonder what is
    the reason that compat 13 starts to provide a writeable $HOME?

    [1] https://www.debian.org/doc/debian-policy/ch-source.html#error-trapping-in-makefiles

    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

    --
    Manphiz

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmTVMa0SHG1hbnBoaXpA Z21haWwuY29tAAoJEC3pZe1jglyThtoP/iuMI4Em5tnI6qtfMf2BJl0wru65cVPT +FmQMXv1qBBQGpGCcSs/xgS08j2CpmaEvJQFvrv9nevGBfQpDnMDQornF4FKtTRY J1oT5V5NuSH9ZICb8O2WGVcQ+ngvoQdR7BhnqqWPOoSpz58Z9iRYk7cgh+4kbO/1 UQtI1acJxAVzXHFUHvaV6a6rzwHjWC2TiPmohJF8wVPcHk2KyaSC4MfEIQfAW4+0 XcRI4tZygaGkNdf1cb4HBAK37L+ZqXnfnG+LO9bHUzLPjE2I3H4bgLvj3PjkUJFC /dcVDdFq7WJx1RSVQaeeCnkeLakfUnm4EQiIeYE52hy4CZZrL1LPUVWrSIuZAvkv rllQemYtT9NqKFeGB19Exj2gQ4tSoWqXPIkmL3SMXJ3Tpo5puzAJOQMNHt4ups8r Fz8v+L5fYaplC/Xvocg52F4amu9RO/HiDhvx47y9cMLDl27PJCt4PcWUiJBv7Ukv LKJTEAqPLJjxAbuIRUdHW2TSfUufoqY4Nnbv63Mpp3DYrcUrtcbW/hsIIGsWeQsE t6AZorvMjAkJjOafM/nmSiAIYyAAOXGufKJkcSlt6K/660J6mw0KxyJi1BzkqvRz epVVSbvqVbTOYA/ltolNnR5Wk9arjouJz1A24BABeVBp5Tqxf0qcUUW8EgQlap3V
    O2xFFulQ1Uua
    =RHh2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (
  • From Nicholas D Steeves@21:1/5 to Manphiz on Thu Aug 10 21:20:02 2023
    Manphiz <manphiz@gmail.com> writes:

    Sean Whitton <spwhitton@spwhitton.name> writes:
    On Wed 09 Aug 2023 at 02:23pm -07, Manphiz wrote:

    While practicing some Emacsen packaging and getting assistance from
    #debian-mentors, I noticed that with "debhelper-compat (=13)" it now
    sets up a writable $HOME[1]. With this, Emacs with native compilation
    doesn't need any specially handling during build or test anymore, at
    least in dh_auto_*. However, currently dh-elpa doesn't use the same set >>> up as dh_auto_*[2] yet, so currently it will still cause failure in
    targets like dh_elpa_test. Will the team consider to follow the same
    convention so that $HOME becomes writable? I assume this will also make >>> it possible to drop the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
    related patches.

    Debian Policy requires that package builds don't attempt to write into HOME.

    Indeed, found the item in section 4.9[1]. Though I do wonder what is
    the reason that compat 13 starts to provide a writeable $HOME?

    [1] https://www.debian.org/doc/debian-policy/ch-source.html#error-trapping-in-makefiles


    https://bugs.debian.org/942111
    https://bugs.debian.org/933799

    Please note several pitfalls. One question I have after reading these is:

    Shouldn't Emacs itself gracefully handle an unset, nonexistent, or
    read-only $HOME gracefully?

    Cheers,
    Nicholas

    -----BEGIN PGP SIGNATURE-----

    iQJEBAEBCgAuFiEE4qYmHjkArtfNxmcIWogwR199EGEFAmTVN6QQHHN0ZW5AZGVi aWFuLm9yZwAKCRBaiDBHX30QYV6aD/9QBIgZ2cpAgipE4Xm0RVDLAV5oMYZSZdGB Vq2mZ5eWrOl4NzcqYcgFxT032w6b3jLCy68g5/eUpVl5vhsX7XtIVmqmUPgagq7y zEURoqRhbXcjEH/KqxZnjZrhlWMo68yPsLHpLOh5gq1hw3ZTgATEZlGtg6joKG34 znrhOjKIy9+MO4XOMzQulRH430lEJ0LBx2qnZizw/4hgJO/viA6Vp+Vmku97UpFP yhRvdwZUlOD6+kuSdxi63ao749GyjVDDEFdDT4WJFPjoSe34JicvGINHVj7AaMrL Wr+tYcsjAo8RHxAmHa3uAqYwiIQWywLbqp8f6Sg21YL9M0nEuDJbsOUj79/6jmkm s6IChMmGYfgDFuY7Q4E5SkyQUPn0xY3IjmhKB9b0X9g/BjhHXCaJ3GInIsgJCa43 +hJyXMfvu7hjp8eBLyNbptVH9l/qc0ebK183xZVjXnN9/Uf5h3qK5tNVUnSpKlwo vYv9HG0OUWx0gvFLcHHUyD3VR0zD4psWMRsI1rUQzH/SaAGll4xrgqWFu9AttBcj nMNLeFflRmDEOYqW2NqRjeDgqTQlb02QI4B8Vfjt112v+rN2ISKDdvAQ7QYSATt6 gh33buU3nNgkfrncSKUiA8yTGGrenAw6wXBz7wOxVNrglHpPUoNMQbfQ4HlAqGfh
    dQQSCJfAHQ==
    =xX7j
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Manphiz@21:1/5 to Nicholas D Steeves on Thu Aug 10 22:20:01 2023
    Nicholas D Steeves <sten@debian.org> writes:

    Manphiz <manphiz@gmail.com> writes:

    Sean Whitton <spwhitton@spwhitton.name> writes:
    On Wed 09 Aug 2023 at 02:23pm -07, Manphiz wrote:

    While practicing some Emacsen packaging and getting assistance from
    #debian-mentors, I noticed that with "debhelper-compat (=13)" it now
    sets up a writable $HOME[1]. With this, Emacs with native compilation >>>> doesn't need any specially handling during build or test anymore, at
    least in dh_auto_*. However, currently dh-elpa doesn't use the same set >>>> up as dh_auto_*[2] yet, so currently it will still cause failure in
    targets like dh_elpa_test. Will the team consider to follow the same
    convention so that $HOME becomes writable? I assume this will also make >>>> it possible to drop the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
    related patches.

    Debian Policy requires that package builds don't attempt to write into HOME.

    Indeed, found the item in section 4.9[1]. Though I do wonder what is
    the reason that compat 13 starts to provide a writeable $HOME?

    [1] https://www.debian.org/doc/debian-policy/ch-source.html#error-trapping-in-makefiles


    https://bugs.debian.org/942111
    https://bugs.debian.org/933799

    Please note several pitfalls. One question I have after reading these is:

    Shouldn't Emacs itself gracefully handle an unset, nonexistent, or
    read-only $HOME gracefully?

    Cheers,
    Nicholas


    Hi Nicholas

    Thanks for the pointers! I think the reasons given in the bugs are
    essentially the same as the scenarios I gave in my other mail,
    especially when it is not Emacs itself but the client code that accesses
    $HOME. Would the team consider enabling it in dh-elpa given that no
    write is done to $HOME/$XDG_* so that no Policy violation happens?

    --
    Manphiz

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmTVRIYSHG1hbnBoaXpA Z21haWwuY29tAAoJEC3pZe1jglyT9H0P/1f2PKJRbu76nqcF8Gg2zHIyK1Ppk2li VKlNi35kUZSY+3wGGMKObe6afBOZaarqGQbRGOkW9+9p1tdOTcQZdSAxTIZhgmfM yf3dcLkXsQlcaH/COixRbjVT+jePUlRH6iRaQ+qpw4eRtXBtdF1mvykkNyYiD2OD 0Xlou36TPE5fKNh/jWNxANmVXCSp1DPUAKN6JjABvjYLNY+eCd95xfFGV6SFtcqd QGDOdUhhLRBpTe94CA7NxN6Jj8QrzjxC+qXWSHEYkchsasSA5lCZ22p/x1/Vgivk 3Huyzg9okV6G5rtjAG2qShKm9B6iaTUR5qGyjzvjfwkpxMexHRaylLNnSCXLnZTG AdrmWWT+zZypU+T2oEbXE9HUpbqbg3lLSuNNvlVoqo+gmY0VvmX3wYSaraXz/EPk 72Qu03KB8OZOYPEADqEaB6bxR5UrFl6u/y8gWuSRXo2xIGBGtM8P10VRxbyeh1in Yeu3q+3mDOg2xqqTSlErXfqPAy4yyoIY14pL2mkwtWRIYdVwIJMZETP79v+lOn0A 2HJZwDyMdBTLNJtnj2fq/QiF9nc55aqpWa7FInwrPGf4o6HPbTlfjJ9wjgJeApNm tkQrsCILB3q2ZbjEYKPsAOnmCACcMfLh102GorBdAMLbiiYL8l+0p4KYfcwWqktL
    eiVnEQNzrGtR
    =X8sX
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (
  • From Sean Whitton@21:1/5 to Manphiz on Fri Aug 11 09:40:01 2023
    Hello,

    On Thu 10 Aug 2023 at 01:11pm -07, Manphiz wrote:

    Thanks for the pointers! I think the reasons given in the bugs are essentially the same as the scenarios I gave in my other mail,
    especially when it is not Emacs itself but the client code that accesses $HOME. Would the team consider enabling it in dh-elpa given that no
    write is done to $HOME/$XDG_* so that no Policy violation happens?

    There's the risk of bugs here. Setting HOME to /nonexistent ensures
    that unknown writing to HOME doesn't slip in in a future upload.

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmTV5VIZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQGhLD/9NdRUvMRs0AxJBzdArB7PF 41mnE4hqq4VSrK9SxOWqrNTtgN4gls3tIoJJJly8JofbMdJQbKaKpYxm+BI6Y+ib wNhdGw+Z6VSyJfYD94V9uuml5A+mJtPoDnBIDaw7NPlkEAzH7VtDHRqsGNEK5qEJ 3axoX4mijIwFn7X9qBPBtAE4G2jmSzkzeynOu7htdbI/gHpJxFv81THUv54J5Ehs uzB1RmOfH+qBVK8K7UtVyvJx16pUUWTmPIZmt5Nqk7dtkJ+EZHt+DUo5CSKQUvil Y++NQRNm4oJ8bpZSSd1XsNiFaIFVp/TaUTjKE/J2vgeJVWVX3qNECKKrKs7s9b09 vQK+an7CXW+zWqejlKzaRpc9dfZocjMXcFTks+bcQbMC0rufGgK6dWqpiQKtsCG9 gKjPd1j/AyoCqQ3Mny9ihWjZ59ZLLq0Mw+MtqJqkKE5j2ZxX3IiwYw5u0rn80URv 530PAZnu0jZXre116pxQAlxyHkTAGPAjjdWaDzQOZLBQIhBDVATYQ+jN0DRBrFop jp60KN6kZmzDgQPeCQfDNgCeoy6buqOVcIiV/v2R16bzU228SHvZsxEDItE3tggk q/WaMjpajPPyy/6D59Y2cnlysenIlZWV4xTjoXsw631zXAUGoFDWvcjDPKyrbqff JMsTaLPs3jNUUnzUUVEJsA==YS5S
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Sean Whitton@21:1/5 to Manphiz on Fri Aug 11 09:30:01 2023
    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

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmTV4wUZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQMIJEACkUnf4NOvdsJRO5sMb8Y2m fHeGOYehfy5FoBp1bKRUi1pXyDAvZsVN4TjFxc+LNd4+6JL0UVbSPsps4CX2czmD /FXDmTRg6bjSUbVhm7KYfARVJVPFZTT0QAkkym6qZPt3jgyOZ6Ptn6vk2mm3wyHa GWIPSuWGbBYARxQyZkgVJMbmmZzgs6JnkPRtskG3IDc3mTeAy/UWswT7IsQJhEp8 dJVywja0BT3Z3fEYzG96yhpyS81VW1GqbH4yJ3ozk6pTW1uBlole/SBzOWd7C6eG qX70dJRjy8oGQJaBjY/4gBw35VzNgzwMdrksma37tCbQN3YmuQCTcgvDgum+uSe/ N+BFXDkMn6+qqWlPwwJSRm5RtSge9EUF3QqqSxOuhlHiBxFciwv6xOoNX4K9xDli EhkUesSDe+2OqCoDuAF9vN54+aW3dEMkzUVIWSYb2J0jIZTlstPlsFvDU0+CLebv TOzzAbyHos/6E0Hy+OUuGn9AeLHvsyTbj2wbI7EetD0WfNu8KOxo2jzV4HyG4ewo tBJr/tPoJZq9qvZS1mnoytCwV0IiqJCQIg+taDU3ZiQGKZpYjtaWuvkmjVdFUIOR oDwFYAk3dWkpqPyIlVZnqYzDlDO8aJaf/SM4/e+r5w/mvLAnDGtetur3lBGiU0+v 4R770BknwGx7VLBcXQHQQA==TYJw
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Sean Whitton@21:1/5 to Nicholas D Steeves on Fri Aug 11 09:40:01 2023
    Hello,

    On Thu 10 Aug 2023 at 03:16pm -04, Nicholas D Steeves wrote:

    Shouldn't Emacs itself gracefully handle an unset, nonexistent, or
    read-only $HOME gracefully?

    That's one of the things we were discussing with upstream last year.
    There doesn't seem to be consensus about it there.

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmTV5ScZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQBqYEACYAWblMeffF/qh/pO8/vz8 RsSEyO8orF6KOV9CszCPZ/e98mm8TMciYAQYHoh09KPAigITJEh7486S1nLuOjKI XHW3qcVtl2weKEfJGeO4BxVZLqg3L4YVnaXOWPRorS258wP/tH8E9ksONKDOAjSl 0m2ml7v0idPZpTbIkMs9LORyu2BxKI0FIMXBCZZsAGuawnkITjTsu0wGChKyk9en HDP5BxuEfmOWkl8wg9ndD06bvyB/QwzKDDWV9wLEtXESTa6upxVQppG47h5+IbpH 5ZwuWXE9hqz/ODFF24qCcIpNOuaGcZlxTcA+ZeBPjCDMgsG98xdQeU67V+bHnnI/ qBiAioYi3njXGh6bQZdZoxKffJUnA617I0Yvxlodian3rbGUar4GhGlM13rrdtk6 NjocHMwc2UvwCkSIPXWScmaYA2SoZJw4YPml4B9Ad3F7Cpcqw3AhmrEcUCGyKmCj PewEk4jqD7e9vIfCvG24IoEMNHVAaIKsK9j4v2Zynav06vhfkv/dkN34o6erwgvJ LyWrZs6ed/12z5vuChR8b82pseI2asLBrK6e/xh4eu1XKKlI9mqHPka/RYQGkGEP 9GKuXlOoLpve8hwG8IhILTECTj9SD6ixfe9NwWUSPMWLADrpsnZtOL1Fy53yzlQb 1EF2tLT656n7B5J0OQ81gg==gz4E
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Nicholas D Steeves@21:1/5 to Sean Whitton on Wed Aug 16 01:00:01 2023
    Sean Whitton <spwhitton@spwhitton.name> writes:

    Hello,

    On Thu 10 Aug 2023 at 01:11pm -07, Manphiz wrote:

    Thanks for the pointers! I think the reasons given in the bugs are
    essentially the same as the scenarios I gave in my other mail,
    especially when it is not Emacs itself but the client code that accesses
    $HOME. Would the team consider enabling it in dh-elpa given that no
    write is done to $HOME/$XDG_* so that no Policy violation happens?

    There's the risk of bugs here. Setting HOME to /nonexistent ensures
    that unknown writing to HOME doesn't slip in in a future upload.

    +1

    And as far as I know sbuild (which is used on buildds) always does this
    by default, and every build log will have this line near the top:

    HOME=/sbuild-nonexistent

    I wonder if it's always set up this way, or only when the 'sbuild-debian-developer-setup' package is used?

    Cheers,
    Nicholas

    -----BEGIN PGP SIGNATURE-----

    iQJEBAEBCgAuFiEE4qYmHjkArtfNxmcIWogwR199EGEFAmTcAVwQHHN0ZW5AZGVi aWFuLm9yZwAKCRBaiDBHX30QYcm+EACSvztM2U9mlufBhXTOUigayMppYDMzk5oa 9QtGtkrl6Xa0heGSwH9IeVhiWfwYzaxK7+5cwF+AzddJ8FzMiD3DufpFJUDteYyn oiphcmdAaO/ShXb1T0Tv2iqWaUBEu4fFjFjMFVWNsnkj73OV7HevCZFxKil+F4yp ZEWEnXrkRkM+2MslTv5yVAt/2gZIjQLYRDwv9kLPaOgyuNDsj7sPhXQjarOMhNsB 5U249q3XOR0M1e6lB40pidWApauSC1R+DrE4n2nQZyAKD2qgCIHwb2IasSXiJQkp F/ptoz+ti4Cie78NJqv1wseIW2mD65pSil36LCd0bLTEPPrRbo4rUAZ2b0vMUIOD nF0bAzPWjQ/0isHw1ZbqWv+GfCs5biKmH9KFfcIAoma7ftEbPXzuzmGH3PoqXE+l YRsEGX1Ij7QAxtQnDO8LHYBe3QU+J27p4yZT3joK65SMopoPSwCxAQehkPkDSaL/ Klt4ayXhlJ/vDZH/WfHH85fahO1UxhVbkm9uIpik2eeWt3ihfqfhTQycbSahzRDb /HbFrTQTkFOhe5PbyISi8zpwTzkF8BRBkIdWMVJcEG2/0OQ1lDESlrcbifxIZZtI dLcuhcvD/L5Ep5535h60XL+Q6VzGHOaKI6QhJC/B+DuuKDlYCELvRZ66uSZYDmM5
    UbMwnlNuPw==
    =4IjR
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicholas D Steeves@21:1/5 to Manphiz on Wed Aug 16 01:00:01 2023
    Manphiz <manphiz@gmail.com> writes:

    Sean Whitton <spwhitton@spwhitton.name> writes:


    Debian Policy requires that package builds don't attempt to write into HOME.

    Indeed, found the item in section 4.9[1]. Though I do wonder what is
    the reason that compat 13 starts to provide a writeable $HOME?


    My guess would be for experiments/debugging; although, this compat 13
    feature you've mentioned sounds a lot like a Policy footgun.

    -----BEGIN PGP SIGNATURE-----

    iQJEBAEBCgAuFiEE4qYmHjkArtfNxmcIWogwR199EGEFAmTcAiEQHHN0ZW5AZGVi aWFuLm9yZwAKCRBaiDBHX30QYT/pD/9AslhYBLlsCsKCOEFpaocUOu85LodFqImW ZuI0Rw8STj74BzuXsWqRtG62h9CvMXeZaeR0MJq7zIW76xhWoBgvuyiCBsYTdmg4 LyEi1ky8irJCqHPf+JMDfH7+b4fEXoYsTM2y0GmX/MHncy30kGCRN1m+a9GyE3nx fACWRkvV+gV89aS70yVbTc0WIlIpdzmnF1wE+JvOqh60MfMt9FZpAXFgP1pzMNbr bt26QqSwhBnZxXhEg3nt7xDhJpN4zQV3W2u8ViqytReJdWWfBhVy7efpK4iBcGwe ZdEA2O5BvnGGOzR+Nz9LScx1s428Ebd8EViKrs5Pht7vxUhA4yRMJsUVSULqXJRw rl9HbSGh2mDfU2TJdrgQdrYJ6UGg/RSA6qEmvtoz09PGLZg+IUzR2+outHr7hx7M qj7Kz9rv/g+Ue11JbGABqQSA40aQlu5GGk0/OKJ6+PxEjE4u6ZHMbyDn+3EYETD6 j5YFw8w6oIatcMHXnEp+2rdIZeVWdu6y0bD9sOUUDW6bHWrXsRkAnvuBJBU8xAGg 6z5vs7fJOm6F6zvUuUI8ueAc5xgHvqwrpiLDcyM9alD9ijh1sF6Oo04wLp8T58Cz oBffTluJHVnO2zidAejYcVyZaOrR27e3yyhIAB82uGmOthvs0BAmaZtwrUBuWSfg
    qPH84J8rcw==
    =9NWH
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)