From owner-svn-ports-all@freebsd.org Wed Jul 11 14:10:21 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF5C81041346; Wed, 11 Jul 2018 14:10:21 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (prod2.absolight.net [79.143.243.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prod2.absolight.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 79EE27386B; Wed, 11 Jul 2018 14:10:21 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 10DDDBDC89; Wed, 11 Jul 2018 16:10:19 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [IPv6:2a01:678:ab:50::42:42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: mat) by prod2.absolight.net (Postfix) with ESMTPSA id BD038BDC85; Wed, 11 Jul 2018 16:10:18 +0200 (CEST) Date: Wed, 11 Jul 2018 16:10:18 +0200 From: Mathieu Arnold To: Alexey Dokuchaev Cc: Mathieu Arnold , Ruslan Makhmatkhanov , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r474415 - in head/sysutils: . reggae Message-ID: <20180711141018.ztatq2v6l5htse4q@ogg.in.absolight.net> References: <201807102220.w6AMKbGk045380@repo.freebsd.org> <20180710223008.t4c2rqh45s2244xg@atuin.in.mat.cc> <20180711062412.hfzdgdlg63h5cwhu@atuin.in.mat.cc> <20180711115417.GA58171@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20180711115417.GA58171@FreeBSD.org> User-Agent: NeoMutt/20180622 X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 14:10:22 -0000 On Wed, Jul 11, 2018 at 11:54:17AM +0000, Alexey Dokuchaev wrote: > On Wed, Jul 11, 2018 at 08:24:12AM +0200, Mathieu Arnold wrote: > > On Wed, Jul 11, 2018 at 09:11:39AM +0300, Ruslan Makhmatkhanov wrote: > > > ... > > > RUN_DEPENDS=3D cbsd:sysutils/cbsd > > >=20 > > > fails with > > >=20 > > > =3D=3D=3D> Staging for reggae-0.0.10 > > > =3D=3D=3D> reggae-0.0.10 depends on executable: cbsd - not found > > > =3D=3D=3D> Installing existing package /packages/All/cbsd-11.2.0.txz > > > pkg-static: Insufficient privileges to add packages >=20 > Looks more like "insufficient privileges to run the executable to see if > the depencency is installed". Yes, the error is misleading, because it did install the run dependencies as root, and then runs make stage as a regular user, as it should, which looks for the run dependencies, finds it cannot find a cbsd executable, tries to install the package, and fails because not root. > > > RUN_DEPENDS=3D ${LOCALBASE}/bin/cbsd:sysutils/cbsd >=20 > Right, because this way, it does not have to run it, just check for file > existence. >=20 > > Mmmmm, right, it seems cbsd installs pretty restrictive rights: > >=20 > > -r-x------ 0 cbsd cbsd 2993344 4 juil. 20:37 /usr/local/bin/cbsd > >=20 > > reggea would need to run as cbsd too to be able to work properly. Or as > > root, as I wonder, cbsd would also need to run as, reading from its > > pkg-descr, it is supposed to manage jails and bhyve. Wondering why cbsd > > installs with those rights. >=20 > Still, that error message shown above looks a bit misleading to me. >=20 > ./danfe >=20 >=20 --=20 Mathieu Arnold