public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Chris Demetriou <cgd@google.com>
To: Basile Starynkevitch <basile@starynkevitch.net>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [obvious patch] add missing chmod to when copying headers
Date: Thu, 11 Mar 2010 22:14:00 -0000	[thread overview]
Message-ID: <2e7be40c1003111411m42481ff6j89bbb5ef75ab6238@mail.gmail.com> (raw)
In-Reply-To: <2e7be40c1003111408g5d8cba66r9605cf12a79bb22c@mail.gmail.com>

On Thu, Mar 11, 2010 at 13:28, Basile Starynkevitch
<basile@starynkevitch.net> wrote:
>
> Chris Demetriou wrote:
>>
>> 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.
>
> Perhaps the same should be done for PLUGIN_HEADERS (if not done yet).

AFAICT they are installed using $(install_data), so get reasonable perms, e.g.:

/usr/bin/install -c -m 644 ../../trunk/gcc/coretypes.h
/g/users/cgd/proj/gcc-trunk/bld/../inst/lib/gcc/x86_64-linux/4.5.0/plugin/include/coretypes.h


FYI, IIRC there are a few files that get built/installed with the
umask of the person doing the build.  This is probably is a bug in the
build/install process (IMO at least), but is easily fixable by using a
'good' umask when building.  (the files whose permissions I fixed,
OTOH, came from umask at *checkout* time... somewhat confusing, and
the way the makefile installed the rest of the related headers was
obviously different so IMO there was an obvious fix to make.  I've not
looked into other issues, my *build* scripts set a good umask.  8-)



chris

  parent reply	other threads:[~2010-03-11 22:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-11 20:31 Chris Demetriou
2010-03-11 21:55 ` Basile Starynkevitch
     [not found]   ` <2e7be40c1003111408g5d8cba66r9605cf12a79bb22c@mail.gmail.com>
2010-03-11 22:14     ` Chris Demetriou [this message]
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

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

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

  git send-email \
    --in-reply-to=2e7be40c1003111411m42481ff6j89bbb5ef75ab6238@mail.gmail.com \
    --to=cgd@google.com \
    --cc=basile@starynkevitch.net \
    --cc=gcc-patches@gcc.gnu.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.
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).