From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 16 10:07:23 2015 Received: (at submit) by debbugs.gnu.org; 16 Jan 2015 15:07:23 +0000 Received: from localhost ([127.0.0.1]:59462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YC8Ud-0006G7-7x for submit@debbugs.gnu.org; Fri, 16 Jan 2015 10:07:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43126) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YC8Uc-0006Ft-12 for submit@debbugs.gnu.org; Fri, 16 Jan 2015 10:07:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC8UV-0006uY-Kg for submit@debbugs.gnu.org; Fri, 16 Jan 2015 10:07:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC8UV-0006uT-Fq for submit@debbugs.gnu.org; Fri, 16 Jan 2015 10:07:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC8UT-0002AS-LD for bug-automake@gnu.org; Fri, 16 Jan 2015 10:07:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC8UN-0006rA-HT for bug-automake@gnu.org; Fri, 16 Jan 2015 10:07:13 -0500 Received: from mout.gmx.net ([212.227.17.21]:55772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC8UN-0006qn-8G for bug-automake@gnu.org; Fri, 16 Jan 2015 10:07:07 -0500 Received: from [10.25.0.194] ([195.159.234.190]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lip2P-1XbhCu1mzF-00cxBB for ; Fri, 16 Jan 2015 16:07:05 +0100 Date: Fri, 16 Jan 2015 16:07:03 +0100 (CET) From: Dimitrios Apostolou To: bug-automake@gnu.org Subject: make dist tarball contains owner/group information from the build system Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Provags-ID: V03:K0:ylMHrJESBUCWSdKpaFDmrd0rwD6gWs7a0h2c3QEAV5Zaxg86hss nwkoTdJcz/O+NkVL48n8losVZfIxHTEhSIqydMQh3HmJoiO4XyRayGCcTvioRJy53q2XLT4 qJEQqORoOMiyq9dkaiN+5l/UiSRKBkTMA88KDwjIc6xFLKy5m7QnA/RADlZm5L0M5jOjrz/ Bu1VAvKKOIjdIxU2gihnw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) (Please CC me in the replies as I'm not subscribed) Hello list, examing the tarballs generated by "make dist" using "tar -tzvvf", it seems that information about group/owner of the buildsystem is being leaked. Example output - notice the jenkins/jenkins field: # tar -tzvvf core/cfengine-3.7.0a1.5ffcc54.tar.gz | head drwxrwxr-x jenkins/jenkins 0 2015-01-16 02:54:12 cfengine-3.7.0a1.5ffcc54/ -rw-rw-r-- jenkins/jenkins 34036 2015-01-16 02:53:55 cfengine-3.7.0a1.5ffcc54/Makefile.in -rwxrwxr-x jenkins/jenkins 658314 2015-01-16 02:53:51 cfengine-3.7.0a1.5ffcc54/configure -rw-rw-r-- jenkins/jenkins 4973 2014-10-27 14:39:26 cfengine-3.7.0a1.5ffcc54/Makefile.am My workaround is to add the following in Makefile.am: TAR_OPTIONS = --owner=0 --group=0 export TAR_OPTIONS I expected that something like this would be the default though. Thanks, Dimitris From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 04 21:34:54 2016 Received: (at 19615) by debbugs.gnu.org; 5 Feb 2016 02:34:54 +0000 Received: from localhost ([127.0.0.1]:60796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRWEX-0003iu-Jz for submit@debbugs.gnu.org; Thu, 04 Feb 2016 21:34:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55787) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRW7z-0003Xp-0D for 19615@debbugs.gnu.org; Thu, 04 Feb 2016 21:28:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRW7q-0006yS-QG for 19615@debbugs.gnu.org; Thu, 04 Feb 2016 21:28:01 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRW7q-0006yI-N1 for 19615@debbugs.gnu.org; Thu, 04 Feb 2016 21:27:58 -0500 Received: from mail-yw0-f173.google.com ([209.85.161.173]:32978) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.82) (envelope-from ) id 1aRW7q-0007dh-Bx for 19615@debbugs.gnu.org; Thu, 04 Feb 2016 21:27:58 -0500 Received: by mail-yw0-f173.google.com with SMTP id z185so40541168ywf.0 for <19615@debbugs.gnu.org>; Thu, 04 Feb 2016 18:27:58 -0800 (PST) X-Gm-Message-State: AG10YOQCgrC05lFyMaUo7fSZ+N0spqgWgoNcsbx5awx0PZ3zouekT9d5LCS2RoXuQz9/LaeMXPlccyT5OHzK6Q== MIME-Version: 1.0 X-Received: by 10.13.229.66 with SMTP id o63mr5406550ywe.208.1454639277852; Thu, 04 Feb 2016 18:27:57 -0800 (PST) Received: by 10.129.34.135 with HTTP; Thu, 4 Feb 2016 18:27:57 -0800 (PST) Date: Thu, 4 Feb 2016 18:27:57 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: make dist tarball contains owner/group information from the build system From: Pavel Roskin To: 19615@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 19615 X-Mailman-Approved-At: Thu, 04 Feb 2016 21:34:52 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) My situation is even worse. My user ID is so large that "make dist" fails for me: tar: value 3186326 out of uid_t range 0..2097151 tar: Exiting with failure status due to previous errors gtar: value 3186326 out of uid_t range 0..2097151 gtar: Exiting with failure status due to previous errors The fix was promised back in year 2008. I hope we'll see it. In the days of cloud computing, large user ID is an everyday reality. http://comments.gmane.org/gmane.comp.sysutils.automake.bugs/4340 -- Regards, Pavel Roskin From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 12 05:49:34 2021 Received: (at control) by debbugs.gnu.org; 12 Dec 2021 10:49:34 +0000 Received: from localhost ([127.0.0.1]:50761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwMQA-0001vu-9M for submit@debbugs.gnu.org; Sun, 12 Dec 2021 05:49:34 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183]:55490 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwMQ8-0001vi-Im for control@debbugs.gnu.org; Sun, 12 Dec 2021 05:49:33 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id 26CE23432EC; Sun, 12 Dec 2021 10:49:26 +0000 (UTC) To: control@debbugs.gnu.org From: Mike Frysinger Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Message-Id: <20211212104926.26CE23432EC@smtp.gentoo.org> Date: Sun, 12 Dec 2021 10:49:26 +0000 (UTC) X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) tags 19615 + confirmed found 19615 1.16 thankyou From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 16 00:26:19 2023 Received: (at 19615) by debbugs.gnu.org; 16 Mar 2023 04:26:19 +0000 Received: from localhost ([127.0.0.1]:40921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcfBy-0005Lz-5S for submit@debbugs.gnu.org; Thu, 16 Mar 2023 00:26:19 -0400 Received: from mout.gmx.net ([212.227.15.18]:49369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcYTi-0002Wg-OM for 19615@debbugs.gnu.org; Wed, 15 Mar 2023 17:16:12 -0400 Received: from [192.168.1.226] ([90.227.12.124]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MHGCo-1pgu4C2F4C-00DEqj for <19615@debbugs.gnu.org>; Wed, 15 Mar 2023 22:16:04 +0100 Message-ID: <5fa2ff55-94cf-cfae-2790-863dd7833d97@gmx.us> Date: Wed, 15 Mar 2023 22:16:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-GB, sv-SE, pl From: Bogdan To: 19615@debbugs.gnu.org Subject: [PATCH] make dist tarball contains owner/group information from the build system Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:PvqMZWmVz9t5EMbq6pKe5Ht5Z2TiyugbYLgj4QILURz8Dfd5YNu XDql7COP3Q0b791TYjYj3prk8VfkgVklqw1oQKSBPCx2pq1t4I1tb06EdWZH3BfJkXP9pjf GrCp1RtNGN+XMj+U3+8RX42uUTBwKTulZb0lzUE0CwvIRsK2+KwnQstlpKaYU53Kl0KVwZS lY4ZGkWv35lX4Rr6gWi5w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:SFDQnc6X6ls=;uk8j0XWwhK3Db84/8FQs3UTTjHJ zwNf+C6xmD8n2UsG1Pd+lG7d2AqjftzU1F6Rrl8WsLRpMtuwYfRDJj/9BnTIStGihQOgX1uH8 tsUeAWZ3B+HU6X4pPf4AwbhkIuU2scyA2kdl5mmRFSOAxDTjmZzoWs0zf3zoX9jim01UgcmTl qS42+0dJEyJwaUj/1pUiP72kXaUoIp3rh0+n34g81sPs8QG6qVggkUcgqZLKLcP9+Jcr4CsAb yYfu4vkyUiPr1FACvNvc4XSVkmHZdzUKdhoUhaYevD5UiBZN7Z448xvGUQM6PztayGjPz1Zmq MnanmyHaEM1sgROZs9m2FzVgehRLAD31r9cSAm0mfMSHfxzYBrRGZ84A8oGbn6wl5jNP/xG39 Q01l6bzUzMkSsVsqReo3D0s4lH6/QGZ6pwPjpbo0mkm2kDoHnkse85ZFy+hpYXhXY+BFexdTc o0VLhgOpPjLpjsXrX1VzPcKZdR1BThy6+FtLYuS9DGESS8mppNwrtKZcUVVY9Nvsxe5qhBrxr MHdR0FwMsS+mAN+O2tAmcvyRDM+LVx5xaNWa8gsbD355bTdfiWPaW0XhWvgH+tujXz07c9gIK v+qBmPf5aTaawodk/tVCa3p2iYSfsPrHilBwazki2MEnPykM6O8fwR5fOZPEM06tRDX71o6At rYdb6nbhrpfjazowjz+xtDoqdON13FWDbOXkbWJPdZto08Xpr2XTNYjjjWZL6Wfz6FMKgh5Qx nW9tugka1hj6+BKApaSRO+YiZjQoZQlap/3YIA4zTHOEc/VOglz9mycQK3InkUo+aTB1Pb9ok 3jmg/znTYDcaEhj96HBuUuzXfehLi8GHhho+L0pnl2LnzQYND6aCwM6tPW27vld0oLR1mAozN thRn/X8tgNROsYOEQXnFjfNL1a8/B5OURuEF2RXKZXTAQAE07U3vnYrfguPtYkDAL21qH2NW1 hZjPJVitSfYtGEj1DAgKSnZPeVM= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19615 X-Mailman-Approved-At: Thu, 16 Mar 2023 00:26:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi. Please see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60419 for a possible solution. -- Regards - Bogdan ('bogdro') D. (GNU/Linux & FreeDOS) X86 assembly (DOS, GNU/Linux): http://bogdro.evai.pl/index-en.php Soft(EN): http://bogdro.evai.pl/soft http://bogdro.evai.pl/soft4asm www.Xiph.org www.TorProject.org www.LibreOffice.org www.GnuPG.org From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 01 17:05:40 2023 Received: (at control) by debbugs.gnu.org; 1 Jun 2023 21:05:41 +0000 Received: from localhost ([127.0.0.1]:38620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4pUK-0001IZ-No for submit@debbugs.gnu.org; Thu, 01 Jun 2023 17:05:40 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:46122 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4pUI-0001IP-Uv for control@debbugs.gnu.org; Thu, 01 Jun 2023 17:05:39 -0400 X-Envelope-From: karl@freefriends.org X-Envelope-To: Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 351L5bI4025968 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 1 Jun 2023 15:05:38 -0600 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 351L5bQi025967; Thu, 1 Jun 2023 15:05:37 -0600 Date: Thu, 1 Jun 2023 15:05:37 -0600 Message-Id: <202306012105.351L5bQi025967@freefriends.org> From: Karl Berry To: control@debbugs.gnu.org Subject: X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: reassign 60419 automake forcemerge 19615 60419 Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) reassign 60419 automake forcemerge 19615 60419 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 29 21:01:25 2023 Received: (at 19615) by debbugs.gnu.org; 30 Jun 2023 01:01:25 +0000 Received: from localhost ([127.0.0.1]:54281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qF2Vp-0004g0-7J for submit@debbugs.gnu.org; Thu, 29 Jun 2023 21:01:25 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:58416 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qF2Ve-0004fJ-8F; Thu, 29 Jun 2023 21:01:15 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 35U11CiP015305 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jun 2023 19:01:12 -0600 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 35U11BCd015304; Thu, 29 Jun 2023 19:01:11 -0600 Date: Thu, 29 Jun 2023 19:01:11 -0600 Message-Id: <202306300101.35U11BCd015304@freefriends.org> From: Karl Berry To: jimis@gmx.net, proski@gnu.org, bogdro@gmx.com Subject: Re: bug#19615: make dist tarball contains owner/group information from the build system In-Reply-To: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19615 Cc: 19615@debbugs.gnu.org, 60419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Dimitrios and all, Back on this bug from 2015 and earlier (yikes, sorry): https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19615 TAR_OPTIONS = --owner=0 --group=0 I expected that something like this would be the default though. I agree it would be desirable, in theory. But we can't make it the default because it's not portable. It would also be a big change from existing practice. I think adding it in projects' Makefile.am is as good as it gets. Certainly much simpler than trying to determine whether tar supports --owner/--group at "make dist" time, and then providing options as to whether to use them or not. Or which options to use. Etc. Thus, instead of making any change to the code (sorry again), I merely added a note to the manual about it. pavel> The fix was promised back in year 2008. I hope we'll see it. If one of the past or current Automake maintainers has code to deal with this, I hope they'll say. http://comments.gmane.org/gmane.comp.sysutils.automake.bugs/4340 404. I didn't try to guess which bug-automake message that might refer to. bogdan> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60419 ... a patch that allows Automake users to provide their own command-line options that will be passed to the 'tar' utility when ... - [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [am__tar='$${TAR-tar} c $${TAR_OPTIONS} -hof - "$$tardir"' am__untar='$${TAR-tar} x $${UNTAR_OPTIONS} -f -'], Unfortunately this sort of change is not portable. tar option parsing is a strange and wonderful area. Non-dash options ("c") can't be mixed with dash options (-hof). Conceivably we could switch to all dash options (... -chof - $${TAR_OPTIONS} ...), but Automake currently goes to a lot of trouble to support even the oldest tars, which don't support dash options at all. And I'm not sure dash options (with older tars) can be separated into different groups. Although such ancient-tar support is probably not important nowadays, more fundamentally, I don't see anything to be gained. Either GNU tar is being used, in which case it already supports the TAR_OPTIONS envvar itself, or it's not, in which case either there are different options or no options at all for the job, and something different has to be done. Automake can't solve that problem, as far as I can see. For instance, trying to chown the unpacked tree before tarring would fail. This "bug report" can be merged with 19615 or simply deleted. My attempts to use debbugs to merge the reports failed for no clear reason. Closing both bugs separately. --thanks, karl. ----------------------------------------------------------------------------- doc: discuss setting uid/gid information in tarballs. In response to https://bugs.gnu.org/19615. * doc/automake.texi (Basics of Distribution): give example of specifying the TAR_OPTIONS (environment) variable used by GNU tar. diff --git a/doc/automake.texi b/doc/automake.texi index a56e7f8ee..1bf74cd73 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -8621,12 +8621,30 @@ More precisely, the gzipped @code{tar} file is named @c See automake #9822. @vindex TAR -You can set the environment variable @code{TAR} to override the tar -program used; it defaults to @code{tar}. @xref{The Types of -Distributions}, for how to generate other kinds of archives. +You can set the environment (or @code{Makefile.am}) variable @code{TAR} +to override the tar program used; it defaults to @code{tar}. +@xref{The Types of Distributions}, for how to generate other kinds of +archives. -For the most part, the files to distribute are automatically found by -Automake: +@vindex TAR_OPTIONS +With GNU tar, you can also set the environment (or @code{Makefile.am}) +variable @code{TAR_OPTIONS} to pass options to @code{tar}. One common +case for this is wanting to avoid using the local user's uid and gid +in the tar file, or the uid being larger than is supported by the tar +format (not uncommon nowadays). This can be done with, for example> + +@example +TAR_OPTIONS = --owner=0 --group=0 +export TAR_OPTIONS +@end example + +@noindent +The @code{export} (a GNU make feature) is necessary to pass the +variable in the environment to the @code{tar} invocation. +(For more discussion, see @url{https://bugs.gnu.org/19615}.) + +For the most part, the files to distribute are automatically +found by Automake: @itemize @bullet @item @@ -11376,13 +11394,12 @@ time may be overridden: @code{make V=1} will produce verbose output, @code{make V=0} less verbose output. Unfortunately, if @code{V} is assigned a value other than 0 or 1, -errors will result. This is problematic when a third-party program or +errors will result. This is problematic when a third-party program or library is built in the same tree and also uses the make variable -@code{V}, with different values. The best workaround is probably to +@code{V}, with different values. The best workaround is probably to set @code{AM_V_P=true} (or similar), either on the make command line -or in the @code{V}-using project's @code{Makefile.am}. For more -discussion: -@url{https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20077}. +or in the @code{V}-using project's @code{Makefile.am}. (For more +discussion, see @url{https://bugs.gnu.org/20077}.) @end itemize @cindex default verbosity for silent rules compile finished at Thu Jun 29 17:59:48 2023 From unknown Sat Jun 14 19:00:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Jul 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator