The iputils build will try to make the binaries callable by regular users
using setcap or setuid depending on what is available on the system. It
turns out that libcap provides this command. I figured that adding the
dependency on libcap-native and having meson search STAGING_DIR_NATIVE
would work. If libcap is not on in PACKAGECONFIG, then it falls back to
setuid. The script which does this is build-aux/setcap-setuid.sh.

This will become more apparent in version 2 which will contain the missing
a patch file.

- Jate

On Thu, Feb 18, 2021 at 11:35 AM Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> On Thu, 2021-02-18 at 00:11 +0000, Jate Sujjavanich wrote:
> > Search for setcap in STAGING_DIR_NATIVE to avoid host contamination. Add
> > DEPENDS for libcap-native to supply this if we select libcap for
> > PACKAGECONFIG.
>
> Why does it need setcap-native, isn't the target setcap enough? It seems
> odd that it should need it...
>
> Cheers,
>
> Richard
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148324): 
https://lists.openembedded.org/g/openembedded-core/message/148324
Mute This Topic: https://lists.openembedded.org/mt/80718714/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to