Skip to contentSkip to conversation

kernel-shark: Add 'Requires' to libkshark.pc

PATCH New Yordan Karadzhov (VMware) 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kernel-shark: Add 'Requires' to libkshark.pc

Adding only the requirements for building 'libkshark'. The requirements for building the GUI are not supposed to be listed here.

---
 CMakeLists.txt           | 2 ++
 build/libkshark.pc.cmake | 1 +
 2 files changed, 3 insertions(+)
CMakeLists.txt +2 -0
index bb7b2a1..3723654 100644
@@ -42,6 +42,8 @@ if (NOT _POLKIT_INSTALL_PREFIX)
 
 endif ()
 
+set(LIBTRACECMD_MIN_VERSION 1.0)
+
 set(CMAKE_MODULE_PATH "${KS_DIR}/build")
 find_package(TraceEvent REQUIRED)
 find_package(TraceFS    REQUIRED)
build/libkshark.pc.cmake +1 -0
index ad4ce34..0764d0d 100644
@@ -6,5 +6,6 @@ Name: libkshark
 URL: https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/
 Description: Library for accessing ftrace file system
 Version: @KS_VERSION_STRING@
+Requires: json-c, libtracecmd >= @LIBTRACECMD_MIN_VERSION@
 Cflags: -I${includedir}
 Libs: -L${libdir} -lkshark
Signature · 1 line
2.32.0