SHA256
1
0
forked from pool/trace-cmd
Files
trace-cmd/tracecmd-add-explicit-meson-thread-dependency.patch
Daniel Wagner 737435f4e6 Accepting request 1093518 from home:jones_tony:trace-cmd
- Add explicit thread dependency for older versions of meson (i.e SLE-15-SP5) 
  New patch: libtracecmd-add-explicit-meson-thread-dependency.patch
  New patch: tracecmd-add-explicit-meson-thread-dependency.patch

- Update to version 3.2
  * Add trace-attach.c to meson build
  * Add initial support for meson
  * Quiet valgrind from reporting forked children
  * Close handle after opening
  * Fix memory leaks of followers
  * Add Makefile target for memory test
  * Update the version to the development
  * Add new command "attach"
  * Add tracecmd_get_tsc2nsec() API
  * Unlock records in tracecmd_iterate_events()
  * Add "IP" to -N argument in help message
  * Remove redundant check of instance in allocate_instance()
  * Free buf_from in error path of tracecmd_compress_copy_from()
  * Update v7 trace.dat documentation to clarify the strings section
  * Do not destroy existing instances
  * Do not extract top level unless told to
  * Fix tracecmd_compress_copy_from() write size return 
  * Document filter scope
  * Support global filters
  * Ensure filter is applied to single input file
  * Open code execvp routine to avoid multiple execve syscalls
- Drop patches (upstream):
  * 0001-libtracecmd-Add-initial-support-for-meson.patch
  * 0002-trace-cmd-Add-initial-support-for-meson.patch

OBS-URL: https://build.opensuse.org/request/show/1093518
OBS-URL: https://build.opensuse.org/package/show/devel:tools/trace-cmd?expand=0&rev=44
2023-06-17 08:25:48 +00:00

33 lines
1.0 KiB
Diff

From: Daniel Wagner <dwagner@suse.de>
Date: Thu Jun 15 11:48:53 AM PDT 2023
Subject: tracecmd: 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 and dl
dependency. Thus add it explicitly to the build.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
meson.build | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meson.build b/meson.build
index 906ac8168f4f..fbdf016f67a7 100644
--- a/meson.build
+++ b/meson.build
@@ -27,6 +27,9 @@ conf = configuration_data()
libtraceevent_dep = dependency('libtraceevent', version: '>= 1.5.0', required: true)
libtracefs_dep = dependency('libtracefs', version: '>= 1.6.0', required: true)
+threads_dep = dependency('threads', required: true)
+dl_dep = cc.find_library('dl', required : false)
+
zlib_dep = dependency('zlib', required: false)
conf.set('HAVE_ZLIB', zlib_dep.found(), description: 'Is zlib avialable?')
--
2.40.1