• Bug#1104289: openstructure: FTBFS: PermissionError: [Errno 13] Permissi

    From Santiago Vila@21:1/5 to All on Mon Apr 28 12:30:01 2025
    Package: src:openstructure
    Version: 2.9.3-1
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in trixie, your package failed to build:

    [ please read notes at the end ]

    --------------------------------------------------------------------------------
    [...]
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_installdocs
    dh_installchangelogs
    dh_python3
    I: dh_python3 tools:114: replacing shebang in debian/openstructure/usr/bin/ost-compare-ligand-structures
    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/openstructure/usr/bin/ost-compare-ligand-structures'
    make: *** [debian/rules:17: binary] Error 1
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202504/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:openstructure, so that this is still
    visible in the BTS web page for this package.

    Thanks.


    Notes:

    - A similar error happens here in unstable:

    https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/openstructure_2.9.3-1.rbuild.log.gz

    so it's not trixie-specific.

    - Could this be a bug in dh-python? The issue seems related with shebangs,
    so it's similar to #1103150, but that one is already fixed and the fix is in testing.
    I'm adding Piotr to X-Debbugs-Cc.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Apr 29 11:30:01 2025
    This is a multi-part message in MIME format...

    Your message dated Tue, 29 Apr 2025 09:25:15 +0000
    with message-id <E1u9hDH-0079aG-3S@fasolo.debian.org>
    and subject line Bug#1104289: fixed in openstructure 2.9.3-2
    has caused the Debian Bug report #1104289,
    regarding openstructure: FTBFS: PermissionError: [Errno 13] Permission denied: 'debian/openstructure/usr/bin/ost-compare-ligand-structures'
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1104289: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104289
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 28 Apr 2025 10:19:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.7 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 13; hammy, 150; neutral, 132; spammy,
    0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
    0.000-+--X-Debbugs-Cc, 0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR
    Return-path: <sanvila@debian.org>
    Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:60042)
    from C=NA,ST=NA,L=Ankh