Hi! I just rebuilt the coreutils package of ArchLinux and the package failed to build due to one failure of the gnulib test suite as follows.
FAIL: test-getlogin =================== test-getlogin.h:51: assertion '! isatty (0)' failed FAIL test-getlogin (exit status: 134) There is a bug report in ArchLinux about the same issue which has been closed because that issue should be reported to upstream. Ref: https://bugs.archlinux.org/task/66506 I have investigated the cause of this issue. The loginuid in the clean chroot when building packages is -1. And getlogin function of glibc checks /proc/self/loginuid, if it is -1, then sets errno to ENXIO and returns NULL according to https://elixir.bootlin.com/glibc/glibc-2.35/source/sysdeps/unix/sysv/linux/getlogin_r.c#L61 . In tests/test-getlogin.h, test_getlogin_result asserts stdin is not a tty, which makes the test fail. I wonder whether we can enhance the tests to skip if loginuid is -1. I found a related bug report #27640 which is marked as resolved, however that doesn't solve my problem. I would like to provide any essential information to help solve this issue. Thanks Letu Ren