🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #4644

Bug#1155919: dh_fortran_lib: TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType

#4644
From: Gilles Filippini
Date: Mon, 30 Nov 2026 17:50
63 lines
4145 bytes
Source: eccodes
Version: 0.5.8+dfsg.1-2
Severity: serious
Tags: ftbfs
Justification: FTBFS

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

First of all there is a typo (extraneous space) in debian/rules:

        # file exists on full builds only
        [ - e debian/libeccodes-dev/$(INCDIR)/eccodes_ecbuild_config.h ] && ( \
          ^^^

But this is not the main issue. Even with this typo fixed Eccodes FTBFS
on a clean unstable amd64 chroot with this error:

dh_fortran_lib -p libeccodes-dev --flavor gfortran --builddir debian/build-gfortran
source=eccodes, binary packages=['libeccodes-dev']
install_dir (debian/libeccodes-dev//usr/lib/x86_64-linux-gnu/fortran/gnu/)
['cp', '--reflink=auto', '-a', 'debian/tmp/usr/lib/x86_64-linux-gnu/libeccodes_f90_static.a', 'debian/libeccodes-dev//usr/lib/x86_64-linux-gnu/fortran/gnu//libeccodes_f90_static.a']
Usage: dh_fortran_lib [OPTIONS] [FILES]...
Try 'dh_fortran_lib --help' for help.

Error: lstat: path should be string, bytes or os.PathLike, not NoneType
Traceback (most recent call last):
  File "/usr/share/dh-fortran/dhfortran/cli.py", line 155, in wrapper
    f(*args, **kwargs)
    ~^^^^^^^^^^^^^^^^^
  File "/usr/share/dh-fortran/dhfortran/lib.py", line 508, in dh_fortran_lib
    d.process_and_move_files(searchdirs, *files)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/dh-fortran/dhfortran/debhelper.py", line 530, in process_and_move_files
    self.process_file(pkg, fil, pkg, dest)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/dh-fortran/dhfortran/lib.py", line 398, in process_file
    s.process_lib()
    ~~~~~~~~~~~~~^^
  File "/usr/share/dh-fortran/dhfortran/lib.py", line 220, in process_lib
    if not islink(self.orig_libfile):
           ~~~~~~^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 63, in islink
TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType

make[1]: *** [debian/rules:86: override_dh_install] Error 2

Best,
_g.

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAmsNtl0ACgkQ7+hsbH/+
z4PoYQf8DYg6PqVRDgUFYTa6qXkrSXTPTRq8Yv13qEbpB3fR6KbfE9o5M7ZVDQA9
hV4JX7pga57RHdD/08SMzaFwo4GPwbRKUWvBC7IjbrDe2b82/kVr0Ak/V/ZqNJfs
J6A+7hY7PpK7ra06PHC+blygcuFMihAZjOfSLU87UC0IIcgK8JbVEe/3fduZ/HL1
0vU4k2dYRle7gtili5tnFNqU9LB+U4fktnLqxoP2Z9O5h18WEP4Oa8UgYOWgkACj
fKqgVbY1kRZPRj+3XyBIESokviigI0H4fwJFKiU/SeeS6d8EDCznNctBtVfkrbLi
gU3nJpbUrvYW9qEvYqmYARidrTA0BQ==
=WaGb
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <O5dFL-fa5n-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Gilles Filippini <pini@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1155919: dh_fortran_lib: TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType
Date: Mon, 30 Nov 2026 18:50:01 +0100
Message-ID: <O5dFL-fa5n-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Mon Nov 30 17:47:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Gilles Filippini <pini@debian.org>, 1155919@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-science-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1155919
X-Debian-Pr-Package: src:eccodes
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: eccodes
Content-Type: text/plain; charset="us-ascii"
Authentication-Results: mail.bou-fi.net;
	auth=pass smtp.mailfrom=pini@debian.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Spamd-Bar: --
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/840218
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 63
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 30 Nov 2026 18:46:18 +0100
X-Original-Message-ID: <179606077803.8847.5195808129560567410.reportbug@pinibrem14>