libtracefs/add-explicit-meson-thread-dependency.patch
Jan Engelhardt 19fc3df9c5 Accepting request 1093516 from home:jones_tony:trace-cmd
- Add explicit thread dependency for older versions of meson (i.e SLE-15-SP5)
  New patch: add-explicit-meson-thread-dependency.patch

- Update to version 1.7.0
  * Add initial support for meson
  * Add tracefs_kprobe_destroy() to index man page
  * State that tracefs_dynevent_create() is needed for tracefs_kprobe_alloc()
  * Add missing prototypes in top level man page
  * Add tracefs_kprobe_destory() API
  * Add helper function to destroy dynamic event
  * Add tracefs_time_conversion() API
  * Add tracefs_find_cid_pid() API
  * Fix crashing of synth test when synths exist
  * Do not use synth for test_synth element
  * Clarify the tracefs_synth_create() man page
  * Do not allow tracefs_synth_set_instance() on created synth
  * Documentation for tracefs_synth_set_instance
  * New API to set synthetic event instance
  * Do not segfault in tests if synthetic events are not configured
  * Add tracefs_instance_tracers() API
  * Do not use hwlat tracer and fdb_delete event for test
  * Add stacktrace to tracefs_sql()
  * Unit test for tracefs_instance_reset()
  * Documentation for tracefs_instance_reset()	
  * New API to reset ftrace instance 
- Drop patch 0001-libtracefs-Add-initial-support-for-meson.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1093516
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtracefs?expand=0&rev=31
2023-06-17 11:52:46 +00:00

90 lines
2.7 KiB
Diff

From: Daniel Wagner <dwagner@suse.de>
Date: Thu Jun 15 11:48:53 AM PDT 2023
Subject: Add explicit meson thread dependency
Patch-mainline: mailed to mailing list
References: none
Signed-off-by: Tony Jones <tonyj@suse.de>
Older version of meson do not add automatically the pthread dependency.
Thus add it explicitly to the build.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
meson.build | 1 +
samples/meson.build | 4 ++--
src/meson.build | 4 ++--
utest/meson.build | 2 +-
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/meson.build b/meson.build
index d0f0e2dafc8a..9d42d78ad957 100644
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,7 @@ project(
library_version = meson.project_version()
libtraceevent_dep = dependency('libtraceevent', version: '>= 1.7.0', required: true)
+threads_dep = dependency('threads', required: true)
cunit_dep = dependency('cunit', required : false)
prefixdir = get_option('prefix')
diff --git a/samples/meson.build b/samples/meson.build
index 5e8ad270f812..112b12217a04 100644
--- a/samples/meson.build
+++ b/samples/meson.build
@@ -30,7 +30,7 @@ foreach ex : examples
executable(
ex.underscorify(),
src,
- dependencies: [libtracefs_dep, libtraceevent_dep],
+ dependencies: [libtracefs_dep, libtraceevent_dep, threads_dep],
include_directories: [incdir])
endforeach
@@ -39,7 +39,7 @@ src = gen.process(meson.current_source_dir() + '/../Documentation/libtracefs-sql
executable(
'sqlhist',
src,
- dependencies: [libtracefs_dep, libtraceevent_dep],
+ dependencies: [libtracefs_dep, libtraceevent_dep, threads_dep],
include_directories: [incdir],
install: true,
install_dir: bindir)
diff --git a/src/meson.build b/src/meson.build
index 56087e2301bf..5b7655453f50 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -36,14 +36,14 @@ libtracefs = library(
'tracefs',
sources, lfiles, pfiles,
version: library_version,
- dependencies: [libtraceevent_dep],
+ dependencies: [libtraceevent_dep, threads_dep],
include_directories: [incdir],
install: true)
libtracefs_static = static_library(
'tracefs_static',
sources, lfiles, pfiles,
- dependencies: [libtraceevent_dep],
+ dependencies: [libtraceevent_dep, threads_dep],
include_directories: [incdir],
install: false)
diff --git a/utest/meson.build b/utest/meson.build
index 91a526fca2bf..c79313c7c1fb 100644
--- a/utest/meson.build
+++ b/utest/meson.build
@@ -11,7 +11,7 @@ e = executable(
'trace-utest',
source,
include_directories: [incdir],
- dependencies: [libtraceevent_dep, cunit_dep],
+ dependencies: [libtraceevent_dep, threads_dep, cunit_dep],
link_with: libtracefs_static)
test('trace-utest', e)
--
2.40.1