Skip to contentSkip to conversation

support/dependencies/dependencies.sh: reject buggy uutils install

PATCH Applied Peter Korsgaard 2 participants 2 messages May 29 – May 30

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/dependencies/dependencies.sh: reject buggy uutils install

uutils install 0.8.0 as used in Ubuntu 26.04 has a bug in the install applet, breaking a number of packages:

https://github.com/uutils/coreutils/pull/11505
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2151454

The fix has been merged upstream but not yet released or packaged in Ubuntu, so detect and reject the buggy version and explain how to change to the coreutils version. Once fixed the version output will hopefully change.

---
 support/dependencies/dependencies.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
support/dependencies/dependencies.sh +11 -0
index 9c2aeaf23f..8e97f0912d 100755
@@ -190,6 +190,17 @@ if test "${missing_progs}" = "yes" ; then
 	exit 1
 fi
 
+INSTALL_VERSION="$(install --version | sed -n 's/^install \(.*\)/\1/p')"
+if [ "${INSTALL_VERSION}" = "(uutils coreutils) 0.8.0" ]; then
+	echo
+	echo "You have an uutils 'install' version installed which is affected by:"
+	echo "  https://github.com/uutils/coreutils/issues/12166"
+	echo
+	echo "Please change to coreutils install with:"
+	echo "update-alternatives --install /usr/bin/install install /usr/bin/gnuinstall 100"
+	exit 1
+fi
+
 PATCH_VERSION="$(patch -v 2>/dev/null | sed -n 's/^GNU patch \(.*\)/\1/p')"
 if [ -z "${PATCH_VERSION}" ] ; then
 	echo
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · Peter Korsgaard

uutils install 0.8.0 as used in Ubuntu 26.04 has a bug in the install applet, breaking a number of packages:

https://github.com/uutils/coreutils/pull/11505
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2151454

The fix has been merged upstream but not yet released or packaged in Ubuntu, so detect and reject the buggy version and explain how to change to the coreutils version. Once fixed the version output will hopefully change.

Applied to master, thanks.

Regards,
Arnout

Quoted 16 lines
---
  support/dependencies/dependencies.sh | 11 +++++++++++
  1 file changed, 11 insertions(+)
support/dependencies/dependencies.sh +4 -0
index 9c2aeaf23f..8e97f0912d 100755
@@ -190,6 +190,17 @@ if test "${missing_progs}" = "yes" ; then
  	exit 1
  fi
 
+INSTALL_VERSION="$(install --version | sed -n 's/^install \(.*\)/\1/p')"
+if [ "${INSTALL_VERSION}" = "(uutils coreutils) 0.8.0" ]; then
+	echo
+	echo "You have an uutils 'install' version installed which is affected by:"

support/dependencies/dependencies.sh if test "${missing_progs}" = "yes" ; then · line 206

Quoted 10 lines
support/dependencies/dependencies.sh +7 -0
+	echo "  https://github.com/uutils/coreutils/issues/12166"
+	echo
+	echo "Please change to coreutils install with:"
+	echo "update-alternatives --install /usr/bin/install install /usr/bin/gnuinstall 100"
+	exit 1
+fi
+
  PATCH_VERSION="$(patch -v 2>/dev/null | sed -n 's/^GNU patch \(.*\)/\1/p')"
  if [ -z "${PATCH_VERSION}" ] ; then
  	echo

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot