svn commit: r474415 - in head/sysutils: . reggae
Mathieu Arnold
mat at FreeBSD.org
Wed Jul 11 06:24:16 UTC 2018
On Wed, Jul 11, 2018 at 09:11:39AM +0300, Ruslan Makhmatkhanov wrote:
> Mathieu Arnold wrote on 07/11/2018 01:30:
> > On Tue, Jul 10, 2018 at 10:20:37PM +0000, Ruslan Makhmatkhanov wrote:
> > > +RUN_DEPENDS= ${LOCALBASE}/bin/cbsd:sysutils/cbsd \
> >
> > I could not find a cbsd executable in the base system, any reason you
> > added `${LOCALBASE}/bin/` here? Or maybe the software requires that
> > file to be present, not to execute it but to use in some other way?
> >
>
> LOCALBASE has nothing to do with a base system, but cbsd executable installs
> into bin/cbsd under LOCALBASE. The reasoning of this change is explained in
> commit message and PR follow-ups. For some reason dependency line from
> original submission doesn't work in poudriere:
>
> RUN_DEPENDS= cbsd:sysutils/cbsd
>
> fails with
>
> =======================<phase: stage >============================
> ===> 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
> *** Error code 77
>
> and changing it to
>
> RUN_DEPENDS= ${LOCALBASE}/bin/cbsd:sysutils/cbsd
>
> helped. I googled for it and it seems like dependency problem indeed. If I
> comment off cbsd dependency at all, everything is work as expected. But I
> failed to realize what's wrong with cbsd dependency and used this as
> workaround.
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.
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20180711/89497731/attachment.sig>
More information about the svn-ports-all
mailing list