osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc revision:55, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=367
This commit is contained in:
parent
ce7761af88
commit
ee16ea3958
11
ghc-armv7-VFPv3D16--NEON.patch
Normal file
11
ghc-armv7-VFPv3D16--NEON.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- ghc-8.10.7/aclocal.m4
|
||||||
|
+++ ghc-8.10.7/aclocal.m4
|
||||||
|
@@ -408,7 +408,7 @@
|
||||||
|
)],
|
||||||
|
[changequote(, )dnl
|
||||||
|
ARM_ISA=ARMv7
|
||||||
|
- ARM_ISA_EXT="[VFPv3,NEON]"
|
||||||
|
+ ARM_ISA_EXT="[VFPv3D16]"
|
||||||
|
changequote([, ])dnl
|
||||||
|
])
|
||||||
|
])
|
17
ghc.changes
17
ghc.changes
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 27 17:04:51 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add ghc.keyring to have source validation enabled
|
||||||
|
- limit to use llvm12 for Factory as newer versions are not supported
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 29 13:49:29 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Remove dependency on binutils-gold as the package will be removed
|
||||||
|
in the future. Gold linker is unmaintained by the upstream project.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 8 22:35:07 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add ghc-armv7-VFPv3D16--NEON.patch to use vfpv3-d16 on armv7hl
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 3 20:57:29 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
Fri Sep 3 20:57:29 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
41
ghc.keyring
Normal file
41
ghc.keyring
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQGNBGC7eIUBDAC5xWztdYHAHMraJcy555udPgGyw36KOIH0/Sp6mRS5YJCwSp86
|
||||||
|
yNzuJTo/zZfZc7oDoQX5c8/tNi9BsDL0f/XEBiYEtfXmSTeN9R0NU/3THjdCz9t9
|
||||||
|
H9bD52l1nOwyawwanIjktfB7qZU97agcMHyl8VVmEH9kCTHTKkGxvDwtL4MHANsz
|
||||||
|
ZcFQggMvNKE/uxc8CARIdYM1G1PxxxnyPrKry461s6Q9tNmiOyxAjv5t72qGHGZh
|
||||||
|
d+jKq31zI+VPuXB1UuMqvQMwhvplHlWEZOeazSpt361ryuUHDWdKkiKrzSRDK1JV
|
||||||
|
Gsi3Exdioa4HSNQVv3bX4q1pmVneyTPSjF3rge5Qe77ogok1ba92PvJqe6VG+2yD
|
||||||
|
gIbug15mnLspySqc3ukvPUBUyJx5y7i/RY4sbElvvnQfiGwITGEeA81ejOUrbKKD
|
||||||
|
czEI2a2cLNFINn5En4+M2PCkc9tOuRU4PE/fS4qfUWknPn0+rW6PaE/AR7aGaqaq
|
||||||
|
11jQQzxX/gZtrU0AEQEAAbQ1WnViaW4gRHVnZ2FsIChHSEMgc2lnbmluZyBrZXkp
|
||||||
|
IDx6dWJpbkB3ZWxsLXR5cGVkLmNvbT6JAdQEEwEIAD4WIQSItX/PfbU7TbO/pLFY
|
||||||
|
h2T74i0ZxAUCYLt4hQIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAK
|
||||||
|
CRBYh2T74i0ZxNTCC/9sfAWRr8GjI0HtN2dkGtMFCgyM0YNR472wEsquR1g3oabD
|
||||||
|
pFptsKDxcL2V9NFTEReim9MsOYcQyJuiszk2KiWfSuPxuPvsTbo3vrk4XX2WC37o
|
||||||
|
X4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QG8BBgBCAAmFiEEiLV/z321
|
||||||
|
O02zv6SxWIdk++ItGcQFAmC7eIUCGwwFCQPCZwAACgkQWIdk++ItGcSVqAwAnJHT
|
||||||
|
1hTyOjFxJdLVr2R+Y6BO8/hBCvCcW1CL+8mMBAVIM9Eu1TEViKG5n3972qbBurvC
|
||||||
|
jUt8j1Wa0//FrFV+3q5wkJ2+2qyJ1esTYwU1o54kSLMwj2bXG8N4K3XrXxGScJm6
|
||||||
|
vCzbLToTyQ/wZfB0iYA7Jwoxww8FoYmrTo/iqXVI6pIVK4xZVpR1pQZgc0wOoFku
|
||||||
|
5p58DJlr4somcysEh8HlwC8NcVF1FDILkT6q4jAybU8Mw7pmk7hQlla7CtR3pf/n
|
||||||
|
Q0jbbfpWSdDmdaG4SMa3msjKf3nw2Vo+VOWSGvxxzDw/abhY3z85SUR3WU4QWlNN
|
||||||
|
SIUy5xE56Do4a21hMwc/x8SjMgK8h8u7hoP6ebJNzhwVWruQqha2+ADzTOVhvsfy
|
||||||
|
G8N3uv6qSJdzhg7QH9MFiHydXaQVGBqX6IEwjghcP+bI7BgC87dUD/OQ3HF81S3A
|
||||||
|
QJeQnApm+4zYUl2nhR16E8rtQ8aZpZDoDSI2fWjUPQ7uRDxW9/LuA9VO7yoq
|
||||||
|
=AZOC
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
38
ghc.spec
38
ghc.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc
|
# spec file for package ghc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -23,6 +23,11 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global unregisterised_archs s390 s390x riscv64
|
%global unregisterised_archs s390 s390x riscv64
|
||||||
|
%if 0%{suse_version} > 1550
|
||||||
|
%global llvm_major 12
|
||||||
|
%else
|
||||||
|
%global llvm_major 9
|
||||||
|
%endif
|
||||||
%define full_version 8.10.7
|
%define full_version 8.10.7
|
||||||
|
|
||||||
Name: ghc
|
Name: ghc
|
||||||
@ -32,6 +37,7 @@ URL: https://www.haskell.org/ghc/
|
|||||||
Source: https://downloads.haskell.org/~ghc/%{full_version}/ghc-%{version}-src.tar.xz
|
Source: https://downloads.haskell.org/~ghc/%{full_version}/ghc-%{version}-src.tar.xz
|
||||||
Source1: https://downloads.haskell.org/~ghc/%{full_version}/ghc-%{version}-src.tar.xz.sig
|
Source1: https://downloads.haskell.org/~ghc/%{full_version}/ghc-%{version}-src.tar.xz.sig
|
||||||
Source2: ghc-rpmlintrc
|
Source2: ghc-rpmlintrc
|
||||||
|
Source9: ghc.keyring
|
||||||
Summary: The Glorious Glasgow Haskell Compiler
|
Summary: The Glorious Glasgow Haskell Compiler
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
@ -51,12 +57,9 @@ BuildRequires: ncurses-devel
|
|||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
%ifarch aarch64 %{arm}
|
%ifarch aarch64 %{arm}
|
||||||
BuildRequires: binutils-gold
|
BuildRequires: clang%{llvm_major}
|
||||||
%endif
|
BuildRequires: llvm%{llvm_major}
|
||||||
%ifarch aarch64 %{arm}
|
BuildRequires: llvm%{llvm_major}-devel
|
||||||
BuildRequires: clang >= 9
|
|
||||||
BuildRequires: llvm >= 9
|
|
||||||
BuildRequires: llvm-devel >= 9
|
|
||||||
%endif
|
%endif
|
||||||
%if %{undefined without_manual}
|
%if %{undefined without_manual}
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
@ -71,7 +74,8 @@ PreReq: update-alternatives
|
|||||||
Requires: ghc-compiler = %{version}-%{release}
|
Requires: ghc-compiler = %{version}-%{release}
|
||||||
Requires: ghc-ghc-devel = %{version}-%{release}
|
Requires: ghc-ghc-devel = %{version}-%{release}
|
||||||
Requires: ghc-libraries = %{version}-%{release}
|
Requires: ghc-libraries = %{version}-%{release}
|
||||||
|
# PATCH-FIX-OPENSUSE: use vfpv3-d16 and disable NEON
|
||||||
|
Patch2: ghc-armv7-VFPv3D16--NEON.patch
|
||||||
# PATCH-FIX-UPSTREAM Disable-unboxed-arrays.patch ptrommler@icloud.com -- Do not use unboxed arrays on big-endian platforms. See Haskell Trac #15411.
|
# PATCH-FIX-UPSTREAM Disable-unboxed-arrays.patch ptrommler@icloud.com -- Do not use unboxed arrays on big-endian platforms. See Haskell Trac #15411.
|
||||||
Patch3: Disable-unboxed-arrays.patch
|
Patch3: Disable-unboxed-arrays.patch
|
||||||
# PATCH-FIX-UPSTREAM ghc-pie.patch - set linux as default PIE platform
|
# PATCH-FIX-UPSTREAM ghc-pie.patch - set linux as default PIE platform
|
||||||
@ -104,17 +108,16 @@ Group: Development/Languages/Other
|
|||||||
Requires: gcc
|
Requires: gcc
|
||||||
Requires: ghc-base-devel
|
Requires: ghc-base-devel
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
%ifarch aarch64 %{arm}
|
%ifarch aarch64 %{arm}
|
||||||
Requires: binutils-gold
|
Requires: binutils-gold
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64 %{arm}
|
%ifarch aarch64 %{arm}
|
||||||
Requires: clang9
|
Requires: clang%{llvm_major}
|
||||||
Requires: llvm9
|
Requires: llvm%{llvm_major}
|
||||||
%endif
|
%else
|
||||||
%ifarch x86_64 %{ix86}
|
Suggests: clang%{llvm_major}
|
||||||
Suggests: clang9
|
Suggests: llvm%{llvm_major}
|
||||||
Suggests: llvm9
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description compiler
|
%description compiler
|
||||||
@ -143,7 +146,7 @@ To install all of GHC install package ghc.
|
|||||||
%ghc_lib_subpackage -d containers-0.6.5.1
|
%ghc_lib_subpackage -d containers-0.6.5.1
|
||||||
%ghc_lib_subpackage -d deepseq-1.4.4.0
|
%ghc_lib_subpackage -d deepseq-1.4.4.0
|
||||||
%ghc_lib_subpackage -d directory-1.3.6.0
|
%ghc_lib_subpackage -d directory-1.3.6.0
|
||||||
%ghc_lib_subpackage -d exceptions-0.10.4
|
%ghc_lib_subpackage -d exceptions-0.10.4
|
||||||
%ghc_lib_subpackage -d filepath-1.4.2.1
|
%ghc_lib_subpackage -d filepath-1.4.2.1
|
||||||
%ghc_lib_subpackage -d -x ghc-%{ghc_version_override}
|
%ghc_lib_subpackage -d -x ghc-%{ghc_version_override}
|
||||||
%ghc_lib_subpackage -d ghc-boot-%{ghc_version_override}
|
%ghc_lib_subpackage -d ghc-boot-%{ghc_version_override}
|
||||||
@ -186,6 +189,7 @@ except the ghc library, which is installed by the toplevel ghc metapackage.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch2 -p1
|
||||||
%ifarch ppc64 s390 s390x
|
%ifarch ppc64 s390 s390x
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%endif
|
%endif
|
||||||
@ -257,7 +261,7 @@ export CFLAGS="${CFLAGS:-%optflags}"
|
|||||||
%limit_build -m 2000
|
%limit_build -m 2000
|
||||||
%endif
|
%endif
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%else
|
%else
|
||||||
make -j 2
|
make -j 2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user