Accepting request 769886 from devel:languages:haskell:ghc-8.8.x
- use ghc-bootstrap-helpers on all archs - lower build env requirements on riscv64 * make sure we can build on smaller systems * adjust parallelism so we don't hog big workers for almost a week * many thanks to Stefan Bruens for pointing out the issue and helping with the solution OBS-URL: https://build.opensuse.org/request/show/769886 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=324
This commit is contained in:
parent
4463bd1b2b
commit
6f0f75502b
10
_constraints
10
_constraints
@ -13,9 +13,9 @@
|
|||||||
<arch>aarch64</arch>
|
<arch>aarch64</arch>
|
||||||
</conditions>
|
</conditions>
|
||||||
<hardware>
|
<hardware>
|
||||||
<physicalmemory>
|
<memory>
|
||||||
<size unit="G">10</size>
|
<size unit="G">10</size>
|
||||||
</physicalmemory>
|
</memory>
|
||||||
</hardware>
|
</hardware>
|
||||||
</overwrite>
|
</overwrite>
|
||||||
<overwrite>
|
<overwrite>
|
||||||
@ -23,9 +23,9 @@
|
|||||||
<arch>riscv64</arch>
|
<arch>riscv64</arch>
|
||||||
</conditions>
|
</conditions>
|
||||||
<hardware>
|
<hardware>
|
||||||
<physicalmemory>
|
<memory>
|
||||||
<size unit="G">20</size>
|
<size unit="G">17</size>
|
||||||
</physicalmemory>
|
</memory>
|
||||||
</hardware>
|
</hardware>
|
||||||
</overwrite>
|
</overwrite>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
10
ghc.changes
10
ghc.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 23 09:41:53 UTC 2020 - Peter Trommler <ptrommler@icloud.com>
|
||||||
|
|
||||||
|
- use ghc-bootstrap-helpers on all archs
|
||||||
|
- lower build env requirements on riscv64
|
||||||
|
* make sure we can build on smaller systems
|
||||||
|
* adjust parallelism so we don't hog big workers for almost a week
|
||||||
|
* many thanks to Stefan Bruens for pointing out the issue and
|
||||||
|
helping with the solution
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 21 07:47:13 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
Tue Jan 21 07:47:13 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
30
ghc.spec
30
ghc.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc
|
# spec file for package ghc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -44,6 +44,7 @@ ExclusiveArch: aarch64 %{arm} %{ix86} x86_64 ppc64 ppc64le riscv64 s390x
|
|||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: ghc-bootstrap >= 8.4
|
BuildRequires: ghc-bootstrap >= 8.4
|
||||||
|
BuildRequires: ghc-bootstrap-helpers
|
||||||
BuildRequires: ghc-rpm-macros-extra
|
BuildRequires: ghc-rpm-macros-extra
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
@ -68,9 +69,11 @@ BuildRequires: binutils-gold
|
|||||||
%endif
|
%endif
|
||||||
%ifarch aarch64 %{arm} %{ix86} x86_64
|
%ifarch aarch64 %{arm} %{ix86} x86_64
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} >= 1550
|
||||||
BuildRequires: llvm7-devel
|
BuildRequires: llvm7
|
||||||
|
Requires: llvm7
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: llvm
|
||||||
|
Requires: llvm
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if %{undefined without_manual}
|
%if %{undefined without_manual}
|
||||||
@ -81,21 +84,14 @@ BuildRequires: python3-Sphinx
|
|||||||
BuildRequires: libnuma-devel
|
BuildRequires: libnuma-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# bogus requires
|
|
||||||
%ifarch x86_64
|
|
||||||
BuildRequires: ghc-bootstrap-helpers
|
|
||||||
%else
|
|
||||||
BuildRequires: alex
|
|
||||||
BuildRequires: happy
|
|
||||||
%endif
|
|
||||||
|
|
||||||
PreReq: update-alternatives
|
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-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 fix-unregisterised-v8.4-8.6.patch
|
# PATCH-FIX-UPSTREAM fix-unregisterised-v8.4-8.6.patch ptrommler@icloud.com -- Fix/workaround an issue with unregisterised builds bootstrapped with GHC 8.4 and 8.6. Similar to upstream ticket #15913.
|
||||||
Patch6: fix-unregisterised-v8.4-8.6.patch
|
Patch6: fix-unregisterised-v8.4-8.6.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
|
||||||
Patch35: ghc-pie.patch
|
Patch35: ghc-pie.patch
|
||||||
@ -271,16 +267,16 @@ export CFLAGS="${CFLAGS:-%optflags}"
|
|||||||
--sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} \
|
--sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} \
|
||||||
--with-system-libffi
|
--with-system-libffi
|
||||||
|
|
||||||
%ifnarch s390 s390x riscv64
|
|
||||||
%if 0%{?suse_version} >= 1500
|
%if 0%{?suse_version} >= 1500
|
||||||
|
%ifarch unregisterised_archs
|
||||||
|
%limit_build -m 8000
|
||||||
|
%else
|
||||||
%limit_build -m 2000
|
%limit_build -m 2000
|
||||||
|
%endif
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%else
|
%else
|
||||||
make -j 2
|
make -j 2
|
||||||
%endif
|
%endif
|
||||||
%else
|
|
||||||
make
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?suse_version} <= 1320
|
%if 0%{?suse_version} <= 1320
|
||||||
@ -448,8 +444,6 @@ fi
|
|||||||
%{ghcdocbasedir}/users_guide
|
%{ghcdocbasedir}/users_guide
|
||||||
%endif
|
%endif
|
||||||
%{ghcdocbasedir}/libraries/gen_contents_index
|
%{ghcdocbasedir}/libraries/gen_contents_index
|
||||||
#%%{ghcdocbasedir}/libraries/hslogo-16.png
|
|
||||||
#%%{ghcdocbasedir}/libraries/ocean.css
|
|
||||||
%{ghcdocbasedir}/libraries/linuwial.css
|
%{ghcdocbasedir}/libraries/linuwial.css
|
||||||
%{ghcdocbasedir}/libraries/quick-jump.css
|
%{ghcdocbasedir}/libraries/quick-jump.css
|
||||||
%{ghcdocbasedir}/libraries/prologue.txt
|
%{ghcdocbasedir}/libraries/prologue.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user