Date: Wed, 11 Jul 2018 16:10:18 +0200 From: Mathieu Arnold <mat@FreeBSD.org> To: Alexey Dokuchaev <danfe@FreeBSD.org> Cc: Mathieu Arnold <mat@FreeBSD.org>, Ruslan Makhmatkhanov <rm@FreeBSD.org>, 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> In-Reply-To: <20180711115417.GA58171@FreeBSD.org> References: <201807102220.w6AMKbGk045380@repo.freebsd.org> <20180710223008.t4c2rqh45s2244xg@atuin.in.mat.cc> <f8914c0a-d18a-26d5-19d0-504b18862900@FreeBSD.org> <20180711062412.hfzdgdlg63h5cwhu@atuin.in.mat.cc> <20180711115417.GA58171@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180711141018.ztatq2v6l5htse4q>