• Bug#1104357: lvm2: FTBFS: PermissionError: [Errno 13] Permission denied

    From Lucas Nussbaum@21:1/5 to All on Tue Apr 29 15:30:02 2025
    Source: lvm2
    Version: 2.03.31-1
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20250429 ftbfs-trixie

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.


    Relevant part (hopefully):
    make[1]: Entering directory '/build/reproducible-path/lvm2-2.03.31' dh_installchangelogs -pdmeventd WHATS_NEW_DM
    dh_installchangelogs -plvm2 WHATS_NEW
    dh_installchangelogs --remaining-packages
    make[1]: Leaving directory '/build/reproducible-path/lvm2-2.03.31'
    dh_installman
    dh_python3 -i
    I: dh_python3 tools:114: replacing shebang in debian/lvm2-dbusd/usr/sbin/lvmdbusd
    Traceback (most recent call last):
    File "/usr/bin/dh_python3", line 293, in <module>
    main()
    ~~~~^^
    File "/usr/bin/dh_python3", line 220, in main
    stats = Scanner(interpreter, package, private_dir, options).result
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/share/dh-python/dhpython/fs.py", line 262, in __init__
    self.handle_bin_dir(root, file_names)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
    File "/usr/share/dh-python/dhpython/fs.py", line 446, in handle_bin_dir
    if fix_shebang(fpath, self.options.shebang):
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/share/dh-python/dhpython/tools.py", line 123, in fix_shebang
    with open(fpath, 'wb') as fp:
    ~~~~^^^^^^^^^^^^^
    PermissionError: [Errno 13] Permission denied: 'debian/lvm2-dbusd/usr/sbin/lvmdbusd'
    make: *** [debian/rules:83: binary] Error 1


    The full build log is available from: http://qa-logs.debian.net/2025/04/29/lvm2_2.03.31-1_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250429;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250429&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Santiago Vila@21:1/5 to All on Thu May 1 00:50:01 2025
    El 30/4/25 a las 23:59, Chris Hofstaedtler escribió:
    I'm not sure if lvm2 can even workaround this.

    Probably it could, here is a similar case in which
    the maintainer decided to apply a fix in the package
    itself:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104289

    (Note: this is not a recommendation to do that, I'm just
    pointing out that a workaround does not seem impossible).

    Thanks.

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