From a996cf364724f039f11292fa5b5e768a6d6112b6 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 4 Jan 2016 12:47:12 +0000 Subject: [PATCH] Patch LLDB SWIG interfaces to workaround a bug in SWIG See https://llvm.org/bugs/show_bug.cgi?id=25468 --- debian/changelog | 2 ++ .../llvm25468-lldb-swig-format-security.diff | 14 ++++++++++++++ debian/patches/series | 1 + 3 files changed, 17 insertions(+) create mode 100644 debian/patches/llvm25468-lldb-swig-format-security.diff diff --git a/debian/changelog b/debian/changelog index 43a7ec47..4de522d8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ llvm-toolchain-snapshot (1:3.8~svn256489-1~exp1) experimental; urgency=medium - Remove "dummy" documentation artifacts from llvm-X.Y-docs package. Not built/installed by CMake, not useful. - Update control/rules to support CMake + - Patch LLDB SWIG interfaces to workaround a bug in SWIG + See https://llvm.org/bugs/show_bug.cgi?id=25468 -- Sylvestre Ledru Mon, 28 Dec 2015 09:31:25 +0100 diff --git a/debian/patches/llvm25468-lldb-swig-format-security.diff b/debian/patches/llvm25468-lldb-swig-format-security.diff new file mode 100644 index 00000000..5d046858 --- /dev/null +++ b/debian/patches/llvm25468-lldb-swig-format-security.diff @@ -0,0 +1,14 @@ +--- a/lldb/scripts/interface/SBError.i ++++ b/lldb/scripts/interface/SBError.i +@@ -57,6 +57,11 @@ + condition and we get back a void process object. + ") SBError; + ++%{ ++// https://llvm.org/bugs/show_bug.cgi?id=25468 ++#pragma GCC diagnostic ignored "-Wformat-security" ++%} ++ + class SBError { + public: + SBError (); diff --git a/debian/patches/series b/debian/patches/series index 2bf97a5b..d4363939 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -39,3 +39,4 @@ compiler-rt-i586.diff clang-analyzer-force-version.diff fix-cmake-config-prefix.diff lldb-test-makefile.diff +llvm25468-lldb-swig-format-security.diff