public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [obvious patch] add missing chmod to when copying headers
@ 2010-03-11 20:31 Chris Demetriou
  2010-03-11 21:55 ` Basile Starynkevitch
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Chris Demetriou @ 2010-03-11 20:31 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

odd corner case when making/installing: if sources were checked out
with umask that denies group or other read (e.g. 077 or 027), most of
the installed gcc includes would come out group/other-readable but a
few wouldn't.
problem: missing chmods after copying the headers, in stmp-int-headers.
Since all of the rest of the headers are chmodded after copy, the
solution is obvious.


bootstrapped, verified permissions manually, committed as obvious.


chris
---
[gcc/ChangeLog]
2010-03-11  Chris Demetriou  <cgd@google.com>

        * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
        include/stdint-gcc.h, and include/stdint.h world-readable.

[-- Attachment #2: chmod.patch --]
[-- Type: text/x-diff, Size: 1027 bytes --]

[gcc/ChangeLog]
2010-03-11  Chris Demetriou  <cgd@google.com>

	* Makefile.in (stmp-int-hdrs): Make include/unwind.h,
	include/stdint-gcc.h, and include/stdint.h world-readable.

Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in	(revision 157391)
+++ gcc/Makefile.in	(working copy)
@@ -3835,14 +3835,17 @@
 	done
 	rm -f include/unwind.h
 	cp $(UNWIND_H) include/unwind.h
+	chmod a+r include/unwind.h
 	rm -f include/stdint.h
 	if [ $(USE_GCC_STDINT) = wrap ]; then \
 	  rm -f include/stdint-gcc.h; \
 	  cp $(srcdir)/ginclude/stdint-gcc.h include/stdint-gcc.h; \
+	  chmod a+r include/stdint-gcc.h; \
 	  cp $(srcdir)/ginclude/stdint-wrap.h include/stdint.h; \
 	elif [ $(USE_GCC_STDINT) = provide ]; then \
 	  cp $(srcdir)/ginclude/stdint-gcc.h include/stdint.h; \
 	fi
+	chmod a+r include/stdint.h
 	set -e; for ml in `cat fixinc_list`; do \
 	  sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \
 	  multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-03-15  8:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-11 20:31 [obvious patch] add missing chmod to when copying headers Chris Demetriou
2010-03-11 21:55 ` Basile Starynkevitch
     [not found]   ` <2e7be40c1003111408g5d8cba66r9605cf12a79bb22c@mail.gmail.com>
2010-03-11 22:14     ` Chris Demetriou
2010-03-12 10:44 ` Paolo Bonzini
2010-03-12 19:52   ` Chris Demetriou
2010-03-12 20:26     ` Paolo Bonzini
2010-03-15  7:49 ` Eric Botcazou
2010-03-15  8:06   ` Chris Demetriou
2010-03-15  8:57     ` Chris Demetriou
2010-03-15  9:09       ` Eric Botcazou

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).