Skip to content

Commit 64cb69f

Browse files
jacmetarnout
authored andcommitted
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: uutils/coreutils#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. For simplicity, only check for the exact 0.8.0 version string. Hopefully when it is fixed in Ubuntu, they also update the version string. Note that earlier versions of uutils have the same issue of course, but those versions were never the default "install" on Ubuntu (or anywhere else). Signed-off-by: Peter Korsgaard <[email protected]> Signed-off-by: Arnout Vandecappelle <[email protected]>
1 parent 7811063 commit 64cb69f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎support/dependencies/dependencies.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,17 @@ if test "${missing_progs}" = "yes" ; then
190190
exit 1
191191
fi
192192

193+
INSTALL_VERSION="$(install --version | sed -n 's/^install \(.*\)/\1/p')"
194+
if [ "${INSTALL_VERSION}" = "(uutils coreutils) 0.8.0" ]; then
195+
echo
196+
echo "You have an uutils 'install' version installed which is affected by:"
197+
echo " https://github.com/uutils/coreutils/issues/12166"
198+
echo
199+
echo "Please change to coreutils install with:"
200+
echo "update-alternatives --install /usr/bin/install install /usr/bin/gnuinstall 100"
201+
exit 1
202+
fi
203+
193204
PATCH_VERSION="$(patch -v 2>/dev/null | sed -n 's/^GNU patch \(.*\)/\1/p')"
194205
if [ -z "${PATCH_VERSION}" ] ; then
195206
echo

0 commit comments

Comments
 (0)