From 47b8fae685ac46b8acaebf3df99b64436287bf88 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 19 Sep 2016 08:47:12 +1000 Subject: [PATCH] llvm-3.9: fix docs build more --- 0001-fix-code-2.patch | 38 ++++++++++++++++++++++++++++++++++++++ llvm.spec | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 0001-fix-code-2.patch diff --git a/0001-fix-code-2.patch b/0001-fix-code-2.patch new file mode 100644 index 0000000..988cb64 --- /dev/null +++ b/0001-fix-code-2.patch @@ -0,0 +1,38 @@ +From de4fbfe93560c78f29c8b92cafab0793f5d26bc6 Mon Sep 17 00:00:00 2001 +From: Aaron Ballman +Date: Tue, 19 Jul 2016 20:20:03 +0000 +Subject: [PATCH] This code block breaks the docs build + (http://lab.llvm.org:8011/builders/llvm-sphinx-docs/builds/11921/steps/docs-llvm-html/logs/stdio). + Setting the code highlighting to none instead of llvm to hopefully get the + bot stumbling back towards green. + +git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276018 91177308-0d34-0410-b5e6-96231b3b80d8 +--- + docs/BitCodeFormat.rst | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/docs/BitCodeFormat.rst b/docs/BitCodeFormat.rst +index ffa2176..89c7c1b 100644 +--- a/docs/BitCodeFormat.rst ++++ b/docs/BitCodeFormat.rst +@@ -596,7 +596,7 @@ will be encoded as 1. + + For example, instead of + +-.. code-block:: llvm ++.. code-block:: none + + #n = load #n-1 + #n+1 = icmp eq #n, #const0 +@@ -604,7 +604,7 @@ For example, instead of + + version 1 will encode the instructions as + +-.. code-block:: llvm ++.. code-block:: none + + #n = load #1 + #n+1 = icmp eq #1, (#n+1)-#const0 +-- +2.5.5 + diff --git a/llvm.spec b/llvm.spec index f0e138e..322b157 100644 --- a/llvm.spec +++ b/llvm.spec @@ -20,6 +20,7 @@ Source100: llvm-config.h Patch0: llvm-3.7.1-cmake-s390.patch Patch1: 0001-This-code-block-breaks-the-docs-build-http-lab.llvm..patch +Patch2: 0001-fix-code-2.patch BuildRequires: cmake BuildRequires: zlib-devel @@ -73,6 +74,7 @@ Static libraries for the LLVM compiler infrastructure. %setup -q -n %{name}-%{version}.src %patch0 -p1 -b .s390 %patch1 -p1 -b .sphinx +%patch2 -p1 -b .docs2 %build mkdir -p _build