Blame SOURCES/0002-Fix-rpmdiff-failure.patch

912388
From 67d113a76162e85c3ee75d76219a66359656087d Mon Sep 17 00:00:00 2001
912388
From: Paolo Bonzini <pbonzini@redhat.com>
912388
Date: Thu, 18 Jun 2015 11:42:44 +0200
912388
Subject: Fix rpmdiff failure
912388
912388
Patchwork-id: 66323
912388
O-Subject: [RHEL7.2 PATCH libunwind] Fix rpmdiff failure
912388
Bugzilla: 1229359
912388
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
912388
RH-Acked-by: Jeff Nelson <jenelson@redhat.com>
912388
912388
This fixes an rpmdiff failure for libunwind.  It is possible to build
912388
a cross libunwind to e.g. work on ARM memory from x86.  Because of this,
912388
the libunwind.h file differs across architectures and rpmdiff complains
912388
because it is installed in /usr/include.
912388
912388
RHEL never does cross libunwinds, so just drop the faulty include
912388
statement.
912388
---
912388
 include/libunwind.h.in | 13 ++++++-------
912388
 1 file changed, 6 insertions(+), 7 deletions(-)
912388
912388
diff --git a/include/libunwind.h.in b/include/libunwind.h.in
912388
index 7a56168..aad564c 100644
912388
--- a/include/libunwind.h.in
912388
+++ b/include/libunwind.h.in
912388
@@ -1,7 +1,11 @@
912388
 /* Provide a real file - not a symlink - as it would cause multiarch conflicts
912388
    when multiple different arch releases are installed simultaneously.  */
912388
 
912388
-#ifndef UNW_REMOTE_ONLY
912388
+/* Fedora/RHEL does not cross-compile libunwind, so always use direct
912388
+ * inclusion.  It handles multilib better.
912388
+ */
912388
+#ifndef LIBUNWIND_INCLUDE_H
912388
+#define LIBUNWIND_INCLUDE_H 1
912388
 
912388
 #if defined __aarch64__
912388
 #include "libunwind-aarch64.h"
912388
@@ -28,9 +32,4 @@
912388
 #else
912388
 # error "Unsupported arch"
912388
 #endif
912388
-
912388
-#else /* UNW_REMOTE_ONLY */
912388
-
912388
-# include "libunwind-@arch@.h"
912388
-
912388
-#endif /* UNW_REMOTE_ONLY */
912388
+#endif /* LIBUNWIND_INCLUDE_H */
912388
-- 
912388
1.8.3.1
912388