• Bug#1109906: libcap2: FTBFS on arm*: patchelf: open: Text file busy

    From Sebastian Ramacher@21:1/5 to All on Sat Jul 26 09:30:01 2025
    XPost: linux.debian.ports.arm

    Source: libcap2
    Version: 1:2.75-9
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: [email protected], [email protected]
    User: [email protected]
    Usertags: arm64 armel armhf

    Dear maintainer,

    libcap2 failed to build on buildds on arm{el,hf,64}:

    https://buildd.debian.org/status/fetch.php?pkg=libcap2&arch=arm64&ver=1%3A2.75-9%2Bb1&stamp=1753479570&raw=0

    make[1]: Entering directory '/build/reproducible-path/libcap2-2.75'
    # On slower arches, it seems that tests need more time to shut down,
    # which causes patchelf to fail. A short sleep is the least complicated
    # workaround
    sleep 5
    # Unfortunately, RPATH seems to be needed for the build-time tests
    # (avoiding it and going through LD_LIBRARY_PATH didn't work in all
    # cases)
    # List is identical to build above, minus noop (no RPATH)
    cd tests && patchelf --remove-rpath \
    psx_test \
    libcap_psx_test \
    uns_test \
    libcap_launch_test \
    libcap_psx_launch_test \
    exploit \
    noexploit
    patchelf: open: Text file busy
    make[1]: *** [debian/rules:91: override_dh_auto_install] Error 1

    Cheers
    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)