[criu/f21] Include inttypes.h for PRI helpers

Andrey Vagin avagin at fedoraproject.org
Thu Aug 7 15:13:30 UTC 2014


commit 42ef5e0c34925ec90a5eef44db49408eb0196e3a
Author: Andrey Vagin <avagin at openvz.org>
Date:   Thu Aug 7 19:10:48 2014 +0400

    Include inttypes.h for PRI helpers

 0001-log-Include-inttypes.h-for-PRI-helpers.patch |   30 +++++++++++++++++++++
 criu.spec                                         |    7 ++++-
 2 files changed, 36 insertions(+), 1 deletions(-)
---
diff --git a/0001-log-Include-inttypes.h-for-PRI-helpers.patch b/0001-log-Include-inttypes.h-for-PRI-helpers.patch
new file mode 100644
index 0000000..025b3b5
--- /dev/null
+++ b/0001-log-Include-inttypes.h-for-PRI-helpers.patch
@@ -0,0 +1,30 @@
+From 0c89d779f93ea95398dfbcda079eb3ad2424c0ca Mon Sep 17 00:00:00 2001
+From: Cyrill Gorcunov <gorcunov at openvz.org>
+Date: Thu, 24 Apr 2014 22:57:57 +0400
+Subject: [PATCH] log: Include inttypes.h for PRI helpers
+
+https://bugzilla.openvz.org/show_bug.cgi?id=2949
+
+Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
+Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
+Signed-off-by: Andrey Vagin <avagin at openvz.org>
+---
+ include/log.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/include/log.h b/include/log.h
+index 9948098..65a65ac 100644
+--- a/include/log.h
++++ b/include/log.h
+@@ -1,6 +1,8 @@
+ #ifndef __CR_LOG_H__
+ #define __CR_LOG_H__
+ 
++#include <inttypes.h>
++
+ #include "criu-log.h"
+ 
+ extern int log_init(const char *output);
+-- 
+1.9.3
+
diff --git a/criu.spec b/criu.spec
index 8965227..0bf7efc 100644
--- a/criu.spec
+++ b/criu.spec
@@ -1,6 +1,6 @@
 Name: criu	
 Version: 1.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 Provides: crtools = %{version}-%{release}
 Obsoletes: crtools <= 1.0-2
 Summary: Tool for Checkpoint/Restore in User-space
@@ -8,6 +8,7 @@ Group: System Environment/Base
 License: GPLv2
 URL: http://criu.org/
 Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2
+Patch0: 0001-log-Include-inttypes.h-for-PRI-helpers.patch
 
 BuildRequires: protobuf-c-devel asciidoc xmlto
 
@@ -33,6 +34,7 @@ This package contains header files and libraries for %{name}.
 
 %prep
 %setup -q -n criu-%{version}
+%patch0 -p1
 
 %build
 # %{?_smp_mflags} does not work
@@ -67,6 +69,9 @@ ln -s %{_sbindir}/criu $RPM_BUILD_ROOT%{_sbindir}/crtools
 
 
 %changelog
+* Thu Aug 07 2014 Andrew Vagin <avagin at openvz.org> - 1.2-4
+- Include inttypes.h for PRI helpers 
+
 * Thu Aug 07 2014 Andrew Vagin <avagin at openvz.org> - 1.2-3
 - Rebuilt for https://bugzilla.redhat.com/show_bug.cgi?id=1126751
 


More information about the scm-commits mailing list