From 1da827724cfd6301c4e23ad1b7db52af3a359ff1 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 4 Jan 2010 16:31:10 +0200 Subject: [PATCH] Eliminate unused id -u tests - this was used by _fixowner and _fixgroup macros back in the day but they no longer exist as they're unusable without building as root --- configure.ac | 11 ----------- platform.in | 1 - 2 files changed, 12 deletions(-) diff --git a/configure.ac b/configure.ac index b317273..ccdf929 100644 --- a/configure.ac +++ b/configure.ac @@ -102,18 +102,7 @@ AC_PATH_PROG(__GPG, gpg, /usr/bin/gpg, $MYPATH) AC_PATH_PROG(__GREP, grep, /bin/grep, $MYPATH) AC_PATH_PROG(__GZIP, gzip, /bin/gzip, $MYPATH) AC_PATH_PROG(__UNZIP, unzip, /usr/bin/unzip, $MYPATH) - AC_PATH_PROG(__ID, id, /usr/bin/id, $MYPATH) -AC_MSG_CHECKING(checking whether id supports -u) - if ${__ID} -u 2>&1 > /dev/null ; then - __ID_U="%{__id} -u" - AC_MSG_RESULT(yes) - else - __ID_U="%{__id} | %{__sed} 's/[[^=]]*=\\\\([[0-9]][[0-9]]*\\\\).*$/\\\\1/'" - AC_MSG_RESULT(no) - fi -AC_SUBST(__ID_U) - AC_PATH_PROG(__INSTALL, install, /usr/bin/install, $MYPATH) AC_PATH_PROG(__XZ, xz, /usr/bin/xz, $MYPATH) AC_PATH_PROG(__MAKE, make, /usr/bin/make, $MYPATH) diff --git a/platform.in b/platform.in index 764703a..2c25398 100644 --- a/platform.in +++ b/platform.in @@ -68,7 +68,6 @@ @redhat@#--------------------------------------------------------------------- @redhat@# Expanded at end of %prep @redhat@# -@redhat@%__id_u @__ID_U@ @redhat@%_fixperms %{__chmod} -Rf @FIXPERMS@ @redhat@#--------------------------------------------------------------------- @redhat@# Always use %defattr(-,root,root) in %files (added in rpm-4.0.4) -- 2.7.4