🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
3 messages
3 total messages Started by Gilles Filippini Mon, 30 Nov 2026 17:50
Bug#1155919: dh_fortran_lib: TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType
#4644
Author: 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-----
Bug#1155919: dh_fortran_lib: TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType
#4649
Author: 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
Processed: Re: dh_fortran_lib: TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType
#4652
Author: Debian Bug Tracking System
Date: Mon, 30 Nov 2026 18:10
17 lines
2368 bytes
Processing control commands:

> found -1 2.50.1-1
Bug #1155919 [src:eccodes] dh_fortran_lib: TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType
Marked as found in versions eccodes/2.50.1-1.
> notfound -1 0.5.8+dfsg.1-2
Bug #1155919 [src:eccodes] dh_fortran_lib: TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType
The source 'eccodes' and version '0.5.8+dfsg.1-2' do not appear to match any binary packages
No longer marked as found in versions eccodes/0.5.8+dfsg.1-2.

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

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads