[Bug 2113963] Re: breaks linu-restricted-modules build

Julian Andres Klode 2113963 at bugs.launchpad.net
Wed Jun 11 17:33:03 UTC 2025


The file format for these files is:

<hash><space><mode><path>

where

<mode> is either a space for text mode, or a * for binary mode.

This works fine in the first line, but second and more lines fail with
*, that is:

Creation works fine:

jak at jak-t14-g3 ~/Downloads> touch x y z
jak at jak-t14-g3 ~/Downloads [1]> gnusha256sum  --binary x y z
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *x
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *y
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *z
jak at jak-t14-g3 ~/Downloads> coreutils sha256sum  --binary x y z
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *x
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *y
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 *z
jak at jak-t14-g3 ~/Downloads> gnusha256sum  --binary x y z > hashes

Reading the files with rust-coreutils sha256sum fails
jak at jak-t14-g3 ~/Downloads> coreutils sha256sum  -c hashes
x: OK
sha256sum: *y: No such file or directory
*y: FAILED open or read
sha256sum: *z: No such file or directory
*z: FAILED open or read
sha256sum: WARNING: 2 listed files could not be read
jak at jak-t14-g3 ~/Downloads [1]> gnusha256sum  -c hashes
x: OK
y: OK
z: OK

** Also affects: coreutils-from (Ubuntu)
   Importance: Undecided
       Status: New

** Summary changed:

- breaks linu-restricted-modules build
+ rust-coreutils: sha256sum -c does not support * modifier outside of first line

** Changed in: coreutils-from (Ubuntu)
       Status: New => Triaged

** Changed in: rust-coreutils (Ubuntu)
       Status: New => Triaged

** Bug watch added: github.com/uutils/coreutils/issues #8155
   https://github.com/uutils/coreutils/issues/8155

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils-from in Ubuntu.
https://bugs.launchpad.net/bugs/2113963

Title:
  rust-coreutils: sha256sum -c does not support * modifier outside of
  first line

Status in coreutils-from package in Ubuntu:
  Triaged
Status in rust-coreutils package in Ubuntu:
  Triaged

Bug description:
  Hi

  lrm build fails, or it's 'lrg' intermediate to be exact. It's used to
  build signed versions of the nvidia modules, and the failing part is
  doing:

  sha256sum -c SHA256SUMS
  nvidia-drm.ko: OK
  sha256sum: *nvidia-modeset.ko: No such file or directory
  *nvidia-modeset.ko: FAILED open or read
  sha256sum: *nvidia-peermem.ko: No such file or directory
  *nvidia-peermem.ko: FAILED open or read
  sha256sum: *nvidia-uvm.ko: No such file or directory
  *nvidia-uvm.ko: FAILED open or read
  sha256sum: *nvidia.ko: No such file or directory
  *nvidia.ko: FAILED open or read
  sha256sum: WARNING: 4 listed files could not be read

  so the first file is checked fine, but it claims the others aren't
  present, but they are

  reverting to gnu-coreutils fixed it:

  sha256sum -c SHA256SUMS                    
  nvidia-drm.ko: OK
  nvidia-modeset.ko: OK
  nvidia-peermem.ko: OK
  nvidia-uvm.ko: OK
  nvidia.ko: OK

  tested on questing chroot.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils-from/+bug/2113963/+subscriptions




More information about the foundations-bugs mailing list