Hi Collin, Collin Funk <collin.fu...@gmail.com> writes:
> Ludovic Courtès <l...@gnu.org> writes: > >>> I am only a relatively new user of guix, so I can't speak for which >>> approach would be preferable from their perspective. I CC'ed Ludovic >>> since he implemented the unprivileged guix daemon approach. >> >> I’m not sure how ‘modules/test-xfail’ is supposed to work, I don’t see >> any use of its conditionals. > > In the file 'modules/test-xfail' there is a few conditionals similar to > this: > > gl_CONDITIONAL([OS_IS_NETBSD], > [case "$host_os" in netbsd*) true ;; *) false ;; esac]) > > Then in 'cat modules/sigprocmask-tests', for example, we have: > > Depends-on: > [...] > test-xfail > > Makefile.am: > # Work around > https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57213 > if !OS_IS_NETBSD Oh, I see. (I grepped for other things conditionals, which I couldn’t find.) > gl_CONDITIONAL([IS_OVERFLOW_GID], > [test `cat /proc/sys/kernel/overflowgid` = `id -G | sed > 's/ /\n/g' | awk '{ if (NR == 2) print }'`]) Sounds good. > Let me see if I can figure out how to set up a guix vm. You don’t have to. Instead, you can try this: unshare -U echo $$ Then, in another terminal: echo -n "10000 $UID 1" > /proc/PID/uid_map echo deny > /proc/PID/setgroups echo -n "10000 GID 1" > /proc/PID/gid_map (Replace “PID” with the PID of the shell in the first terminal, and GID with your GID.) Go back to the first terminal; the ‘id’ command should show you 10000 as your UID/GID, and possibly supplementary groups as the overflow GID. >From there, you can configure and build Gnulib. Ludo’.