From: Lebbeous Fogle-Weekley Date: Tue, 14 Jan 2014 22:11:45 +0000 (-0500) Subject: In prereq installer, don't try to chown extracted files to original UID/GID X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3ea164d9767e7f3c61ce9ba85940db500a75b825;p=working%2FEvergreen.git In prereq installer, don't try to chown extracted files to original UID/GID As this Makefile is designed to be used by a make process running as root, this will avoid problems on some systems when tar extracts files and tries to give them the same UID/GID as they have in their archives, but those accounts don't exist on the local system. e.g, libdbi has files set 1000/1000. On most systems, there's a user and a group with these IDs, but there can be systems where nothing uses those IDs, and where tar fails with e.g. 'tar: libdbi-0.8.3: Cannot change ownership to uid 1000, gid 1000: Invalid argument' Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install index 6fa4def665..20e5c26579 100644 --- a/Open-ILS/src/extras/Makefile.install +++ b/Open-ILS/src/extras/Makefile.install @@ -48,6 +48,18 @@ APT_TOOL=aptitude -yq APT_SAFE_TOOL=aptitude -P APT_BACKPORT_TOOL=aptitude -t squeeze-backports -yq +# As this Makefile is designed to be used by a make process running as +# root, this will avoid problems on some systems when tar extracts +# files and tries to give them the same UID/GID as they have in their +# archives, but those accounts don't exist on the local system. +# +# e.g, libdbi has files set 1000/1000. On most systems, there's a user +# and a group with these IDs, but there can be systems where nothing +# uses those IDs, and where tar fails with e.g. 'tar: libdbi-0.8.3: +# Cannot change ownership to uid 1000, gid 1000: Invalid argument' +# +export TAR_OPTIONS=--no-same-owner --no-same-permissions + # Fedora? FEDORA=$(shell uname -r | grep "\.fc[0-9][0-9]\.") @@ -196,6 +208,7 @@ PGSQL_CLIENT_DEBS_91 = \ libpq5 \ libpq-dev \ postgresql-client-9.1 +# ---------------------------------------------------------------------------- PGSQL_SERVER_DEBS_90 = \ postgresql-9.0 \