Eliminate unused id -u tests
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 4 Jan 2010 14:31:10 +0000 (16:31 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 4 Jan 2010 14:31:10 +0000 (16:31 +0200)
- 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
platform.in

index b317273..ccdf929 100644 (file)
@@ -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)
index 764703a..2c25398 100644 (file)
@@ -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)