git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Daniel Villeneuve <dvilleneuve.4142@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: permissions of main folder for git-manpages.tar.gz
Date: Tue, 08 Sep 2020 17:09:35 -0700	[thread overview]
Message-ID: <xmqq7dt3x134.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <cc8487b0-c23f-46c3-b8c3-e3188b7c0d0e@gmail.com> (Daniel Villeneuve's message of "Tue, 8 Sep 2020 11:56:47 -0400")

Daniel Villeneuve <dvilleneuve.4142@gmail.com> writes:

> I am using
> https://mirrors.edge.kernel.org/pub/software/scm/git/git-manpages-2.28.0.tar.gz
> to get the manpages part of git.
>
> There has been a change in the permissions of the top-level
> folder, from 2.22 (perms 2750) to 2.25 (perms 0700) to 2.28 (perms
> 2700).  However, the permissions of other files/directories allow
> group/others read/execute, as before.
>
> This change broke my latest installations by preventing group
> members to see manpages (I did a chmod to fix that).
>
> Just sharing this observation, in case the change was not
> intentional.

Thanks for letting me know.  

The build procedure of these documentation tarballs pretty much just
snapshots how I personally have these files locally and not
something that was carefully designed to produce files for public
consumption.

I'm contemplating to apply something like the following patch to the
build procedure so that I can externally control the mode bits
recorded in the tarball by setting TAR_C_EXTRA_OPTS to options that
overrides mode bits and stuff (it takes GNU tar unfortunately, but
I suspect I am the only person that runs dist-doc target anyway)

 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 86e5411f39..2a8510f6e6 100644
--- a/Makefile
+++ b/Makefile
@@ -3041,6 +3041,7 @@ artifacts-tar:: $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) $(OTHER_PROGRAMS) \
 	$(TAR) czf "$(ARTIFACTS_DIRECTORY)/artifacts.tar.gz" $^ templates/blt/
 .PHONY: artifacts-tar
 
+TAR_C_EXTRA_OPTS =
 htmldocs = git-htmldocs-$(GIT_VERSION)
 manpages = git-manpages-$(GIT_VERSION)
 .PHONY: dist-doc distclean
@@ -3048,7 +3049,7 @@ dist-doc:
 	$(RM) -r .doc-tmp-dir
 	mkdir .doc-tmp-dir
 	$(MAKE) -C Documentation WEBDOC_DEST=../.doc-tmp-dir install-webdoc
-	cd .doc-tmp-dir && $(TAR) cf ../$(htmldocs).tar .
+	cd .doc-tmp-dir && $(TAR) cf ../$(htmldocs).tar $(TAR_C_EXTRA_OPTS) .
 	gzip -n -9 -f $(htmldocs).tar
 	:
 	$(RM) -r .doc-tmp-dir
@@ -3058,7 +3059,7 @@ dist-doc:
 		man5dir=../.doc-tmp-dir/man5 \
 		man7dir=../.doc-tmp-dir/man7 \
 		install
-	cd .doc-tmp-dir && $(TAR) cf ../$(manpages).tar .
+	cd .doc-tmp-dir && $(TAR) cf ../$(manpages).tar $(TAR_C_EXTRA_OPTS) .
 	gzip -n -9 -f $(manpages).tar
 	$(RM) -r .doc-tmp-dir
 


  reply	other threads:[~2020-09-09  0:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08 15:56 permissions of main folder for git-manpages.tar.gz Daniel Villeneuve
2020-09-09  0:09 ` Junio C Hamano [this message]
2020-09-09  3:28   ` Carlo Marcelo Arenas Belón
2020-09-09 18:10     ` Junio C Hamano
2020-09-09 19:07     ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqq7dt3x134.fsf@gitster.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=dvilleneuve.4142@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).