Accepting request 902314 from devel:languages:haskell:ghc-8.10.x

- add 4134.patch to fix build with Sphinx4

OBS-URL: https://build.opensuse.org/request/show/902314
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=360
This commit is contained in:
Ondřej Súkup 2021-06-25 10:03:47 +00:00 committed by Git OBS Bridge
parent 7e659e12aa
commit 6ba74dd326
3 changed files with 50 additions and 0 deletions

42
4134.patch Normal file
View File

@ -0,0 +1,42 @@
Index: ghc-8.10.4/docs/users_guide/conf.py
===================================================================
--- ghc-8.10.4.orig/docs/users_guide/conf.py
+++ ghc-8.10.4/docs/users_guide/conf.py
@@ -42,9 +42,6 @@ nitpick_ignore = [
("extension", "DoAndIfThenElse"),
("extension", "RelaxedPolyRec"),
-
- # See #16629
- ("extension", "UnliftedFFITypes"),
]
rst_prolog = """
@@ -100,13 +97,13 @@ htmlhelp_basename = 'GHCUsersGuide'
latex_elements = {
'inputenc': '',
'utf8extra': '',
- 'preamble': '''
+ 'preamble': r'''
\usepackage{fontspec}
\usepackage{makeidx}
\setsansfont{DejaVu Sans}
\setromanfont{DejaVu Serif}
\setmonofont{DejaVu Sans Mono}
-\setlength{\\tymin}{45pt}
+\setlength{\tymin}{45pt}
''',
}
Index: ghc-8.10.4/docs/users_guide/expected-undocumented-flags.txt
===================================================================
--- ghc-8.10.4.orig/docs/users_guide/expected-undocumented-flags.txt
+++ ghc-8.10.4/docs/users_guide/expected-undocumented-flags.txt
@@ -38,7 +38,6 @@
-XAutoDeriveTypeable
-XDoAndIfThenElse
-XDoRec
--XGHCForeignImportPrim
-XGenerics
-XImplicitPrelude
-XJavaScriptFFI

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 25 10:02:25 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
- add 4134.patch to fix build with Sphinx4
-------------------------------------------------------------------
Mon Mar 15 20:33:24 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -80,6 +80,8 @@ Patch35: ghc-pie.patch
Patch100: ghc-8.0.2-Cabal-dynlibdir.patch
# PATCH-FIX-UPSTREAM buildpath-abi-stability.patch -- debian patch for more stable abi-1
Patch110: buildpath-abi-stability.patch
# PATCH-FIX-UPSTREAM 4134.diff -- documentation fiixes and sphinx4 build fix
Patch120: 4134.patch
%description
Haskell is the standard purely functional programming language; the
@ -192,6 +194,7 @@ except the ghc library, which is installed by the toplevel ghc metapackage.
%patch35 -p1
%patch100 -p1
%patch110 -p1
%patch120 -p1
%build
cat > mk/build.mk <<EOF