From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2D4C7138A1F for ; Tue, 15 Apr 2014 02:11:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4BBFE0B8E; Tue, 15 Apr 2014 02:11:08 +0000 (UTC) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2CBCE0B13 for ; Tue, 15 Apr 2014 02:11:07 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id rq2so8877096pbb.19 for ; Mon, 14 Apr 2014 19:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=RhZZklUDLuom6f+iaZvum9htWv8nSP+273tsmFioYYM=; b=gU3BksrfpRjQWIjUIas1CN0P/JVScXhvv7GKTYj8uvXqYW11u9nAWSYuRaCjb0fUYU 9ZRVLnEtViDFAy4F6HyFme5nCIebsulwHcxLHA0HSo+GT4aDCFDhJ/Qhzf0w6D+Z3tJt cM2P9o9MksXDk44QiJ2LYLj0gMRJm+lhMTtnbiehbufqXDC99WVQwIFOfeiugS8iM3GS F2soMkp6W/uRPi2SThNvmJ75ghzxQONRQ6PQyE39/xpoQqWeWdSO9rTkxs+44n8AYvpf 2njMH0Ik9nFGiflpQv3seuIttyhpK/9W81+rjRvVEAchwZT+EWKdYpp02yhdEmg8CO4L oyfg== X-Received: by 10.66.148.230 with SMTP id tv6mr469580pab.155.1397527866517; Mon, 14 Apr 2014 19:11:06 -0700 (PDT) Received: from keyaki.local (sslab-relay.ics.keio.ac.jp. [131.113.126.173]) by mx.google.com with ESMTPSA id vx10sm88030582pac.17.2014.04.14.19.10.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Apr 2014 19:10:50 -0700 (PDT) Sender: Naohiro Aota From: Naohiro Aota To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability References: <87fvlit738.fsf@elisp.net> <5349DD1A.2010901@gentoo.org> Date: Tue, 15 Apr 2014 11:10:43 +0900 In-Reply-To: <5349DD1A.2010901@gentoo.org> (hasufell@gentoo.org's message of "Sun, 13 Apr 2014 00:40:58 +0000") Message-ID: <8761mbe40s.fsf@elisp.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Archives-Salt: 33d8d6e9-5cf6-476d-807a-ea8090dd2076 X-Archives-Hash: 2b5d8c3fd5162b853be1bd8c297cee32 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable hasufell writes: > 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" >>=20 >> Index: fcaps.eclass >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> 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 @@ >>=20=20 >> # Process the user options first. >> local owner=3D'root' >> - local group=3D'root' >> + local group=3D$(id -g -n 0) >> local mode=3D'4711' >> local caps_mode=3D'711' >>=20=20 >>=20 > > # id -g -n 0 > id: 0: no such user Strange. Is this busybox id? /usr/bin/id from both sys-apps/coreutils (Linu= x) and sys-freebsd/freebsd-ubin (FreeBSD) just worked fine for me. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlNMlSgACgkQGpDnPLSHuMBzyACdEOiM5AVgez/sevwFVGTU5KOO DM8AoNy+fvU3D9SlUIo4VN4lC3EI/Cpk =vlAx -----END PGP SIGNATURE----- --=-=-=--