Source: bup
Version: 0.33.7-1
Severity: normal
Tags: ftbfs patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: root

Hi,

src:bup fails to build on reproduce.debian.net which does not use
fakeroot:

https://reproduce.debian.net/all/#bup-doc

=================================== FAILURES ===================================
_______________ test_handling_of_incorrect_existing_linux_xattrs _______________
[gw4] linux -- Python 3.13.1 /build/reproducible-path/bup-0.33.7/dev/bup-python

    def test_handling_of_incorrect_existing_linux_xattrs():
        if not is_superuser() or detect_fakeroot():
            pytest.skip('skipping test -- not superuser')
            return
>       if not setup_testfs():

test/int/test_metadata.py:275:
[..]
>                   raise child_exception_type(errno_num, err_msg, err_filename)
E                   FileNotFoundError: [Errno 2] No such file or directory: 
b'modprobe'

Note that the test is skipped with fakeroot. I think package builds
should not try to load kernel modules and this test should be skipped in
general.

A simple upstream fix would be to just always skip the test. For the
Debian package this could be done with adding

export FAKEROOTKEY=1

to debian/rules. This makes the package reproducible.

Cheers Jochen

Reply via email to