Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2018 08:24:12 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Ruslan Makhmatkhanov <rm@FreeBSD.org>
Cc:        Mathieu Arnold <mat@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:  <20180711062412.hfzdgdlg63h5cwhu@atuin.in.mat.cc>
In-Reply-To: <f8914c0a-d18a-26d5-19d0-504b18862900@FreeBSD.org>
References:  <201807102220.w6AMKbGk045380@repo.freebsd.org> <20180710223008.t4c2rqh45s2244xg@atuin.in.mat.cc> <f8914c0a-d18a-26d5-19d0-504b18862900@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--c2b7aksn73wdkdom
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=3D	${LOCALBASE}/bin/cbsd:sysutils/cbsd \
> >=20
> > 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?
> >=20
>=20
> LOCALBASE has nothing to do with a base system, but cbsd executable insta=
lls
> 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:
>=20
> RUN_DEPENDS=3D	cbsd:sysutils/cbsd
>=20
> fails with
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<pha=
se: stage          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =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
> *** Error code 77
>=20
> and changing it to
>=20
> RUN_DEPENDS=3D	${LOCALBASE}/bin/cbsd:sysutils/cbsd
>=20
> 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.

--=20
Mathieu Arnold

--c2b7aksn73wdkdom
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEOraXidLtEhBkQLpbOkUW81GDzkgFAltFootfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNB
QjY5Nzg5RDJFRDEyMTA2NDQwQkE1QjNBNDUxNkYzNTE4M0NFNDgACgkQOkUW81GD
zkilIxAAqmsa9Z9fWwBThMpyT5WlZCnUixrhQIjio7mdmVAdYMP53zoul8AvZEpA
tGF3FyJ3wBPgTMiQZ+CFXy4DfhDO2gOudiCblyNfyt8/Sx5A+sBh2qc81FhMtMIk
phsrltDPsCb+E8yM8rZAyW7CcIziPbc3LrUuZu2D3SJhn1hmxvuw9PKR9VtUdF/F
ipSydsyywINBOLkspuqnJpss5VvaUE542r1GXG0hAcyuL4hxCEyoKnzyByvhZk7X
ckVkUAdjozECfbO4toCYt5xWfzD0/paPzRCCV55nvpr2WCk/nNdMMLndWo4wJAOw
PCBLAdTwwHFBCzOs/wJRvNvvLuIL0MkmhGcbfL/92fOje0F1tI77DzIVcbpngdz2
ucywwInxs5Sg6RXztKpmiJTCql2g9kv3zw6ndfhuLOXOGHgXx6lN3JrkhMNGu6zd
5un06Tmj8M+tvPhp93qddqBAkGvDImtm9ZD80wO29EeDTpCF4rRxOmO4PVilXtkQ
n+Stenk93MmyLIvlHubHkpQOH6T1SDoeEYiooKbVXpwc0v3pGSQe98UfqzrsfQhX
Ige+hYxpmcolM9s8UmgMzGCRSmnYtXRasUpS0LIBWDO2kpTFb5SwxIm7aSXn7pKy
dNcuxQui/bfDFUfAFg+AVVwzetNhqJgPZyLbwrp3SfqcCVB1IU0=
=1j+/
-----END PGP SIGNATURE-----

--c2b7aksn73wdkdom--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180711062412.hfzdgdlg63h5cwhu>