[Buildroot] [PATCH 1/1] package/netopeer2: set MODULES_{OWNER, GROUP}

Heiko Thiery heiko.thiery at gmail.com
Sat Aug 22 21:32:19 UTC 2020


Hi Frabrice,


Am Sa., 22. Aug. 2020 um 23:06 Uhr schrieb Fabrice Fontaine <
fontaine.fabrice at gmail.com>:

> Set MODULES_{OWNER,GROUP} to root, this will avoid the following build
> failure on one of the autobuilders:
>
> CMake Error at CMakeLists.txt:80 (message):
>   Learning server module group failed: id: cannot find name for group ID
> 8000
>
> Fixes:
>  -
> http://autobuild.buildroot.org/results/b2b5c26b03a71fcbf956789aaa8bf6638e6c0994
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  package/netopeer2/netopeer2.mk | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/package/netopeer2/netopeer2.mk b/package/netopeer2/
> netopeer2.mk
> index 641666e8d3..acef908f60 100644
> --- a/package/netopeer2/netopeer2.mk
> +++ b/package/netopeer2/netopeer2.mk
> @@ -11,7 +11,10 @@ NETOPEER2_LICENSE = BSD-3-Clause
>  NETOPEER2_LICENSE_FILES = LICENSE
>  NETOPEER2_DEPENDENCIES = libnetconf2 libyang sysrepo
>
> -NETOPEER2_CONF_OPTS = -DBUILD_CLI=$(if
> $(BR2_PACKAGE_NETOPEER2_CLI),ON,OFF)
> +NETOPEER2_CONF_OPTS = \
> +       -DBUILD_CLI=$(if $(BR2_PACKAGE_NETOPEER2_CLI),ON,OFF) \
> +       -DMODULES_OWNER=root \
> +       -DMODULES_GROUP=root
>
>  define NETOPEER2_INSTALL_INIT_SYSV
>         $(INSTALL) -m 755 -D package/netopeer2/S52netopeer2 \
> --
> 2.28.0
>

Thank you for trying to fix the problem but unfortunately it seems not to
solve the problem.

I did a quick test by running utils/test-pkg:

-- Installing:
/home/hthiery/br-test-pkg/br-arm-full/target/usr/share/yang/modules/netopeer2/ietf-netconf at 2013-09-29.yang
-- Installing:
/home/hthiery/br-test-pkg/br-arm-full/target/usr/bin/netopeer2-server
-- Installing missing sysrepo modules...
[ERR]: Changing owner of
"/home/hthiery/br-test-pkg/br-arm-full/target/etc/sysrepo/data/ietf-netconf-acm.startup"
failed (Operation not permitted).
sysrepoctl error: Failed to change module "ietf-netconf-acm" access
(Operation not authorized)

I also think about the isse and want to try disabling the permission change
option for the build in buildroot. But had no time to do it for now.

-- 
Heiko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20200822/3393f54a/attachment-0001.html>


More information about the buildroot mailing list