[Bug 2114731] Re: Build failing with the rust coreutils due to "stat --version" matching

Launchpad Bug Tracker 2114731 at bugs.launchpad.net
Tue Mar 10 05:53:14 UTC 2026


This bug was fixed in the package device-tree-compiler - 1.7.2-2ubuntu1

---------------
device-tree-compiler (1.7.2-2ubuntu1) resolute; urgency=medium

  * Add upstream patch for uutils compatibility (LP: #2114731)

 -- Tobias Heider <tobias.heider at canonical.com>  Tue, 27 Jan 2026
13:09:33 +0100

** Changed in: device-tree-compiler (Ubuntu)
       Status: Triaged => Fix Released

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

Title:
  Build failing with the rust coreutils due to "stat --version" matching

Status in device-tree-compiler:
  Fix Released
Status in device-tree-compiler package in Ubuntu:
  Fix Released
Status in libdeflate package in Ubuntu:
  New
Status in rust-coreutils package in Ubuntu:
  Won't Fix

Bug description:
  The tests have this logic

  https://github.com/dgibson/dtc/blob/84d9dd2fcbc865a35d7f04d9b465b05ef286d281/tests/run_tests.sh#L45

  	stat --version 2>/dev/null | grep -q 'GNU'
  	GNUSTAT=$?
  	if [ "$GNUSTAT" -ne 0 ]; then
  		# Assume BSD stat if we can't detect as GNU stat
  		STATSZ="stat -f %Uz"
  	else
  		STATSZ="stat -c %s"
  	fi

  but with the rust coreutils

  # stat --version 2>/dev/null
  stat 0.0.30

  which leas to use %Uz which isn't working

To manage notifications about this bug go to:
https://bugs.launchpad.net/device-tree-compiler/+bug/2114731/+subscriptions




More information about the foundations-bugs mailing list