Skip to contentSkip to conversation

libtraceevent: Update libtraceevent.pc when version changes

PATCH New Steven Rostedt 1 participant 1 message Apr 9, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtraceevent: Update libtraceevent.pc when version changes

From: "Steven Rostedt (VMware)" <[email protected]>

When the libtraceevent version changes, the libtraceevent.pc needs to be updated, otherwise it may install the wrong version number.

---
 .gitignore | 1 +
 Makefile   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
.gitignore +1 -0
index c312a39..e203d72 100644
@@ -10,3 +10,4 @@ build_uninstall
 *.cmd
 *.so
 .*.d
+ep_version.h
Makefile +1 -1
index b617baa..3a1eddb 100644
@@ -273,7 +273,7 @@ define do_make_pkgconfig_file
 	sed -i "s|HEADER_DIR|$(includedir_relative)|g" ${PKG_CONFIG_FILE};
 endef
 
-$(PKG_CONFIG_FILE) : ${PKG_CONFIG_SOURCE_FILE}.template $(BUILD_PREFIX)
+$(PKG_CONFIG_FILE) : ${PKG_CONFIG_SOURCE_FILE}.template $(BUILD_PREFIX) $(VERSION_FILES)
 	$(QUIET_GEN) $(call do_make_pkgconfig_file,$(prefix))
 
 define do_install_pkgconfig_file
Signature · 1 line
2.29.2