* [Buildroot] [PATCH] package/sysrepo: fix build on riscv32
@ 2026-02-18 12:46 Vincent Cruz
2026-02-24 6:17 ` Vincent Jardin via buildroot
0 siblings, 1 reply; 6+ messages in thread
From: Vincent Cruz @ 2026-02-18 12:46 UTC (permalink / raw)
To: buildroot; +Cc: Heiko Thiery, Jan Kundrát, Vincent Cruz, Vincent Jardin
Fixes:
https://autobuild.buildroot.net/results/b0f/b0f30feeddad1a8d51ac87af8b7c56fd9a9b5ff6/build-end.log
Upstream: https://github.com/sysrepo/sysrepo/commit/a0661b7e6a7b2f784fe3222048066c31187c6f92
Signed-off-by: Vincent Jardin <vjardin@free.fr>
Signed-off-by: Vincent Cruz <mooz@blockos.org>
---
Tested with Buildroot gitlab CI:
https://gitlab.com/v_cz/buildroot/-/pipelines/2331736795
...-sr_cond_futex-only-if-SYS_futex-sys.patch | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 package/sysrepo/0001-cmake-UPDATE-use-sr_cond_futex-only-if-SYS_futex-sys.patch
diff --git a/package/sysrepo/0001-cmake-UPDATE-use-sr_cond_futex-only-if-SYS_futex-sys.patch b/package/sysrepo/0001-cmake-UPDATE-use-sr_cond_futex-only-if-SYS_futex-sys.patch
new file mode 100644
index 0000000000..d1d2eac758
--- /dev/null
+++ b/package/sysrepo/0001-cmake-UPDATE-use-sr_cond_futex-only-if-SYS_futex-sys.patch
@@ -0,0 +1,33 @@
+From 6917e00fb6c99a97dacdae7040e5c4c53752b10f Mon Sep 17 00:00:00 2001
+From: Vincent Cruz <mooz@blockos.org>
+Date: Tue, 17 Feb 2026 14:14:06 +0100
+Subject: [PATCH 1/1] cmake UPDATE use sr_cond_futex only if SYS_futex syscall
+ is available
+
+Some architectures (for ex. riscv32) may not support SYS_futex system
+call, even though linux/futex.h include file is present.
+
+Upstream: https://github.com/sysrepo/sysrepo/commit/a0661b7e6a7b2f784fe3222048066c31187c6f92
+
+Signed-off-by: Vincent Cruz <mooz@blockos.org>
+---
+ CMakeLists.txt | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9b36de44..e1b39c8c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -163,7 +163,8 @@ set(NACM_SRMON_DATA_PERM "600" CACHE STRING "NACM modules ietf-netconf-acm and s
+ # sr_cond implementation
+ if(NOT SR_COND_IMPL)
+ check_include_file("linux/futex.h" HAS_FUTEX)
+- if(HAS_FUTEX)
++ check_symbol_exists(SYS_futex "sys/syscall.h" HAS_SYS_FUTEX)
++ if(HAS_FUTEX AND HAS_SYS_FUTEX)
+ set(SR_COND_IMPL "sr_cond_futex")
+ else()
+ set(SR_COND_IMPL "sr_cond_pthread")
+--
+2.51.0
+
--
2.51.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH] package/sysrepo: fix build on riscv32
2026-02-18 12:46 [Buildroot] [PATCH] package/sysrepo: fix build on riscv32 Vincent Cruz
@ 2026-02-24 6:17 ` Vincent Jardin via buildroot
2026-02-24 14:23 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 6+ messages in thread
From: Vincent Jardin via buildroot @ 2026-02-24 6:17 UTC (permalink / raw)
To: Vincent Cruz, Thomas Petazzoni; +Cc: buildroot, Heiko Thiery, Jan Kundrát
Hi Vincent,
thanks for taking care of this upstream ; it was a quick acceptance by sysrepo.
@Thomas,
>
> Upstream: https://github.com/sysrepo/sysrepo/commit/a0661b7e6a7b2f784fe3222048066c31187c6f92
It should solve your comments:
https://lists.buildroot.org/pipermail/buildroot/2026-January/795342.html
Best regards,
Vincent
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH] package/sysrepo: fix build on riscv32
2026-02-24 6:17 ` Vincent Jardin via buildroot
@ 2026-02-24 14:23 ` Thomas Petazzoni via buildroot
2026-02-27 9:54 ` Vincent Cruz
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-02-24 14:23 UTC (permalink / raw)
To: Vincent Jardin; +Cc: Vincent Cruz, buildroot, Heiko Thiery, Jan Kundrát
Vincent, Vincent,
On Tue, Feb 24, 2026 at 07:17:23AM +0100, Vincent Jardin wrote:
> @Thomas,
>
> >
> > Upstream: https://github.com/sysrepo/sysrepo/commit/a0661b7e6a7b2f784fe3222048066c31187c6f92
>
> It should solve your comments:
> https://lists.buildroot.org/pipermail/buildroot/2026-January/795342.html
Absolutely! Could you send an updated Buildroot patch, which
integrates this upstream sysrepo patch?
Thanks for the work on this topic!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH] package/sysrepo: fix build on riscv32
2026-02-24 14:23 ` Thomas Petazzoni via buildroot
@ 2026-02-27 9:54 ` Vincent Cruz
2026-02-27 13:11 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 6+ messages in thread
From: Vincent Cruz @ 2026-02-27 9:54 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: Vincent Jardin, buildroot, Heiko Thiery, Jan Kundrát
Hello Thomas,
----- On Feb 24, 2026, at 3:23 PM, Thomas Petazzoni thomas.petazzoni@bootlin.com wrote:
> Absolutely! Could you send an updated Buildroot patch, which
> integrates this upstream sysrepo patch?
Do you mean dropping the patch file and making the package use the devel branch?
Regards,
Vincent Cruz
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH] package/sysrepo: fix build on riscv32
2026-02-27 9:54 ` Vincent Cruz
@ 2026-02-27 13:11 ` Thomas Petazzoni via buildroot
2026-02-27 14:33 ` Vincent Cruz
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-02-27 13:11 UTC (permalink / raw)
To: Vincent Cruz; +Cc: Vincent Jardin, buildroot, Heiko Thiery, Jan Kundrát
On Fri, Feb 27, 2026 at 09:54:26AM +0000, Vincent Cruz wrote:
> > Absolutely! Could you send an updated Buildroot patch, which
> > integrates this upstream sysrepo patch?
>
> Do you mean dropping the patch file and making the package use the devel branch?
No, backport the patch to whatever stable version the Buildroot
package is using, and add the patch into package/<pkg>/. Don't forget
the Upstream: tag in the patch, pointing to the upstream commit.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH] package/sysrepo: fix build on riscv32
2026-02-27 13:11 ` Thomas Petazzoni via buildroot
@ 2026-02-27 14:33 ` Vincent Cruz
0 siblings, 0 replies; 6+ messages in thread
From: Vincent Cruz @ 2026-02-27 14:33 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: Vincent Jardin, buildroot, Heiko Thiery, Jan Kundrát
----- On Feb 27, 2026, at 2:11 PM, Thomas Petazzoni thomas.petazzoni@bootlin.com wrote:
>> Do you mean dropping the patch file and making the package use the devel branch?
>
> No, backport the patch to whatever stable version the Buildroot
> package is using, and add the patch into package/<pkg>/. Don't forget
> the Upstream: tag in the patch, pointing to the upstream commit.
Ok. This is what I did in this patch. I added a patch file with the fix and the Upstream tag.
Regards,
Vincent Cruz
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-02-27 14:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18 12:46 [Buildroot] [PATCH] package/sysrepo: fix build on riscv32 Vincent Cruz
2026-02-24 6:17 ` Vincent Jardin via buildroot
2026-02-24 14:23 ` Thomas Petazzoni via buildroot
2026-02-27 9:54 ` Vincent Cruz
2026-02-27 13:11 ` Thomas Petazzoni via buildroot
2026-02-27 14:33 ` Vincent Cruz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox