From 6f0f75502bc2efc7f831d972ee188bffe415e303d4bd650f231eb2321fbe84c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 4 Feb 2020 09:07:18 +0000 Subject: [PATCH] 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 --- _constraints | 10 +++++----- ghc.changes | 10 ++++++++++ ghc.spec | 30 ++++++++++++------------------ 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/_constraints b/_constraints index 94f1aed..a1d81ee 100644 --- a/_constraints +++ b/_constraints @@ -13,9 +13,9 @@ aarch64 - + 10 - + @@ -23,9 +23,9 @@ riscv64 - - 20 - + + 17 + diff --git a/ghc.changes b/ghc.changes index 5bad5ec..290936a 100644 --- a/ghc.changes +++ b/ghc.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Jan 23 09:41:53 UTC 2020 - Peter Trommler + +- 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 diff --git a/ghc.spec b/ghc.spec index 1b151a7..1e48740 100644 --- a/ghc.spec +++ b/ghc.spec @@ -1,7 +1,7 @@ # # 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 # 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: gcc BuildRequires: ghc-bootstrap >= 8.4 +BuildRequires: ghc-bootstrap-helpers BuildRequires: ghc-rpm-macros-extra BuildRequires: glibc-devel BuildRequires: gmp-devel @@ -68,9 +69,11 @@ BuildRequires: binutils-gold %endif %ifarch aarch64 %{arm} %{ix86} x86_64 %if 0%{?suse_version} >= 1550 -BuildRequires: llvm7-devel +BuildRequires: llvm7 +Requires: llvm7 %else -BuildRequires: llvm-devel +BuildRequires: llvm +Requires: llvm %endif %endif %if %{undefined without_manual} @@ -81,21 +84,14 @@ BuildRequires: python3-Sphinx BuildRequires: libnuma-devel %endif -# bogus requires -%ifarch x86_64 -BuildRequires: ghc-bootstrap-helpers -%else -BuildRequires: alex -BuildRequires: happy -%endif - PreReq: update-alternatives Requires: ghc-compiler = %{version}-%{release} Requires: ghc-ghc-devel = %{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. 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 # PATCH-FIX-UPSTREAM ghc-pie.patch - set linux as default PIE platform Patch35: ghc-pie.patch @@ -271,16 +267,16 @@ export CFLAGS="${CFLAGS:-%optflags}" --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} \ --with-system-libffi -%ifnarch s390 s390x riscv64 %if 0%{?suse_version} >= 1500 +%ifarch unregisterised_archs +%limit_build -m 8000 +%else %limit_build -m 2000 +%endif make %{?_smp_mflags} %else make -j 2 %endif -%else -make -%endif %install %if 0%{?suse_version} <= 1320 @@ -448,8 +444,6 @@ fi %{ghcdocbasedir}/users_guide %endif %{ghcdocbasedir}/libraries/gen_contents_index -#%%{ghcdocbasedir}/libraries/hslogo-16.png -#%%{ghcdocbasedir}/libraries/ocean.css %{ghcdocbasedir}/libraries/linuwial.css %{ghcdocbasedir}/libraries/quick-jump.css %{ghcdocbasedir}/libraries/prologue.txt