All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/boinc: fix build error with uClibc-ng
@ 2026-09-06 16:51 Bernd Kuhls
  2026-09-06 16:51 ` [Buildroot] [PATCH 2/2] package/boinc: bump version to 8.2.15 Bernd Kuhls
  2026-09-16 21:26 ` [Buildroot] [PATCH 1/2] package/boinc: fix build error with uClibc-ng Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Kuhls @ 2026-09-06 16:51 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fixes:
https://autobuild.buildroot.net/results/f10/f1015559e37d73403c396ee883d9a73fd167b9dd/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/6f246f65bc89cd9e146a606c60b3c9ccf19f8ec4

 ...ched.h-to-fix-build-error-with-uClib.patch | 69 +++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 package/boinc/0001-client-include-sched.h-to-fix-build-error-with-uClib.patch

diff --git a/package/boinc/0001-client-include-sched.h-to-fix-build-error-with-uClib.patch b/package/boinc/0001-client-include-sched.h-to-fix-build-error-with-uClib.patch
new file mode 100644
index 0000000000..c4f0c1f87e
--- /dev/null
+++ b/package/boinc/0001-client-include-sched.h-to-fix-build-error-with-uClib.patch
@@ -0,0 +1,69 @@
+From f06b730ad648607e1a2ace0c364f6dd4a13fd159 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sun, 6 Sep 2026 17:49:47 +0200
+Subject: [PATCH] client: include sched.h to fix build error with uClibc-ng
+
+Detected by buildroot autobuilders:
+https://autobuild.buildroot.net/results/f10/f1015559e37d73403c396ee883d9a73fd167b9dd/build-end.log
+
+In file included from /home/autobuild/autobuild/instance-6/output-1/host/i686-buildroot-linux-uclibc/sysroot/usr/include/pthread.h:20,
+                 from thread.h:23,
+                 from client_state.h:37,
+                 from cpu_sched.cpp:76:
+cpu_sched.cpp: In member function 'void PROC_RESOURCES::schedule(RESULT*, ACTIVE_TASK*, bool)':
+cpu_sched.cpp:247:30: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  247 |                 rp->project->sched_priority
+      |                              ^~~~~~~~~~~~~~
+cpu_sched.cpp: In member function 'RESULT* CLIENT_STATE::highest_prio_project_best_result()':
+cpu_sched.cpp:438:25: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  438 |         if (first || p->sched_priority > best_prio) {
+      |                         ^~~~~~~~~~~~~~
+cpu_sched.cpp:441:28: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  441 |             best_prio = p->sched_priority;
+      |                            ^~~~~~~~~~~~~~
+cpu_sched.cpp: In function 'RESULT* first_coproc_result(int)':
+cpu_sched.cpp:474:29: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  474 |         prio = rp->project->sched_priority;
+      |                             ^~~~~~~~~~~~~~
+cpu_sched.cpp: In function 'void project_priority_init(bool)':
+cpu_sched.cpp:684:16: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  684 |             p->sched_priority = 0;
+      |                ^~~~~~~~~~~~~~
+cpu_sched.cpp:690:24: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  690 |                     p->sched_priority, p->resource_share_frac,
+      |                        ^~~~~~~~~~~~~~
+cpu_sched.cpp: In member function 'void PROJECT::compute_sched_priority()':
+cpu_sched.cpp:705:9: error: '__sched_priority' was not declared in this scope; did you mean 'sched_priority'?
+  705 |         sched_priority = -1e3 - rec_frac;
+      |         ^~~~~~~~~~~~~~
+cpu_sched.cpp:708:13: error: '__sched_priority' was not declared in this scope; did you mean 'sched_priority'?
+  708 |             sched_priority = - rec_frac/resource_share_frac;
+      |             ^~~~~~~~~~~~~~
+cpu_sched.cpp:710:13: error: '__sched_priority' was not declared in this scope; did you mean 'sched_priority'?
+  710 |             sched_priority = - rec_frac;
+      |             ^~~~~~~~~~~~~~
+
+Upstream: https://github.com/BOINC/boinc/pull/7282
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ client/cpu_sched.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp
+index f50b1b1785..f093c48e2c 100644
+--- a/client/cpu_sched.cpp
++++ b/client/cpu_sched.cpp
+@@ -56,6 +56,9 @@
+ #include <list>
+ #endif
+ 
++#if HAVE_SCHED_SETSCHEDULER && defined (__linux__)
++#include <sched.h>
++#endif
+ 
+ #include "coproc.h"
+ #include "error_numbers.h"
+-- 
+2.47.3
+
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-03 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-06 16:51 [Buildroot] [PATCH 1/2] package/boinc: fix build error with uClibc-ng Bernd Kuhls
2026-09-06 16:51 ` [Buildroot] [PATCH 2/2] package/boinc: bump version to 8.2.15 Bernd Kuhls
2026-09-16 21:26 ` [Buildroot] [PATCH 1/2] package/boinc: fix build error with uClibc-ng Thomas Petazzoni via buildroot
2026-10-03 16:32   ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.