hurd-EIEIO-undef.diff: try to undef an errno.h to fix the ftbfs

This commit is contained in:
Sylvestre Ledru 2014-07-24 08:23:17 +00:00
parent 652423119b
commit 0a1e26a3f7
3 changed files with 16 additions and 0 deletions

1
debian/changelog vendored
View File

@ -5,6 +5,7 @@ llvm-toolchain-3.4 (1:3.4.2-6) unstable; urgency=medium
* Move the polly installation in the dh_auto_install rules instead * Move the polly installation in the dh_auto_install rules instead
of using *.install files. In llvm.org/apt/, I have to sometime disable of using *.install files. In llvm.org/apt/, I have to sometime disable
polly polly
* hurd-EIEIO-undef.diff: try to undef an errno.h to fix the ftbfs
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 23 Jul 2014 13:02:56 +0200 -- Sylvestre Ledru <sylvestre@debian.org> Wed, 23 Jul 2014 13:02:56 +0200

14
debian/patches/hurd-EIEIO-undef.diff vendored Normal file
View File

@ -0,0 +1,14 @@
Index: llvm-toolchain-3.4-3.4.2/utils/TableGen/InstrInfoEmitter.cpp
===================================================================
--- llvm-toolchain-3.4-3.4.2.orig/utils/TableGen/InstrInfoEmitter.cpp
+++ llvm-toolchain-3.4-3.4.2/utils/TableGen/InstrInfoEmitter.cpp
@@ -569,6 +569,9 @@ void InstrInfoEmitter::emitEnums(raw_ost
OS << "\n#ifdef GET_INSTRINFO_ENUM\n";
OS << "#undef GET_INSTRINFO_ENUM\n";
+ OS << "// Undef for HURD\n";
+ OS << "#ifdef EIEIO\n#undef EIEIO\n#endif\n";
+
OS << "namespace llvm {\n\n";
CodeGenTarget Target(Records);

View File

@ -42,3 +42,4 @@ CVE-2014-2893.diff
follow-parallel-var.diff follow-parallel-var.diff
scan-build-search-path.diff scan-build-search-path.diff
gcc-4.9-i586-linux-gnu.diff gcc-4.9-i586-linux-gnu.diff
hurd-EIEIO-undef.diff