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 97A46138A1F for ; Sun, 13 Apr 2014 00:41:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D05DE094E; Sun, 13 Apr 2014 00:41:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8518BE08A1 for ; Sun, 13 Apr 2014 00:41:06 +0000 (UTC) Received: from 127.0.0.1 (tor20.anonymizer.ccc.de [31.172.30.3]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: hasufell) by smtp.gentoo.org (Postfix) with ESMTPSA id D3A3B3401D4 for ; Sun, 13 Apr 2014 00:41:04 +0000 (UTC) Message-ID: <5349DD1A.2010901@gentoo.org> Date: Sun, 13 Apr 2014 00:40:58 +0000 From: hasufell 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability References: <87fvlit738.fsf@elisp.net> In-Reply-To: <87fvlit738.fsf@elisp.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: d08e6269-9770-48f8-8d14-c8aa10dd2e32 X-Archives-Hash: 02e293ec6d0244e8fdbf9dc75a716611 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