From c3e5f808a68d7c938f8320b71f581e09d9307444 Mon Sep 17 00:00:00 2001 From: "David M. Lary" Date: Mon, 26 Jan 2026 15:06:24 -0600 Subject: [PATCH] manylinux: Fixes for gid check, and chown python /man directories --- manylinux-common/install-python-packages.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manylinux-common/install-python-packages.sh b/manylinux-common/install-python-packages.sh index db198b8..7809a7d 100755 --- a/manylinux-common/install-python-packages.sh +++ b/manylinux-common/install-python-packages.sh @@ -15,7 +15,7 @@ done # This GID isn't used in the manylinux image, but just to be safe, we'll verify # it's still not in use during the image build. BUILDER_GID=200 -if grep "^${BUILDER_GID}:" /etc/group; then +if id -g "$BUILDER_GID" 2> /dev/null; then echo "Error: builder gid $BUILDER_GID already exists! Aborting" exit 1 fi @@ -36,7 +36,7 @@ done for DIR in /opt/python/*; do mkdir $DIR/man chown -R :$BUILDER_GID $DIR/man - chmod g+w $DIR + chmod g+w $DIR/man done for DIR in /opt/python/*/share; do chown -R :$BUILDER_GID $DIR