svn commit: r474415 - in head/sysutils: . reggae
Mathieu Arnold
mat at FreeBSD.org
Wed Jul 11 14:10:22 UTC 2018
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= cbsd:sysutils/cbsd
> > >
> > > fails with
> > >
> > > ===> Staging for reggae-0.0.10
> > > ===> reggae-0.0.10 depends on executable: cbsd - not found
> > > ===> Installing existing package /packages/All/cbsd-11.2.0.txz
> > > pkg-static: Insufficient privileges to add packages
>
> 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= ${LOCALBASE}/bin/cbsd:sysutils/cbsd
>
> Right, because this way, it does not have to run it, just check for file
> existence.
>
> > Mmmmm, right, it seems cbsd installs pretty restrictive rights:
> >
> > -r-x------ 0 cbsd cbsd 2993344 4 juil. 20:37 /usr/local/bin/cbsd
> >
> > 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.
>
> Still, that error message shown above looks a bit misleading to me.
>
> ./danfe
>
>
--
Mathieu Arnold
More information about the svn-ports-head
mailing list