summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2020-03-27 14:10:24 +0200
committerPanu Matilainen <pmatilai@redhat.com>2020-03-27 15:49:18 +0200
commit8d628a138ee4c3d1b77b993a3c5b71345ce052e8 (patch)
tree0297f854bace01c3b34f28c56fc67e9bf51ce706
parent9318433c7f7ba1709799bfea4ffd7918507d7daf (diff)
downloadrpm-8d628a138ee4c3d1b77b993a3c5b71345ce052e8.tar.gz
Assume/require POSIX-compliant chmod(1)
The message about telling your OS vendor about GNU utilities that gets removed here dates back to 1997. The X syntax to chmod goes back to at least 2004 specification of POSIX 1003.1, I think we can safely assume that capability in 2020. And that OS vendors know about GNU :)
-rw-r--r--configure.ac18
-rw-r--r--macros.in2
2 files changed, 1 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac
index caed81119..cf872dfdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,24 +58,6 @@ AC_SUBST(RPMCFLAGS)
AC_SYS_LARGEFILE
-dnl
-dnl look for POSIX chmod attributes
-dnl
-AC_MSG_CHECKING(POSIX chmod)
-touch foo.chmodtest
-chmod 744 foo.chmodtest
-chmod +X foo.chmodtest 2>/dev/null
-a=`ls -l foo.chmodtest | awk '{print substr($1,1,10)}'`
-rm -f foo.chmodtest
-if test "$a" = "-rwxr-xr-x"; then
- AC_MSG_RESULT(yes)
- FIXPERMS=a+rX,u+w,g-w,o-w
-else
- AC_MSG_RESULT(no (tell your OS vendor about GNU fileutils))
- FIXPERMS=a+r,u+w,g-w,o-w
-fi
-AC_SUBST(FIXPERMS)
-
dnl AM_DISABLE_SHARED
AM_PROG_LIBTOOL
diff --git a/macros.in b/macros.in
index 033be9188..6f2456045 100644
--- a/macros.in
+++ b/macros.in
@@ -789,7 +789,7 @@ package or when debugging this package.\
%__os_install_post %{___build_post}
# Macro to fix broken permissions in sources
-%_fixperms %{__chmod} -Rf @FIXPERMS@
+%_fixperms %{__chmod} -Rf a+rX,u+w,g-w,o-w
#==============================================================================
# ---- Scriptlet template templates.