Files
buildroot/package/sysprof/Config.in
Thomas Petazzoni 28dfc9a5d9 package/sysprof: propagate ucontext-related dependency from libdex
BR2_PACKAGE_SYSPROF selects BR2_PACKAGE_LIBDEX but did not propagate:

	depends on BR2_TOOLCHAIN_HAS_UCONTEXT || \
		BR2_PACKAGE_LIBUCONTEXT_ARCH_SUPPORTS

from libdex. This commit fixes this missing dependency. In terms of
Config.in comment, we do the same as what libdex is doing: handle it
as a toolchain dependency (rather than an architecture dependency).

This was missed in commit a73ef093f7,
which added the ucontext related dependency to libdex, without
propagating it to sysprof.

Fixes: a73ef093f7 ("package/libdex: needs ucontext")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit cd5eab10fe)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
2026-09-23 17:47:02 +02:00

38 lines
1.5 KiB
Plaintext

config BR2_PACKAGE_SYSPROF
bool "sysprof"
depends on BR2_USE_WCHAR # glib2, libdex, json-glib, elfutils
depends on BR2_TOOLCHAIN_HAS_THREADS # glib2, libdex, json-glib, polkit, elfutils
depends on BR2_USE_MMU # glib2, libdex, json-glib
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # libunwind, polkit
depends on BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS
depends on !BR2_STATIC_LIBS # libdex, libunwind, polkit, elfutils
depends on !BR2_OPTIMIZE_FAST # polkit
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
depends on BR2_TOOLCHAIN_HAS_UCONTEXT || \
BR2_PACKAGE_LIBUCONTEXT_ARCH_SUPPORTS # libdex
select BR2_PACKAGE_ELFUTILS
select BR2_PACKAGE_JSON_GLIB
select BR2_PACKAGE_LIBDEX
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBUNWIND
select BR2_PACKAGE_POLKIT
help
Sysprof is a statistical, system-wide profiler that can
profile user and kernel code using the perf API.
http://sysprof.com
comment "sysprof needs a toolchain w/ dynamic library, wchar, threads, C++, gcc >= 7, headers >= 5.12, ucontext"
depends on BR2_USE_MMU
depends on BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12 || \
!(BR2_TOOLCHAIN_HAS_UCONTEXT || \
BR2_PACKAGE_LIBUCONTEXT_ARCH_SUPPORTS)
comment "sysprof can't be built with Optimize for fast"
depends on BR2_OPTIMIZE_FAST