osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc revision:52, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=361
This commit is contained in:
Ondřej Súkup 2021-09-07 15:04:09 +00:00 committed by Git OBS Bridge
parent 6ba74dd326
commit 42a735a8e0
8 changed files with 67 additions and 70 deletions

View File

@ -1,42 +0,0 @@
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 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:52af871b4e08550257d720c2944ac85727d0b948407cef1bebfe7508c224910e
size 19818108

Binary file not shown.

3
ghc-8.10.7-src.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e3eef6229ce9908dfe1ea41436befb0455fefb1932559e860ad4c606b0d03c9d
size 19932668

BIN
ghc-8.10.7-src.tar.xz.sig Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
Index: ghc-8.10.0.20200123/compiler/main/DynFlags.hs
Index: ghc-8.10.7/compiler/main/DynFlags.hs
===================================================================
--- ghc-8.10.0.20200123.orig/compiler/main/DynFlags.hs
+++ ghc-8.10.0.20200123/compiler/main/DynFlags.hs
@@ -4624,6 +4624,7 @@ default_PIC :: Platform -> [GeneralFlag]
default_PIC platform =
case (platformOS platform, platformArch platform) of
(OSDarwin, ArchX86_64) -> [Opt_PIC]
+ (OSLinux, ArchX86_64) -> [Opt_PIC]
(OSOpenBSD, ArchX86_64) -> [Opt_PIC] -- Due to PIE support in
-- OpenBSD since 5.3 release
-- (1 May 2013) we need to
--- ghc-8.10.7.orig/compiler/main/DynFlags.hs
+++ ghc-8.10.7/compiler/main/DynFlags.hs
@@ -4659,6 +4659,7 @@ default_PIC platform =
-- of that. Subsequently we expect all code on aarch64/linux (and macOS) to
-- be built with -fPIC.
-- See #15275, #18892
+ (OSLinux, ArchX86_64) -> [Opt_PIC]
(OSDarwin, ArchAArch64) -> [Opt_PIC]
(OSLinux, ArchAArch64) -> [Opt_PIC, Opt_ExternalDynamicRefs]
(OSLinux, ArchARM {}) -> [Opt_PIC, Opt_ExternalDynamicRefs]

View File

@ -1,3 +1,45 @@
---- ---------------------------------------------------------------
Fri Sep 3 20:57:29 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 8.10.7
- drop 4134.path and refresh ghc-pie.patch
* portabilit yfixes
* Export some RTS symbols required for static builds of GHC
* Fix LLVM version checking logic so it no longer complains
about supported LLVM versions.
* Fix some RTS crashes on Darwin due to mixing up the closure
sizes of the aarch64 and x86-64 backends.
* Fix a crash on the non-moving GC due to incorrect logic
for calculating the header size for array write barries
* Fix a bug in base leading to a high likelihood of space
leaks when using lazy bytestrings
* Fix some timer races in the RTS possibly manifesting in #18033 and #20132
* Fix a number of bugs affecting the RTS m32 allocator
* Fix a bug where code may be unloaded prematurely
when using the parallel garbage collector
* Fix a bug where the linker may during shutdown unload code before
libraries atexit handlers have a chance to run
* Improve code layout by distiguishing conditional and unconditional branches
* Add hs-boot file support for -ddump-minimal-imports
* Ensure hs-boot files are built before source files in GHCs -M mode
* Fix a long standing GHC API bug affecting clients like HLS where
async exceptions used to cancel threads during typechecking would be
caught by the Template Haskell evaluator and reported as compile errors
* Improve error messages when looking up packages fails
* Fix a number of quirks in GC accounting
* Fix a code generation bug which could result in entry of unlifted
objects in some programs using unboxed sums
* Ensure that POSIX signals are not delivered to the ticker thread
when using the pthread itimer implementation.
* Fix a specialiser bug which could result in the construction
of recursive dictionaries in some programs
* Bump containers to 0.6.4.1
* Do not treat -Winferred-safe-imports warnings as errors.
* Fix a bug where typechecker plugins could be run with
an inconsistent typechecker environment
* Fix a simplifier bug which lead to an exponential
blow up and excessive memory usage in certain cases
-------------------------------------------------------------------
Fri Jun 25 10:02:25 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -23,10 +23,10 @@
%endif
%global unregisterised_archs s390 s390x riscv64
%define full_version 8.10.4
%define full_version 8.10.7
Name: ghc
Version: 8.10.4
Version: 8.10.7
Release: 0
URL: https://www.haskell.org/ghc/
Source: https://downloads.haskell.org/~ghc/%{full_version}/ghc-%{version}-src.tar.xz
@ -53,10 +53,10 @@ BuildRequires: xz
%ifarch aarch64 %{arm}
BuildRequires: binutils-gold
%endif
%ifarch aarch64 %{arm} %{ix86} x86_64
BuildRequires: clang9
BuildRequires: llvm9
BuildRequires: llvm9-devel
%ifarch aarch64 %{arm}
BuildRequires: clang >= 9
BuildRequires: llvm >= 9
BuildRequires: llvm-devel >= 9
%endif
%if %{undefined without_manual}
BuildRequires: python3-Sphinx
@ -80,8 +80,6 @@ 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
@ -139,10 +137,10 @@ To install all of GHC install package ghc.
#!ForceMultiversion
%ghc_lib_subpackage -d Cabal-3.2.1.0
%ghc_lib_subpackage -d array-0.5.4.0
%ghc_lib_subpackage -d -c gmp-devel,libffi-devel,libdw-devel,libelf-devel%{libnuma_dep} base-4.14.1.0
%ghc_lib_subpackage -d -c gmp-devel,libffi-devel,libdw-devel,libelf-devel%{libnuma_dep} base-4.14.3.0
%ghc_lib_subpackage -d binary-0.8.8.0
%ghc_lib_subpackage -d bytestring-0.10.12.0
%ghc_lib_subpackage -d containers-0.6.2.1
%ghc_lib_subpackage -d containers-0.6.5.1
%ghc_lib_subpackage -d deepseq-1.4.4.0
%ghc_lib_subpackage -d directory-1.3.6.0
%ghc_lib_subpackage -d exceptions-0.10.4
@ -153,14 +151,14 @@ To install all of GHC install package ghc.
%ghc_lib_subpackage -d ghc-compact-0.1.0.0
%ghc_lib_subpackage -d ghc-heap-%{ghc_version_override}
%ghc_lib_subpackage -d -x ghci-%{ghc_version_override}
%ghc_lib_subpackage -d haskeline-0.8.0.1
%ghc_lib_subpackage -d haskeline-0.8.2
%ghc_lib_subpackage -d hpc-0.6.1.0
%ghc_lib_subpackage -d libiserv-%{ghc_version_override}
%ghc_lib_subpackage -d mtl-2.2.2
%ghc_lib_subpackage -d parsec-3.1.14.0
%ghc_lib_subpackage -d pretty-1.1.3.6
%ghc_lib_subpackage -d process-1.6.9.0
%ghc_lib_subpackage -d stm-2.5.0.0
%ghc_lib_subpackage -d process-1.6.13.2
%ghc_lib_subpackage -d stm-2.5.0.1
%ghc_lib_subpackage -d template-haskell-2.16.0.0
%ghc_lib_subpackage -d -c ncurses-devel terminfo-0.4.1.4
%ghc_lib_subpackage -d text-1.2.4.1
@ -194,7 +192,6 @@ 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