Skip to content

Commit 7605632

Browse files
authored
[manylinux2010] Fix no package hostname available (#1094)
Fix #1069
1 parent b6bcc34 commit 7605632

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/build_scripts/install-runtime-packages.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ else
4848
exit 1
4949
fi
5050

51-
BASETOOLS="autoconf automake bison bzip2 diffutils file hardlink hostname make patch unzip"
51+
BASETOOLS="autoconf automake bison bzip2 diffutils file hardlink make patch unzip"
5252
if [ "${AUDITWHEEL_POLICY}" == "manylinux2010" ]; then
5353
PACKAGE_MANAGER=yum
5454
BASETOOLS="${BASETOOLS} which"
@@ -72,7 +72,7 @@ if [ "${AUDITWHEEL_POLICY}" == "manylinux2010" ]; then
7272
fi
7373
elif [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ]; then
7474
PACKAGE_MANAGER=yum
75-
BASETOOLS="${BASETOOLS} which"
75+
BASETOOLS="${BASETOOLS} hostname which"
7676
# See https://unix.stackexchange.com/questions/41784/can-yum-express-a-preference-for-x86-64-over-i386-packages
7777
echo "multilib_policy=best" >> /etc/yum.conf
7878
# Error out if requested packages do not exist
@@ -101,6 +101,7 @@ elif [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ]; then
101101
fi
102102
elif [ "${AUDITWHEEL_POLICY}" == "manylinux_2_24" ]; then
103103
PACKAGE_MANAGER=apt
104+
BASETOOLS="${BASETOOLS} hostname"
104105
export DEBIAN_FRONTEND=noninteractive
105106
sed -i 's/none/en_US/g' /etc/apt/apt.conf.d/docker-no-languages
106107
apt-get update -qq

0 commit comments

Comments
 (0)