[CRIU] [PATCH] Fix GITID for release builds
    Cédric Bosdonnat 
    cbosdonnat at suse.com
       
    Thu Jul 30 08:09:23 PDT 2015
    
    
  
When building from the release tarballs, the criu.pc file always has
version '0'. Getting a more sensible value for GITID provides proper
version in the criu.pc for release builds.
Signed-off-by: Cédric Bosdonnat <cbosdonnat at suse.com>
---
 scripts/Makefile.version | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.version b/scripts/Makefile.version
index 8905bd9..fad6a24 100644
--- a/scripts/Makefile.version
+++ b/scripts/Makefile.version
@@ -5,7 +5,7 @@ GITID_FILE := .gitid
 GITID := $(shell if [ -d ".git" ]; then git describe; fi)
 
 ifeq ($(GITID),)
-	GITID := 0
+	GITID := $(CRTOOLSVERSION)
 else
         GITID_FILE_VALUE := $(shell if [ -f '.gitid' ]; then if [ `cat .gitid` = $(GITID) ]; then echo y; fi; fi)
         ifneq ($(GITID_FILE_VALUE),y)
-- 
2.1.4
    
    
More information about the CRIU
mailing list