← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2114731] Re: Build failing with the rust coreutils

 

On BSD, stat -f %Uz outputs the size of the file in bytes so equivalent
of -c %s on Linux.

As said I don't think there is anything for rust-coreutils to change/fix
there, but it seems it's not uncommon for existing code to check the
--version output to tell if the system is a GNU/Linux or BSD one and
those assumptions will need to be updated (unless the rust utility
string is updated to state something like "Compatible with GNU
coreutils" which would be compatible with existing matching)

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to libdeflate in Ubuntu.
https://bugs.launchpad.net/bugs/2114731

Title:
  Build failing with the rust coreutils

Status in device-tree-compiler:
  New
Status in device-tree-compiler package in Ubuntu:
  Triaged
Status in libdeflate package in Ubuntu:
  New
Status in rust-coreutils package in Ubuntu:
  New

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