GNU bug report logs -
#73316
Numeric user ID too large when generating the tarball
Previous Next
Reported by: glorenzetti <at> cefca.es
Date: Tue, 17 Sep 2024 12:30:02 UTC
Severity: normal
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 73316 <at> debbugs.gnu.org (full text, mbox):
Hi Giacomo - back on your report from last year (sorry):
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73316
1. As you pointed out, TAR_OPTIONS is working fine from the command
line, but it doesn't work when written inside Makefile.am,
You need to add an "export" directive to the Makefile, which requires
GNU make. As in:
TAR_OPTIONS = --owner=0 --group=0
export TAR_OPTIONS
FWIW, I added this to the manual for the automake-1.17 release
(https://gnu.org//automake/manual/automake.html#Basics-of-Distribution)
following another user's report, https://bugs.gnu.org/19615.
I've added your finding of tax-pax to the manual. I don't know if
tar-pax is portable enough now for general use. It wasn't when it was
invented.
2. The workaround we were attempting uses an AS_IF to initialize a
variable to be used as argument in AM_INIT_AUTOMAKE, but
AM_INIT_AUTOMAKE is reading that variable as an option. Are we missing
something regarding the syntax of autotools?
As far as I can see, I don't think AM_INIT_AUTOMAKE can handle
"computed" options. Looking at Automake/Options.pm, it is just
considering the options as string constants and checking for validity
using regexps. I don't see a feasible way to do otherwise.
3. Feature request: it would be nice to have a "tar-no-owner" option
for AM_INIT_AUTOMAKE that sets user and group ids to 0. (The
"privileges" issue apparently is only when extracting with
--same-owner, so intended)
It would be nice. The problem is that there's no portable way to do it,
and it's not simple to detect and change the tar invocation.
If you're willing to use GNU tar, the above should suffice.
If you need to be portable to all tars, then, well, I don't know how/if
it's possible with any other tar.
I'm going to close this for lack of anything more to do, but please
reply/reopen issue as desired. --thanks, karl.
This bug report was last modified 82 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.