public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Diego Elio Pettenò" <flameeyes@flameeyes.eu>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability
Date: Sun, 13 Apr 2014 07:29:27 +0100	[thread overview]
Message-ID: <CAHcsgXTSMwZtSYnHBc_FBKLKVSNs-qkGaxm40EL7FbP0qkgF-Q@mail.gmail.com> (raw)
In-Reply-To: <5349DD1A.2010901@gentoo.org>

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

I'm pretty sure we have an eclass function to get the name of the 0 group.
On 12 Apr 2014 17:41, "hasufell" <hasufell@gentoo.org> wrote:

> naota@gentoo.org:
> > fcaps.eclass is using group name 'root' which is not available on BSD
> > system. Instead you can use "0", or $(id -g -n 0) if you'd prefer "group
> > name"
> >
> > Index: fcaps.eclass
> > ===================================================================
> > RCS file: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v
> > retrieving revision 1.8
> > diff -u -r1.8 fcaps.eclass
> > --- fcaps.eclass      27 Jun 2013 01:18:57 -0000      1.8
> > +++ fcaps.eclass      13 Apr 2014 00:16:44 -0000
> > @@ -80,7 +80,7 @@
> >
> >       # Process the user options first.
> >       local owner='root'
> > -     local group='root'
> > +     local group=$(id -g -n 0)
> >       local mode='4711'
> >       local caps_mode='711'
> >
> >
>
> # id -g -n 0
> id: 0: no such user
>
>

[-- Attachment #2: Type: text/html, Size: 1447 bytes --]

  reply	other threads:[~2014-04-13  6:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-13  0:18 [gentoo-dev] [PATCH] fcaps.eclass: Group name portability naota
2014-04-13  0:40 ` hasufell
2014-04-13  6:29   ` Diego Elio Pettenò [this message]
2014-04-15  2:11     ` Naohiro Aota
2014-04-15  7:48       ` Cyprien Nicolas
2014-04-15  8:06       ` Alexander Tsoy
2014-04-15  8:13         ` Alexander Tsoy
2014-04-15  2:10   ` Naohiro Aota
2014-07-31 10:21 ` [gentoo-dev] " Mike Frysinger

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=CAHcsgXTSMwZtSYnHBc_FBKLKVSNs-qkGaxm40EL7FbP0qkgF-Q@mail.gmail.com \
    --to=flameeyes@flameeyes.eu \
    --cc=gentoo-dev@lists.gentoo.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