[pkg-go] Bug#907191: golang-golang-x-sys: FTBFS if /dev/random is a link to /dev/urandom

Santiago Vila sanvila at unex.es
Fri Aug 24 15:49:39 BST 2018


Package: src:golang-golang-x-sys
Version: 0.0~git20180510.7dfd129-1
Tags: ftbfs

Dear maintainer:

When I try to build this package in my autobuilders, I get this error:

--- FAIL: TestDevices (0.00s)
    --- PASS: TestDevices//dev/null_1:3 (0.00s)
    --- PASS: TestDevices//dev/zero_1:5 (0.00s)
    --- FAIL: TestDevices//dev/random_1:8 (0.00s)
        dev_linux_test.go:45: for /dev/random Minor(0x109) == 9, want 8
        dev_linux_test.go:48: for /dev/random Mkdev(1, 8) == 0x108, want 0x109
    --- PASS: TestDevices//dev/full_1:7 (0.00s)
    --- PASS: TestDevices//dev/urandom_1:9 (0.00s)
    --- PASS: TestDevices//dev/tty_5:0 (0.00s)

In my autobuilders, /dev/random is bind-mounted to /dev/urandom so that
entropy intensive test suites, common among crypto-related packages,
do not hang the autobuilder because of lack of entropy.

I believe this configuration should be supported and not to be
considered as an error. In either case, I wonder what's the point in
checking thoses files in /dev anyway. Packages are built in autobuilders,
and autobuilders are already supposed to have "sane" chroots.

So: Could you please disable TestDevices or at least the test about
/dev/random? It would really make life easier for people like me doing
archive rebuilds.

Thanks.



More information about the Pkg-go-maintainers mailing list