Hi Ludovic,
Ludovic Courtès <[email protected]> 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
TESTS += test-sigprocmask
endif
check_PROGRAMS += test-sigprocmask
I think something like this would work:
gl_CONDITIONAL([IS_OVERFLOW_GID],
[test `cat /proc/sys/kernel/overflowgid` = `id -G | sed 's/
/\n/g' | awk '{ if (NR == 2) print }'`])
Let me see if I can figure out how to set up a guix vm.
Your patch would probably also work.
Collin