Subject: After upgrade of linux-libre, linux-libre-documentation fails to build
From: Tomas Volf <[email-masked]>
To: [email-masked]
Date: Wed, 10 Apr 2024 17:05:15 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

linux-libre-documentation is broken again:

    starting phase `build'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    Traceback (most recent call last):
      File "/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/./tools/net/ynl/ynl-gen-rst.py", line 26, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/dpll.rst] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/mptcp_pm.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/devlink.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/ethtool.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/handshake.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/nfsd.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/ovs_flow.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/fou.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/netdev.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/rt_addr.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/ovs_datapath.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/ovs_vport.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/rt_route.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/rt_link.rst] Error 1
    make[2]: *** [Documentation/Makefile:111: Documentation/networking/netlink_spec/tc.rst] Error 1
    make[1]: *** [/tmp/guix-build-linux-libre-documentation-6.8.4.drv-0/linux-6.8.4/Makefile:1705: infodocs] Error 2
    make: *** [Makefile:240: __sub-make] Error 2

How are these not caught in the CI?

Have a nice day,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.