Package: criu
Severity: minor
Usertags: clang-ftbfs
User: pkg-llvm-t...@lists.alioth.debian.org
Tag: patch


Hello,

Using the rebuild infrastructure, your package fails to build with clang
(instead of gcc).

Thanks,
Arthur
diff -Naur criu.orig/criu-1.3~rc2/debian/changelog criu/criu-1.3~rc2/debian/changelog
--- criu.orig/criu-1.3~rc2/debian/changelog	2014-07-05 11:07:49.686383472 -0500
+++ criu/criu-1.3~rc2/debian/changelog	2014-07-05 11:12:54.613172593 -0500
@@ -1,3 +1,12 @@
+criu (1.3~rc2-2) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed "unused function" in
+      arch/x86/crtools.c
+      cr-show.c
+
+ -- Arthur Marble <art...@info9.net>  Sat, 05 Jul 2014 11:12:54 -0500
+
 criu (1.3~rc2-1) unstable; urgency=low
 
   * Merging upstream version 1.3~rc2.
diff -Naur criu.orig/criu-1.3~rc2/debian/patches/clang-ftbfs.diff criu/criu-1.3~rc2/debian/patches/clang-ftbfs.diff
--- criu.orig/criu-1.3~rc2/debian/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ criu/criu-1.3~rc2/debian/patches/clang-ftbfs.diff	2014-07-05 11:10:42.661056604 -0500
@@ -0,0 +1,40 @@
+Index: criu-1.3~rc2/arch/x86/crtools.c
+===================================================================
+--- criu-1.3~rc2.orig/arch/x86/crtools.c
++++ criu-1.3~rc2/arch/x86/crtools.c
+@@ -32,12 +32,6 @@ const char code_syscall[] = {
+ 
+ const int code_syscall_size = round_up(sizeof(code_syscall), sizeof(long));
+ 
+-static inline void __check_code_syscall(void)
+-{
+-	BUILD_BUG_ON(sizeof(code_syscall) != BUILTIN_SYSCALL_SIZE);
+-	BUILD_BUG_ON(!is_log2(sizeof(code_syscall)));
+-}
+-
+ void parasite_setup_regs(unsigned long new_ip, void *stack, user_regs_struct_t *regs)
+ {
+ 	regs->ip = new_ip;
+Index: criu-1.3~rc2/cr-show.c
+===================================================================
+--- criu-1.3~rc2.orig/cr-show.c
++++ criu-1.3~rc2/cr-show.c
+@@ -205,18 +205,6 @@ void show_collect_pstree(int fd, int col
+ 			collect ? pstree_handler : NULL, "*:%d");
+ }
+ 
+-static inline char *task_state_str(int state)
+-{
+-	switch (state) {
+-	case TASK_ALIVE:
+-		return "running/sleeping";
+-	case TASK_DEAD:
+-		return "zombie";
+-	default:
+-		return "UNKNOWN";
+-	}
+-}
+-
+ static void show_core_regs(UserX86RegsEntry *regs)
+ {
+ #define pr_regs4(s, n1, n2, n3, n4)	\
diff -Naur criu.orig/criu-1.3~rc2/debian/patches/series criu/criu-1.3~rc2/debian/patches/series 
--- criu.orig/criu-1.3~rc2/debian/patches/series	2014-07-05 11:07:49.686383472 -0500
+++ criu/criu-1.3~rc2/debian/patches/series	2014-07-05 11:09:14.483634971 -0500
@@ -1 +1,2 @@
 0001-documentation.patch
+clang-ftbfs.diff

Reply via email to