Simon McVittie: > On Sun, 28 Jun 2020 at 11:08:36 +0200, Niels Thykier wrote: >> [...] > > The workaround in mutter[1] isn't *too* awful. The most problematic > thing about it is that the logic for it has to be "inside" dh_auto_test; > setting the XDG_RUNTIME_DIR in d/rules is no longer effective, because > debhelper overrides it. This is easy enough with Meson but would be a > pain to do in Autotools. > > [...] > > I wonder whether it would be viable to create an XDG_RUNTIME_DIR in /tmp > on entry to dh_auto_test, and delete it before dh_auto_test exits? It > seems to me that dh_auto_test is the debhelper step that is most likely > to want to put sockets in XDG_RUNTIME_DIR. By creating a temporary > XDG_RUNTIME_DIR before testing and deleting it afterwards, you'd > effectively be pretending that the beginning of testing was the > transition from 0 to 1 logins as this uid, and pretending that the end > of testing was the transition from 1 to 0 logins, which seems like a > reasonable mental model for what is going on. > > smcv > > [1] > https://salsa.debian.org/gnome-team/mutter/-/commit/2650f22af313674cacec7cd3dab905c032c8dc18 >
Hi Simon, Could you please try and review this branch? https://salsa.debian.org/debian/debhelper/-/tree/bug-961655-XDG_RUNTIME_DIR-change ~Niels