[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[automake-commit] branch master updated: m4: handle id failures when che
From: |
Mike Frysinger |
Subject: |
[automake-commit] branch master updated: m4: handle id failures when checking ustar support |
Date: |
Sat, 05 Mar 2022 14:30:57 -0500 |
This is an automated email from the git hooks/post-receive script.
vapier pushed a commit to branch master
in repository automake.
View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=ce3bbbb49b22b0d5e7d0d74b2d44438dbc942f7e
The following commit(s) were added to refs/heads/master by this push:
new ce3bbbb49 m4: handle id failures when checking ustar support
ce3bbbb49 is described below
commit ce3bbbb49b22b0d5e7d0d74b2d44438dbc942f7e
Author: Mike Frysinger <vapier@gentoo.org>
AuthorDate: Thu Feb 24 22:20:53 2022 -0500
m4: handle id failures when checking ustar support
Fixes automake bug https://bugs.gnu.org/20713.
If `id` fails, display a specific warning message to the user.
* m4/tar.m4: Check $am_uid & $am_gid if they're unknown.
---
m4/tar.m4 | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/m4/tar.m4 b/m4/tar.m4
index 7e3df4f98..8f4d2f213 100644
--- a/m4/tar.m4
+++ b/m4/tar.m4
@@ -46,15 +46,19 @@ m4_if([$1], [v7],
am_uid=`id -u || echo unknown`
am_gid=`id -g || echo unknown`
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
- if test $am_uid -le $am_max_uid; then
- AC_MSG_RESULT([yes])
+ if test x$am_uid = xunknown; then
+ AC_MSG_WARN([ancient id detected; assuming current UID is ok, but
dist-ustar might not work])
+ elif test $am_uid -le $am_max_uid; then
+ AC_MSG_RESULT([yes])
else
- AC_MSG_RESULT([no])
- _am_tools=none
+ AC_MSG_RESULT([no])
+ _am_tools=none
fi
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
- if test $am_gid -le $am_max_gid; then
- AC_MSG_RESULT([yes])
+ if test x$gm_gid = xunknown; then
+ AC_MSG_WARN([ancient id detected; assuming current GID is ok, but
dist-ustar might not work])
+ elif test $am_gid -le $am_max_gid; then
+ AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
_am_tools=none
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [automake-commit] branch master updated: m4: handle id failures when checking ustar support,
Mike Frysinger <=