Skip to contentSkip to conversation

package/netopeer2: set MODULES_{OWNER, GROUP}

PATCH New Fabrice Fontaine 2 participants 2 messages Aug 22, 2020

lore
Share & tools
lore
#0 lore raw

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

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

---
 package/netopeer2/netopeer2.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/netopeer2/netopeer2.mk +4 -1
index 641666e8d3..acef908f60 100644
@@ -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 \
Signature · 1 line
2.28.0
#1 lore raw

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

Hi Frabrice,

Am Sa., 22. Aug. 2020 um 23:06 Uhr schrieb Fabrice Fontaine < [email protected]>:

Quoted 34 lines

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

---
 package/netopeer2/netopeer2.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/netopeer2/ renamed from package/netopeer2/netopeer2.mk +0 -0

netopeer2.mk
index 641666e8d3..acef908f60 100644

package/netopeer2/netopeer2.mk +4 -1
@@ -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 \
Quoted 3 lines

--
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.

Signature · 4 lines
Heiko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200822/3393f54a/attachment.html>