Accepting request 614267 from devel:languages:haskell
Update to 8.4.3. OBS-URL: https://build.opensuse.org/request/show/614267 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc?expand=0&rev=61
This commit is contained in:
commit
dcc09d2be5
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:01cc32f24a06bf3b2428351b6d7fec791e82d042426d29ad9e5a245b35f0047b
|
|
||||||
size 11313140
|
|
3
ghc-8.4.3-src.tar.xz
Normal file
3
ghc-8.4.3-src.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ae47afda985830de8811243255aa3744dfb9207cb980af74393298b2b62160d6
|
||||||
|
size 11315068
|
15
ghc.changes
15
ghc.changes
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 1 13:13:27 UTC 2018 - ptrommler@icloud.com
|
||||||
|
|
||||||
|
- update to 8.4.3
|
||||||
|
* code generation for UnboxedSum fixed
|
||||||
|
* compatibility withe newer binutils (as)
|
||||||
|
* Cabal issue with abi-depends fixed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 27 17:17:36 UTC 2018 - ptrommler@icloud.com
|
||||||
|
|
||||||
|
- Fix build for older openSUSE
|
||||||
|
- Don't do selfbootstrapping
|
||||||
|
* Cuts down build time roughly in half
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 18 06:37:11 UTC 2018 - guillaume.gardet@opensuse.org
|
Fri May 18 06:37:11 UTC 2018 - guillaume.gardet@opensuse.org
|
||||||
|
|
||||||
|
60
ghc.spec
60
ghc.spec
@ -29,7 +29,7 @@
|
|||||||
%global unregisterised_archs s390 s390x
|
%global unregisterised_archs s390 s390x
|
||||||
|
|
||||||
Name: ghc
|
Name: ghc
|
||||||
Version: 8.4.2
|
Version: 8.4.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.xz
|
Url: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar.xz
|
||||||
Summary: The Glorious Glasgow Haskell Compiler
|
Summary: The Glorious Glasgow Haskell Compiler
|
||||||
@ -60,7 +60,11 @@ BuildRequires: xz
|
|||||||
BuildRequires: binutils-gold
|
BuildRequires: binutils-gold
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64 %{arm} %{ix86} x86_64
|
%ifarch aarch64 %{arm} %{ix86} x86_64
|
||||||
|
%if %{suse_version} >= 1500
|
||||||
BuildRequires: llvm5-devel
|
BuildRequires: llvm5-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: llvm-devel
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if %{undefined without_manual}
|
%if %{undefined without_manual}
|
||||||
BuildRequires: python-sphinx
|
BuildRequires: python-sphinx
|
||||||
@ -115,11 +119,10 @@ Requires(postun): update-alternatives
|
|||||||
Requires: binutils-gold
|
Requires: binutils-gold
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64 %{arm} %{ix86} x86_64
|
%ifarch aarch64 %{arm} %{ix86} x86_64
|
||||||
# Leap:15 + SLE15 now have wrong metapackage
|
%if 0%{?suse_version} >= 1500
|
||||||
%if 0%{?suse_version} >= 1550 || 0%{?suse_version} == 1315
|
|
||||||
Requires: llvm
|
|
||||||
%else
|
|
||||||
Requires: llvm5
|
Requires: llvm5
|
||||||
|
%else
|
||||||
|
Requires: llvm
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -194,46 +197,6 @@ except the ghc library, which is installed by the toplevel ghc metapackage.
|
|||||||
# Probably fixed upstream
|
# Probably fixed upstream
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Check if bootstrap is required, i.e. version is different from ghc's version
|
|
||||||
# Note: Cannot use ghc_version macro here as we defined version override earlier
|
|
||||||
%if "%version" != "%(ghc --numeric-version)"
|
|
||||||
%define ghc_boot 1
|
|
||||||
cat > mk/build.mk <<EOF
|
|
||||||
GhcLibWays = v %{!?ghc_without_shared:dyn}
|
|
||||||
%if %{defined ghc_without_shared}
|
|
||||||
DYNAMIC_BY_DEFAULT = NO
|
|
||||||
DYNAMIC_GHC_PROGRAMS = NO
|
|
||||||
%endif
|
|
||||||
%ifarch %{unregisterised_archs}
|
|
||||||
GhcUnregisterised = YES
|
|
||||||
GhcWithNativeCodeGen = NO
|
|
||||||
GhcWithInterpreter = YES
|
|
||||||
SRC_HC_OPTS = -O -H64m
|
|
||||||
GhcStage1HcOpts = -O
|
|
||||||
GhcStage2HcOpts = -O
|
|
||||||
GhcHcOpts = -Rghc-timing
|
|
||||||
GhcLibHcOpts = -O
|
|
||||||
SRC_HC_OPTS += -optc-fno-builtin
|
|
||||||
SRC_CC_OPTS += -fno-builtin
|
|
||||||
SRC_HC_OPTS += -optc-Wno-return-type
|
|
||||||
SRC_CC_OPTS += -Wno-return-type
|
|
||||||
%endif
|
|
||||||
HADDOCK_DOCS = NO
|
|
||||||
BUILD_SPHINX_HTML = NO
|
|
||||||
BUILD_SPHINX_PS = NO
|
|
||||||
BUILD_SPHINX_PDF = NO
|
|
||||||
HSCOLOUR_SRCS = NO
|
|
||||||
EOF
|
|
||||||
./configure --prefix=%{_builddir}/ghc-boot --with-system-libffi
|
|
||||||
%ifnarch aarch64 %{arm} s390 s390x
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
%else
|
|
||||||
make -j 2
|
|
||||||
%endif
|
|
||||||
make install
|
|
||||||
make clean
|
|
||||||
%endif
|
|
||||||
|
|
||||||
cat > mk/build.mk <<EOF
|
cat > mk/build.mk <<EOF
|
||||||
%ifarch aarch64 %{arm}
|
%ifarch aarch64 %{arm}
|
||||||
BuildFlavour = perf-llvm
|
BuildFlavour = perf-llvm
|
||||||
@ -341,7 +304,9 @@ for i in hsc2hs runhaskell; do
|
|||||||
touch %{buildroot}%{_sysconfdir}/alternatives/$i
|
touch %{buildroot}%{_sysconfdir}/alternatives/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
%if 0%{?suse_version} <= 1320
|
||||||
%ghc_strip_dynlinked
|
%ghc_strip_dynlinked
|
||||||
|
%endif
|
||||||
|
|
||||||
find %{buildroot}%{ghclibdocdir} -name LICENSE -exec rm '{}' ';'
|
find %{buildroot}%{ghclibdocdir} -name LICENSE -exec rm '{}' ';'
|
||||||
|
|
||||||
@ -465,6 +430,11 @@ fi
|
|||||||
%ghost %{ghcdocbasedir}/libraries/minus.gif
|
%ghost %{ghcdocbasedir}/libraries/minus.gif
|
||||||
%ghost %{ghcdocbasedir}/libraries/plus.gif
|
%ghost %{ghcdocbasedir}/libraries/plus.gif
|
||||||
%endif
|
%endif
|
||||||
|
# With 1.7.4 of ghc-rpm-macros license files are installed here
|
||||||
|
# but rpm does not own this directory on older openSUSE.
|
||||||
|
%if 0%{?suse_version} <= 1320
|
||||||
|
%dir %{_datadir}/licenses
|
||||||
|
%endif
|
||||||
|
|
||||||
%files libraries
|
%files libraries
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user