The package rpms/ghc-rpm-macros.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/ghc-rpm-macros.git/commit/?id=d190fa....
Change: -%ifarch aarch64 s390x\
Thanks.
Full change: ============
commit 7de08b499ae187cde1d9e27ecf42986161108bac Author: Jens Petersen petersen@redhat.com Date: Fri Oct 5 17:58:58 2018 +0900
disable dynamic linking of executables for better portability
diff --git a/macros.ghc b/macros.ghc index e67ba38..1a48dfc 100644 --- a/macros.ghc +++ b/macros.ghc @@ -2,7 +2,7 @@ # see https://fedoraproject.org/wiki/Packaging:Haskell for more details
# "cabal" -%cabal [ -x Setup ] || ghc --make %{!?ghc_user_conf:-no-user-package-db} %{!?ghc_without_dynamic:-dynamic} Setup\ +%cabal [ -x Setup ] || ghc --make %{!?ghc_user_conf:-no-user-package-db} %{!?ghc_static_setup:-dynamic} Setup\ LANG=en_US.utf8\ ./Setup
diff --git a/macros.ghc-os b/macros.ghc-os index e6ac90c..cdab44c 100644 --- a/macros.ghc-os +++ b/macros.ghc-os @@ -4,4 +4,6 @@
%_ghcdynlibdir %{_libdir}
+%ghc_without_dynamic 1 + %cabal_install_options -v
commit d190fa9b04536ab0c74f830493a867cfb29f7bad Author: Jens Petersen petersen@redhat.com Date: Fri Oct 5 17:53:41 2018 +0900
replace %ghc_set_cflags with simplified %ghc_set_gcc_flags
tested in ghc.spec in ghc:8.4 module
diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 2fef7f3..69f7896 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -10,7 +10,7 @@ #%%global without_hscolour 1
Name: ghc-rpm-macros -Version: 1.9.2 +Version: 1.9.3 Release: 1%{?dist} Summary: RPM macros for building Haskell packages for GHC
@@ -170,6 +170,9 @@ EOF
%changelog +* Fri Oct 5 2018 Jens Petersen petersen@redhat.com - 1.9.3-1 +- replace ghc_set_cflags with simplified ghc_set_gcc_flags + * Tue Jul 31 2018 Jens Petersen petersen@redhat.com - 1.9.2-1 - inject a Setup.hs if none shipped
diff --git a/macros.ghc b/macros.ghc index 6313c1f..e67ba38 100644 --- a/macros.ghc +++ b/macros.ghc @@ -9,14 +9,10 @@ LANG=en_US.utf8\ # compiler version %ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override}
-%ghc_set_cflags\ -# -Wunused-label is extremely noisy\ -%ifarch aarch64 s390x\ -CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //' -e 's/-Werror=format-security //')}"\ -%else\ -CFLAGS="${CFLAGS:-%optflags}"\ -%endif\ -export CFLAGS\ + +%ghc_set_gcc_flags\ +export CFLAGS="${CFLAGS:-%optflags}"\ +export LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"\ %{nil}
# configure
arch-excludes@lists.fedoraproject.org