• Bug#1103630: dh-python: 6.20250414 causes showtime to fail to build

    From =?UTF-8?Q?Jeremy_B=C3=ADcha?=@21:1/5 to All on Sat Apr 19 21:50:01 2025
    Source: dh-python
    Version: 6.20250414
    Severity: grave
    Tags: ftbfs sid
    Control: affects -1 src:showtime

    I can build the showtime package successfully in Trixie. If I then
    install the dh-python 6.20250414 packages in my sbuild with unshare,
    the build fails. The showtime packaging is very simple.

    Build log excerpt
    =============
    dh_python3
    I: dh_python3 tools:114: replacing shebang in debian/showtime/usr/bin/showtime 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/showtime/usr/bin/showtime'

    Thank you,
    Jeremy Bícha

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Sun Apr 20 01:10:01 2025
    Control: severity -1 normal

    Hi Jeremy (2025.04.19_19:40:44_+0000)

    I agree that that's a regression, but it doesn't seem to be a serious
    one. It's trying to edit a file, and for some reason that file wasn't writeable.

    I can make it force permissions to be writeable before fixing the file,
    and close this bug, but I really think that the problem is the file's permissions.

    Stefano

    --
    Stefano Rivera
    http://tumbleweed.org.za/
    +1 415 683 3272

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Jeremy_B=C3=ADcha?=@21:1/5 to stefanor@debian.org on Sun Apr 20 01:30:01 2025
    Control: reassign -1 src:showtime
    Control: severity -1 serious

    On Sat, Apr 19, 2025 at 7:03 PM Stefano Rivera <stefanor@debian.org> wrote:
    I agree that that's a regression, but it doesn't seem to be a serious
    one. It's trying to edit a file, and for some reason that file wasn't writeable.

    I can make it force permissions to be writeable before fixing the file,
    and close this bug, but I really think that the problem is the file's permissions.

    Oh, I see:

    https://salsa.debian.org/gnome-team/showtime/-/blob/debian/48.0-3/showtime/meson.build#L38

    Thank you,
    Jeremy Bícha

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