🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#4649
From: Pini
Date: Mon, 30 Nov 2026 18:10
66 lines
4774 bytes
Control: found -1 2.50.1-1
Control: notfound -1 0.5.8+dfsg.1-2

My apologies: I pasted the wrong version in the original bug report.

On Mon, 30 Nov 2026 18:46:18 +0100 Gilles Filippini <pini@debian.org> wrote:
> 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
Technical Details
Message-ID: <O5dZ7-fanh-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O5dFL-fa5n-3@gated-at.bofh.it> <O5dFL-fa5n-3@gated-at.bofh.it> <O5dFL-fa5n-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Pini <pini@pustule.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 19:10:01 +0100
Message-ID: <O5dZ7-fanh-3@gated-at.bofh.it>
References: <O5dFL-fa5n-3@gated-at.bofh.it> <O5dFL-fa5n-3@gated-at.bofh.it> <O5dFL-fa5n-3@gated-at.bofh.it>
X-Original-To: 1155919@bugs.debian.org
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Mon Nov 30 18:01:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Pini <pini@pustule.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: followup 1155919
X-Debian-Pr-Package: src:eccodes
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: eccodes
Authentication-Results: mail.bou-fi.net;
	auth=pass smtp.mailfrom=pini@pustule.org
MIME-Version: 1.0
Content-Language: fr
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spamd-Bar: ---
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/840225
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 66
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 30 Nov 2026 18:58:58 +0100
X-Original-Message-ID: <3792694f-da4a-4b49-97b1-e3ad004df837@pustule.org>
X-Original-References: <179606077803.8847.5195808129560567410.reportbug@pinibrem14> <179606077803.8847.5195808129560567410.reportbug@pinibrem14> <179606077803.8847.5195808129560567410.reportbug@pinibrem14>