[Buildroot] [PATCH 1/1] package/util-linux: fix build with headers < 3.14

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Oct 24 13:24:48 UTC 2021


On Fri, 22 Oct 2021 23:53:37 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure raised since bump to version 2.37.2 in
> commit 27a46793b1a0c6c13c00b07d07bd5743e2c9c7b6 and the addition of
> uclampset in
> https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=9dd95bea42a3b467c1f773fd2e781cc9f0d88847:
> 
> checking for syscall sched_setattr... no
> configure: WARNING: Unable to detect syscall sched_setattr.
> checking for syscall sched_setattr... (cached) no
> configure: WARNING: Unable to detect syscall sched_setattr.
> configure: error: uclampset selected but sched_setattr syscall not found

A bit of a pitty that they don't automatically disable building this
tool, or something like that, but fair enough.

> 
> Fix this build failure by adding a dependency on headers >= 3.14 for
> scheduling utilities:
> https://github.com/torvalds/linux/commit/fded4329da9e8486b434d6c4aceab1ab3f433d8a

This commit points to just wiring the syscall on the s390 architecture,
which is not really "that" important, so I changed the reference to
e6cfc0295c7d51b008999a8b13a44fb43f8685ea instead (which also appeared
in 3.14, so it doesn't change the rest of the patch).

Applied with that change. Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com


More information about the buildroot mailing list