[CRIU] [PATCH v2] Fix criu.pc version

Cédric Bosdonnat cbosdonnat at suse.com
Thu Jul 30 08:44:34 PDT 2015


Use CRTOOLSVERSION instead of GITID to write criu.pc version. With
GITID, criu.pc had version '0' when built from tarballs.

Signed-off-by: Cédric Bosdonnat <cbosdonnat at suse.com>
---
 Diff to v1: Don't change the GITID default, fix criu.pc rule instead

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6ed4c90..7f5c890 100644
--- a/Makefile
+++ b/Makefile
@@ -339,7 +339,7 @@ install-criu: $(PROGRAM) $(CRIU-LIB) install-crit
 	$(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR)
 	$(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR)
 	$(Q) install -m 644 scripts/logrotate.d/criu-service $(DESTDIR)$(LOGROTATEDIR)
-	$(Q) sed -e 's, at version@,$(GITID),' \
+	$(Q) sed -e 's, at version@,$(CRTOOLSVERSION),' \
 		-e 's, at libdir@,$(LIBDIR),' \
 		-e 's, at includedir@,$(dir $(INCLUDEDIR)),' \
 		lib/criu.pc.in > criu.pc
-- 
2.1.4



More information about the CRIU mailing list