From 31244741925e73aba806545c728ba84c276bb1e3 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 23 May 2018 10:34:08 +0900 Subject: [PATCH] drop %ghc_check_bootstrap and add %ghc_quick_build - according to upstream it is redundant now to build ghc against itself - %ghc_quick_build replaces %ghc_bootstrap --- ghc-rpm-macros.spec | 8 ++++++-- macros.ghc | 23 ++++++----------------- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 6ff3f00..73e7712 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -10,8 +10,8 @@ #%%global without_hscolour 1 Name: ghc-rpm-macros -Version: 1.8.7 -Release: 6%{?dist} +Version: 1.8.8 +Release: 1%{?dist} Summary: RPM macros for building Haskell packages for GHC License: GPLv3+ @@ -166,6 +166,10 @@ EOF %changelog +* Wed May 23 2018 Jens Petersen - 1.8.8-1 +- rename ghc_bootstrap to ghc_quick_build (disables prof and haddock) +- ghc_check_bootstrap should be redundant now according to upstream + * Mon Apr 30 2018 Jens Petersen - 1.8.7-6 - obsolete ghc-fail diff --git a/macros.ghc b/macros.ghc index 496c927..1d9fad5 100644 --- a/macros.ghc +++ b/macros.ghc @@ -9,19 +9,6 @@ LANG=en_US.utf8\ # compiler version %ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override} -# check ghc version was rebuilt against self -%ghc_check_bootstrap\ -if [ ! "$(ghc --info | grep \\"Booter\\ version\\",\\"%{ghc_version}\\")" ]; then\ - echo "Warning: this ghc build is not self-bootstrapped."\ -%if %{undefined ghc_bootstrapping}\ - echo "The ghc package should be rebuilt against its current version before\ -proceeding, to avoid dependency ABI breakage from a future ghc rebuild."\ - echo "To override set ghc_bootstrapping."\ - echo "Aborting."\ - exit 1\ -%endif\ -fi - %ghc_set_cflags\ # -Wunused-label is extremely noisy\ %ifarch aarch64 s390x\ @@ -34,7 +21,6 @@ export CFLAGS\ # configure %cabal_configure\ -%ghc_check_bootstrap\ %ghc_set_cflags\ %global _hardened_ldflags %{nil}\ LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\ @@ -242,10 +228,13 @@ done\ %ghc_pkg_recache %{_bindir}/ghc-pkg-%{ghc_version} recache --no-user-package-db || : -# without_hscolour and without_testsuite need to be set locally in the spec file - -# skip prof libs and documentation +# deprecated %ghc_bootstrap\ %global without_prof 1\ %global without_haddock 1\ %global without_manual 1 + +# skip prof libs and documentation +%ghc_quick_build\ +%global without_prof 1\ +%global without_haddock 1