Compare commits
11 Commits
Author | SHA1 | Date |
---|---|---|
Jens Petersen | cc6896ffb2 | |
Jens Petersen | af33d867e7 | |
Jens Petersen | ed642adf8d | |
Jens Petersen | 7d29e3748f | |
Jens Petersen | 55671a621c | |
Jens Petersen | 3db371aa31 | |
Jens Petersen | c6c2c4f65d | |
Jens Petersen | ad995089e5 | |
Jens Petersen | bece8a2fc7 | |
Jens Petersen | b3aff85286 | |
Jens Petersen | 051c5f7454 |
|
@ -0,0 +1,37 @@
|
|||
From 3a49e5147822bdfea2c763c863a7ca6b6baee609 Mon Sep 17 00:00:00 2001
|
||||
From: Joachim Breitner <mail@joachim-breitner.de>
|
||||
Date: Mon, 5 Sep 2011 09:37:24 +0200
|
||||
Subject: [PATCH] Add s390x to list of supported architectures
|
||||
|
||||
---
|
||||
aclocal.m4 | 3 +++
|
||||
configure.ac | 2 +-
|
||||
2 files changed, 4 insertions(+), 1 deletions(-)
|
||||
|
||||
Index: ghc-7.0.4/aclocal.m4
|
||||
===================================================================
|
||||
--- ghc-7.0.4.orig/aclocal.m4 2011-08-31 08:44:42.000000000 +0200
|
||||
+++ ghc-7.0.4/aclocal.m4 2011-09-05 14:08:59.000000000 +0200
|
||||
@@ -1457,6 +1457,9 @@
|
||||
rs6000)
|
||||
$2="rs6000"
|
||||
;;
|
||||
+ s390x*)
|
||||
+ $2="s390x"
|
||||
+ ;;
|
||||
s390*)
|
||||
$2="s390"
|
||||
;;
|
||||
Index: ghc-7.0.4/configure.ac
|
||||
===================================================================
|
||||
--- ghc-7.0.4.orig/configure.ac 2011-06-13 19:10:04.000000000 +0200
|
||||
+++ ghc-7.0.4/configure.ac 2011-09-05 14:08:59.000000000 +0200
|
||||
@@ -244,7 +244,7 @@
|
||||
|
||||
checkArch() {
|
||||
case $1 in
|
||||
- alpha|arm|hppa|hppa1_1|i386|ia64|m68k|mips|mipseb|mipsel|powerpc|powerpc64|rs6000|s390|sparc|sparc64|vax|x86_64)
|
||||
+ alpha|arm|hppa|hppa1_1|i386|ia64|m68k|mips|mipseb|mipsel|powerpc|powerpc64|rs6000|s390|s390x|sparc|sparc64|vax|x86_64)
|
||||
;;
|
||||
*)
|
||||
echo "Unknown arch $1"
|
|
@ -10,9 +10,9 @@ diff -up ghc-7.0.2/aclocal.m4.pthread ghc-7.0.2/aclocal.m4
|
|||
then
|
||||
AC_MSG_ERROR([Building ghc-pwd failed])
|
||||
fi
|
||||
diff -up ghc-7.0.2/ghc/ghc.wrapper.pthread ghc-7.0.2/ghc/ghc.wrapper
|
||||
--- ghc-7.0.2/ghc/ghc.wrapper.pthread 2011-04-20 09:58:50.307894773 -0400
|
||||
+++ ghc-7.0.2/ghc/ghc.wrapper 2011-04-20 09:59:14.477894370 -0400
|
||||
diff -up ghc-7.0.4/ghc/ghc.wrapper.pthread ghc-7.0.4/ghc/ghc.wrapper
|
||||
--- ghc-7.0.4/ghc/ghc.wrapper.pthread 2012-03-09 09:39:58.205330373 +0900
|
||||
+++ ghc-7.0.4/ghc/ghc.wrapper 2012-03-09 09:41:01.791237737 +0900
|
||||
@@ -1 +1 @@
|
||||
-exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" ${1+"$@"}
|
||||
+exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" -optl-pthread ${1+"$@"}
|
||||
-exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" -optc-I$(pkg-config --variable=includedir libffi) ${1+"$@"}
|
||||
+exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" -optl-pthread -optc-I$(pkg-config --variable=includedir libffi) ${1+"$@"}
|
|
@ -0,0 +1,8 @@
|
|||
diff -u ghc-7.0.4/ghc/ghc.wrapper\~ ghc-7.0.4/ghc/ghc.wrapper
|
||||
--- ghc-7.0.4/ghc/ghc.wrapper~ 2011-06-14 02:10:05.000000000 +0900
|
||||
+++ ghc-7.0.4/ghc/ghc.wrapper 2012-03-08 18:00:02.713144402 +0900
|
||||
@@ -1 +1 @@
|
||||
-exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" ${1+"$@"}
|
||||
+exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" -optc-I$(pkg-config --variable=includedir libffi) ${1+"$@"}
|
||||
|
||||
Diff finished. Thu Mar 8 18:01:14 2012
|
60
ghc.spec
60
ghc.spec
|
@ -5,6 +5,7 @@
|
|||
#%%global ghc_bootstrapping 1
|
||||
#%%{?ghc_bootstrap}
|
||||
#%%global without_hscolour 1
|
||||
#%%global without_testsuite 1
|
||||
|
||||
# To do a test build instead with shared libs, uncomment the following:
|
||||
#%%global ghc_bootstrapping 1
|
||||
|
@ -13,7 +14,7 @@
|
|||
#%%global without_testsuite 1
|
||||
|
||||
# unregisterized archs
|
||||
%global unregisterised_archs ppc64 armv7hl armv5tel
|
||||
%global unregisterised_archs ppc64 armv7hl armv5tel s390 s390x
|
||||
|
||||
# ghc does not output dwarf format so debuginfo is not useful
|
||||
%global debug_package %{nil}
|
||||
|
@ -29,11 +30,11 @@ Version: 7.0.4
|
|||
# - release can only be reset if all library versions get bumped simultaneously
|
||||
# (eg for a major release)
|
||||
# - minor release numbers should be incremented monotonically
|
||||
Release: 42%{?dist}
|
||||
Release: 46%{?dist}
|
||||
Summary: Glasgow Haskell Compiler
|
||||
# fedora ghc has been bootstrapped on the following archs:
|
||||
#ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 armv7hl armv5tel
|
||||
ExcludeArch: sparc64 s390x
|
||||
ExcludeArch: sparc64
|
||||
License: %BSDHaskellReport
|
||||
Group: Development/Languages
|
||||
Source0: http://www.haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.bz2
|
||||
|
@ -49,11 +50,18 @@ Obsoletes: ghc-dph-prim-par < 0.5, ghc-dph-prim-par-devel < 0.5, ghc-dph-prim-pa
|
|||
Obsoletes: ghc-dph-prim-seq < 0.5, ghc-dph-prim-seq-devel < 0.5, ghc-dph-prim-seq-prof < 0.5
|
||||
Obsoletes: ghc-dph-seq < 0.5, ghc-dph-seq-devel < 0.5, ghc-dph-seq-prof < 0.5
|
||||
Obsoletes: ghc-feldspar-language < 0.4, ghc-feldspar-language-devel < 0.4, ghc-feldspar-language-prof < 0.4
|
||||
# change to ghc-compiler once backported to el6
|
||||
BuildRequires: ghc %{!?ghc_bootstrapping: = %{version}}
|
||||
%if %{undefined ghc_bootstrapping}
|
||||
BuildRequires: ghc-compiler = %{version}
|
||||
%endif
|
||||
BuildRequires: ghc-rpm-macros >= 0.14
|
||||
BuildRequires: gmp-devel, libffi-devel
|
||||
BuildRequires: ghc-directory-devel, ghc-process-devel, ghc-pretty-devel, ghc-containers-devel, ghc-haskell98-devel, ghc-bytestring-devel
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-directory-devel
|
||||
BuildRequires: ghc-haskell98-devel
|
||||
BuildRequires: ghc-pretty-devel
|
||||
BuildRequires: ghc-process-devel
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: libffi-devel
|
||||
# for internal terminfo
|
||||
BuildRequires: ncurses-devel
|
||||
%if %{undefined without_manual}
|
||||
|
@ -65,7 +73,7 @@ BuildRequires: hscolour
|
|||
%if %{undefined without_testsuite}
|
||||
BuildRequires: python
|
||||
%endif
|
||||
%ifarch ppc64
|
||||
%ifarch ppc64 s390x
|
||||
BuildRequires: autoconf
|
||||
%endif
|
||||
Requires: ghc-compiler = %{version}-%{release}
|
||||
|
@ -79,9 +87,13 @@ Patch4: ghc-use-system-libffi.patch
|
|||
# (see http://hackage.haskell.org/trac/hackage/ticket/600)
|
||||
Patch5: Cabal-option-executable-dynamic.patch
|
||||
Patch6: ghc-fix-linking-on-sparc.patch
|
||||
Patch7: ghc-ppc64-pthread.patch
|
||||
Patch7: ghc-powerpc-pthread.patch
|
||||
# http://hackage.haskell.org/trac/ghc/ticket/4999
|
||||
Patch8: ghc-powerpc-linker-mmap.patch
|
||||
# touches configure.ac
|
||||
Patch9: ghc-7.0.4-configure-s390x.patch
|
||||
# add libffi include dir to ghc wrapper for archs using gcc
|
||||
Patch10: ghc-wrapper-libffi-include.patch
|
||||
|
||||
%description
|
||||
GHC is a state-of-the-art, open source, compiler and interactive environment
|
||||
|
@ -190,19 +202,27 @@ rm -r ghc-tarballs/{mingw,perl}
|
|||
# use system libffi
|
||||
%patch4 -p1 -b .libffi
|
||||
rm -r ghc-tarballs/libffi
|
||||
# needed for tier 2 archs
|
||||
%ifnarch %{ix86} x86_64
|
||||
ln -s $(pkg-config --variable=includedir libffi)/*.h libraries/base/include
|
||||
%endif
|
||||
|
||||
%patch5 -p1 -b .orig
|
||||
|
||||
%patch6 -p1 -b .sparclinking
|
||||
|
||||
%ifarch ppc64
|
||||
%patch7 -p1 -b .pthread
|
||||
%ifnarch %{ix86} x86_64
|
||||
%patch10 -p1 -b .10-ffi
|
||||
%endif
|
||||
|
||||
%ifarch ppc ppc64
|
||||
%patch7 -p1 -b .pthread
|
||||
%patch8 -p1 -b .mmap
|
||||
%endif
|
||||
|
||||
%ifarch s390x
|
||||
%patch9 -p1 -b .s390x
|
||||
%endif
|
||||
|
||||
%build
|
||||
# http://hackage.haskell.org/trac/ghc/wiki/Platforms
|
||||
|
@ -228,7 +248,7 @@ SRC_CC_OPTS+=-mminimal-toc -pthread -Wa,--noexecstack
|
|||
%endif
|
||||
EOF
|
||||
|
||||
%ifarch ppc64
|
||||
%ifarch ppc64 s390x
|
||||
autoreconf
|
||||
%endif
|
||||
export CFLAGS="${CFLAGS:-%optflags}"
|
||||
|
@ -415,6 +435,22 @@ fi
|
|||
%files libraries
|
||||
|
||||
%changelog
|
||||
* Fri Mar 9 2012 Jens Petersen <petersen@redhat.com> - 7.0.4-46
|
||||
- reinstate ghc-powerpc-pthread.patch needed for linking on ppc
|
||||
|
||||
* Thu Mar 8 2012 Jens Petersen <petersen@redhat.com> - 7.0.4-45
|
||||
- patch ghc wrapper script to add libffi includedir on tier 2 archs
|
||||
|
||||
* Sat Mar 3 2012 Jens Petersen <petersen@redhat.com> - 7.0.4-44
|
||||
- BR ghc-compiler
|
||||
- add s390 and s390x to unregisterised_archs
|
||||
- add configure-s390x from debian
|
||||
- only apply ppc64 pthread patch when bootstrapping
|
||||
|
||||
* Thu Feb 9 2012 Jens Petersen <petersen@redhat.com> - 7.0.4-43
|
||||
- fix build with system libffi on secondary archs by including libffi headers
|
||||
in base/include
|
||||
|
||||
* Thu Jan 19 2012 Jens Petersen <petersen@redhat.com> - 7.0.4-42
|
||||
- move ghc-ghc-devel from ghc-libraries to the ghc metapackage
|
||||
|
||||
|
|
Loading…
Reference in New Issue