From f7cbc14ee447f1ea5b6f5c206240425dd2f463f7 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 1 Jul 2021 00:37:53 +0800 Subject: [PATCH] fix build with sphinx4 (#1977317) use rawstring in conf.py (already in ghc-9) --- ghc-userguide-sphinx4.patch | 11 +++++++++++ ghc.spec | 14 ++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 ghc-userguide-sphinx4.patch diff --git a/ghc-userguide-sphinx4.patch b/ghc-userguide-sphinx4.patch new file mode 100644 index 0000000..8c31df1 --- /dev/null +++ b/ghc-userguide-sphinx4.patch @@ -0,0 +1,11 @@ +--- ghc-8.8.4/docs/users_guide/conf.py~ 2020-07-09 00:43:03.000000000 +0800 ++++ ghc-8.8.4/docs/users_guide/conf.py 2021-07-01 00:09:03.537324304 +0800 +@@ -77,7 +77,7 @@ + latex_elements = { + 'inputenc': '', + 'utf8extra': '', +- 'preamble': ''' ++ 'preamble': r''' + \usepackage{fontspec} + \usepackage{makeidx} + \setsansfont{DejaVu Sans} diff --git a/ghc.spec b/ghc.spec index 828e1a9..b1b1eb3 100644 --- a/ghc.spec +++ b/ghc.spec @@ -49,7 +49,7 @@ Version: 8.8.4 # - release can only be reset if *all* library versions get bumped simultaneously # (sometimes after a major release) # - minor release numbers for a branch should be incremented monotonically -Release: 110%{?dist} +Release: 111%{?dist} Summary: Glasgow Haskell Compiler License: BSD and HaskellReport @@ -63,11 +63,13 @@ Source5: ghc-pkg.man Source6: haddock.man Source7: runghc.man # absolute haddock path (was for html/libraries -> libraries) -Patch1: ghc-gen_contents_index-haddock-path.patch -Patch2: ghc-Cabal-install-PATH-warning.patch -Patch3: ghc-gen_contents_index-nodocs.patch +Patch1: ghc-gen_contents_index-haddock-path.patch +Patch2: ghc-Cabal-install-PATH-warning.patch +Patch3: ghc-gen_contents_index-nodocs.patch # https://phabricator.haskell.org/rGHC4eebc8016f68719e1ccdf460754a97d1f4d6ef05 Patch6: ghc-8.6.3-sphinx-1.8.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1977317 +Patch7: ghc-userguide-sphinx4.patch # Arch dependent patches @@ -312,6 +314,7 @@ packages to be automatically installed too. %patch2 -p1 -b .orig %patch6 -p1 -b .orig +%patch7 -p1 -b .orig rm -r libffi-tarballs @@ -655,6 +658,9 @@ env -C %{ghc_html_libraries_dir} ./gen_contents_index %changelog +* Wed Jun 30 2021 Jens Petersen - 8.8.4-111 +- fix build with sphinx4 (#1977317) + * Tue May 25 2021 Jens Petersen - 8.8.4-110 - ghc-compiler now requires ghc-filesystem for html docdirs