diff --git a/.gitattributes b/.gitattributes index 9b03811..7a752f0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -21,3 +21,5 @@ *.xz filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text +## Specific LFS patterns +ghc-bootstrap-7.8.3.tar filter=lfs diff=lfs merge=lfs -text diff --git a/README.openSUSE b/README.openSUSE index f49cc8e..1e21312 100644 --- a/README.openSUSE +++ b/README.openSUSE @@ -2,16 +2,16 @@ Generating binary distributions for ghc bootstrap in Factory ============================================================ 1. Download source distribution from http://www.haskell.org/ghc/download -2. If necessary, apply patches for openSUSE +2. Apply patches for openSUSE * https://build.opensuse.org/package/show/devel:languages:haskell:bootstrap/ghc-prepare-binary-distributions 3. Build binary distribution `make binary-dist` 4. Download rpms from: + * https://build.opensuse.org/package/binaries/devel:languages:haskell:bootstrap/ghc-prepare-binary-distributions?repository=openSUSE_Factory * https://build.opensuse.org/package/binaries/devel:languages:haskell:bootstrap/ghc-prepare-binary-distributions?repository=openSUSE_Factory_PowerPC_standard - * https://build.opensuse.org/package/binaries/devel:languages:haskell:bootstrap/ghc-prepare-binary-distributions?repository=openSUSE_Factory_zSystems 5. Extract tarball `rpm2cpio ghc-prepare-binary-distributions*.rpm | cpio -idmv` 6. Copy tarball to project devel:languages:haskell:compiler/ghc-bootstrap Note: ===== -The armv7, aarch64, i386, and x86_64 tarballs were taken from upstream. -See: https://www.haskell.org/ghc/download_ghc_8_2_1.html +The ix86 and x86_64 tarballs were taken from upstream. +https://www.haskell.org/ghc/download_ghc_7_8_3 diff --git a/ghc-7.8.3-i386-unknown-linux-centos65.tar.bz2 b/ghc-7.8.3-i386-unknown-linux-centos65.tar.bz2 new file mode 100644 index 0000000..7470c08 --- /dev/null +++ b/ghc-7.8.3-i386-unknown-linux-centos65.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38c61b7535644dbc0fc0e484752e1f3db6326569663658a93cb609e8ad05feaa +size 120180306 diff --git a/ghc-7.8.3-powerpc-unknown-linux.tar.bz2 b/ghc-7.8.3-powerpc-unknown-linux.tar.bz2 new file mode 100644 index 0000000..7bc169b --- /dev/null +++ b/ghc-7.8.3-powerpc-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e7baa80ecdb263ec8c577760817b16d32ba73ba0ebd48004d7a69899e826496 +size 60476033 diff --git a/ghc-7.8.3-powerpc64-unknown-linux.tar.bz2 b/ghc-7.8.3-powerpc64-unknown-linux.tar.bz2 new file mode 100644 index 0000000..1c98cf4 --- /dev/null +++ b/ghc-7.8.3-powerpc64-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcf0af948d9146141347b4ac21ce604c63f84034cf993a8e147e4d8ce387bf12 +size 87051271 diff --git a/ghc-7.8.3-powerpc64le-unknown-linux.tar.bz2 b/ghc-7.8.3-powerpc64le-unknown-linux.tar.bz2 new file mode 100644 index 0000000..7708a6d --- /dev/null +++ b/ghc-7.8.3-powerpc64le-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5e2c51664c7db740be79c882c72fcd16036f84dff1b65ab0e9749b882ed31b6 +size 107100129 diff --git a/ghc-7.8.3-x86_64-unknown-linux-centos65.tar.bz2 b/ghc-7.8.3-x86_64-unknown-linux-centos65.tar.bz2 new file mode 100644 index 0000000..88fdae2 --- /dev/null +++ b/ghc-7.8.3-x86_64-unknown-linux-centos65.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7561f2685063a49e46430050c057e801f210cc56c7fb2cab0951a6444a72c4f7 +size 113299736 diff --git a/ghc-7.8.4-aarch64-unknown-linux.tar.bz2 b/ghc-7.8.4-aarch64-unknown-linux.tar.bz2 new file mode 100644 index 0000000..926f293 --- /dev/null +++ b/ghc-7.8.4-aarch64-unknown-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7719ee27ae756eae2458bb8ade69a8c29c28d26d6ea8be36a73e5d003dd7024a +size 87692219 diff --git a/ghc-7.8.4-s390-ibm-linux.tar.bz2 b/ghc-7.8.4-s390-ibm-linux.tar.bz2 new file mode 100644 index 0000000..e3e7c91 --- /dev/null +++ b/ghc-7.8.4-s390-ibm-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc7cb331aa41ff4c19fba1b72e1847533070d62d022ff282058a8d5969c49630 +size 100269236 diff --git a/ghc-7.8.4-s390x-ibm-linux.tar.bz2 b/ghc-7.8.4-s390x-ibm-linux.tar.bz2 new file mode 100644 index 0000000..085145b --- /dev/null +++ b/ghc-7.8.4-s390x-ibm-linux.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dde3e49eadcd8e537563b5925c2f0321f7a44b05826223aee2aa836e68bf7b46 +size 97006937 diff --git a/ghc-8.2.1-aarch64-deb8-linux.tar.xz b/ghc-8.2.1-aarch64-deb8-linux.tar.xz deleted file mode 100644 index 496a2b1..0000000 --- a/ghc-8.2.1-aarch64-deb8-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61dab9c95ef9f9af8bce7338863fda3e42945eb46194b12d922b6d0dc245d0c2 -size 163469920 diff --git a/ghc-8.2.1-armv7-deb8-linux.tar.xz b/ghc-8.2.1-armv7-deb8-linux.tar.xz deleted file mode 100644 index 2707b58..0000000 --- a/ghc-8.2.1-armv7-deb8-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0f0e5e1d4fad3fa1a87ca1fe0d19242f4a94d158b7b8a08f99efefd98b51b019 -size 173741784 diff --git a/ghc-8.2.1-i386-deb8-linux.tar.xz b/ghc-8.2.1-i386-deb8-linux.tar.xz deleted file mode 100644 index b7217f0..0000000 --- a/ghc-8.2.1-i386-deb8-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d86f9c157dd4161a8acb14062c131c8985a4f65fc856603c373502be1d50c95e -size 122702996 diff --git a/ghc-8.2.1-powerpc64-unknown-linux.tar.xz b/ghc-8.2.1-powerpc64-unknown-linux.tar.xz deleted file mode 100644 index 4b93c18..0000000 --- a/ghc-8.2.1-powerpc64-unknown-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6816294350768fa25fbfd6b7bf160d0aba27343423b97cc16d6ad37af6468ed3 -size 105098224 diff --git a/ghc-8.2.1-powerpc64le-unknown-linux.tar.xz b/ghc-8.2.1-powerpc64le-unknown-linux.tar.xz deleted file mode 100644 index c1a76cf..0000000 --- a/ghc-8.2.1-powerpc64le-unknown-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f3c16ab1e45eb680352198c719ca30cdcefafe6c2fce8bc055714722cc2e1696 -size 118447484 diff --git a/ghc-8.2.1-s390x-ibm-linux.tar.xz b/ghc-8.2.1-s390x-ibm-linux.tar.xz deleted file mode 100644 index ed59071..0000000 --- a/ghc-8.2.1-s390x-ibm-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fbb61b67986efb7784a760d8e5074bb44496fbb3878ab13aeb2caf6a06ced4d -size 135274992 diff --git a/ghc-8.2.1-x86_64-deb8-linux.tar.xz b/ghc-8.2.1-x86_64-deb8-linux.tar.xz deleted file mode 100644 index 632baa2..0000000 --- a/ghc-8.2.1-x86_64-deb8-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:543b81bf610240bd0398111d6c6607a9094dc2d159b564057d46c8a3d1aaa130 -size 126809836 diff --git a/ghc-bootstrap-7.8.3.tar b/ghc-bootstrap-7.8.3.tar new file mode 100644 index 0000000..f37a743 --- /dev/null +++ b/ghc-bootstrap-7.8.3.tar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ceec3278ddaf2c71a879710026c2669acb31e3681f728ce5f0f2e506ef07f871 +size 10240 diff --git a/ghc-bootstrap.changes b/ghc-bootstrap.changes index e3a168c..7792360 100644 --- a/ghc-bootstrap.changes +++ b/ghc-bootstrap.changes @@ -1,25 +1,8 @@ ------------------------------------------------------------------- -Fri Jan 26 17:21:42 UTC 2018 - ptrommler@icloud.com - -- ppc64 binary built against openSUSE 13.2 -* fixes build on openSUSE 13.2 ppc64 - -------------------------------------------------------------------- -Wed Jan 24 15:55:08 UTC 2018 - ptrommler@icloud.com +Thu Feb 8 10:51:10 UTC 2018 - ptrommler@icloud.com - don't override debug packages handling -* fixes build in Tumbleweed - -------------------------------------------------------------------- -Mon Jul 24 11:15:31 UTC 2017 - peter.trommler@ohm-hochschule.de - -- update to 8.2.1 on all arches -* required to bootstrap ghc 8.2.1 -* drop support for ppc and s390 -* add support for arm7l -* add support for registerised LLVM backend on aarch64 -- update instructions to produce bindists -- remove libgmp hack, upstream bindists link against new libgmp + * fixes build for Leap 15 ------------------------------------------------------------------- Sun Mar 5 15:27:59 UTC 2017 - mimi.vx@gmail.com diff --git a/ghc-bootstrap.spec b/ghc-bootstrap.spec index 306d22c..15f8db9 100644 --- a/ghc-bootstrap.spec +++ b/ghc-bootstrap.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-bootstrap # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -18,6 +18,7 @@ %ifarch %{ix86} %define longarch i386 +%define os_release -centos65 %endif %ifarch ppc %define longarch powerpc @@ -37,51 +38,49 @@ %ifarch aarch64 %define longarch aarch64 %endif -%ifarch %{arm} -%define longarch armv7 -%endif %ifarch x86_64 %define longarch x86_64 +%define os_release -centos65 +%endif +%ifarch aarch64 s390 s390x +%define xversion 7.8.4 +%else +%define xversion 7.8.3 %endif %ifarch s390 s390x %define sysname ibm %else -%ifarch x86_64 %{ix86} aarch64 %{arm} -%define sysname deb8 -%endif -%ifarch ppc64 ppc64le %define sysname unknown %endif -%endif + +%global without_hscolour 1 Name: ghc-bootstrap -Version: 8.2.1 +Version: 7.8.3 Release: 0 Url: https://build.opensuse.org/package/view_file/devel:languages:haskell:bootstrap Summary: Binary distributions of The Glorious Glasgow Haskell Compiler License: BSD-3-Clause Group: Development/Languages/Other +Source: %{name}-%{version}.tar Source1: README.openSUSE Source2: LICENSE -Source10: ghc-8.2.1-i386-deb8-linux.tar.xz -Source12: ghc-8.2.1-powerpc64-unknown-linux.tar.xz -Source13: ghc-8.2.1-powerpc64le-unknown-linux.tar.xz -Source14: ghc-8.2.1-x86_64-deb8-linux.tar.xz -Source16: ghc-8.2.1-s390x-ibm-linux.tar.xz -Source17: ghc-8.2.1-aarch64-deb8-linux.tar.xz -Source18: ghc-8.2.1-armv7-deb8-linux.tar.xz +Source10: ghc-7.8.3-i386-unknown-linux-centos65.tar.bz2 +Source11: ghc-7.8.3-powerpc-unknown-linux.tar.bz2 +Source12: ghc-7.8.3-powerpc64-unknown-linux.tar.bz2 +Source13: ghc-7.8.3-powerpc64le-unknown-linux.tar.bz2 +Source14: ghc-7.8.3-x86_64-unknown-linux-centos65.tar.bz2 +Source15: ghc-7.8.4-s390-ibm-linux.tar.bz2 +Source16: ghc-7.8.4-s390x-ibm-linux.tar.bz2 +Source17: ghc-7.8.4-aarch64-unknown-linux.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: gmp-devel BuildRequires: libncurses5 -%ifarch aarch64 %{arm} -BuildRequires: binutils-gold -Requires: binutils-gold -%endif -Requires: gmp-devel Requires: libncurses5 +Requires: gmp-devel -ExclusiveArch: %{ix86} ppc64 ppc64le x86_64 s390x aarch64 %{arm} +ExclusiveArch: %{ix86} ppc ppc64 ppc64le x86_64 s390 s390x aarch64 Provides: ghc-bootstrap-devel Conflicts: ghc @@ -139,24 +138,37 @@ Haskell home page at . %prep +%setup -q cp %SOURCE1 . cp %SOURCE2 . cp %SOURCE10 . +cp %SOURCE11 . cp %SOURCE12 . cp %SOURCE13 . cp %SOURCE14 . +cp %SOURCE15 . cp %SOURCE16 . cp %SOURCE17 . -cp %SOURCE18 . %build -tar Jxf ghc-%{version}-%{longarch}-%{sysname}-linux.tar.xz -cd ghc-%{version} +%if 0%{suse_version} > 1130 +ln -s %{_libdir}/libgmp.so.10 libgmp.so.3 +export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH +%endif +tar jxf ghc-%{xversion}-%{longarch}-%{sysname}-linux%{?os_release}.tar.bz2 +cd ghc-%{xversion} ./configure --prefix=%{_prefix} %install -cd ghc-%{version} +%if 0%{suse_version} > 1130 +export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH +%endif +cd ghc-%{xversion} %makeinstall +%if 0%{suse_version} > 1130 +install -dm 0755 %{buildroot}%{_libdir} +ln -s %{_libdir}/libgmp.so.10 %{buildroot}%{_libdir}/libgmp.so.3 +%endif %fdupes -s %{buildroot} %post @@ -167,10 +179,13 @@ ghc-pkg recache %doc README.openSUSE %doc LICENSE %{_bindir}/* -%{_prefix}/lib/ghc-%{version} +%{_prefix}/lib/ghc-%{xversion} %{_datadir}/doc/* - -%ifarch %{ix86} x86_64 aarch64 %{arm} +%if 0%{suse_version} > 1130 +%{_libdir}/libgmp.so.3 +%endif +# for some reason there is no manpage for ghc in the x86_64 tarball +%ifarch %{ix86} %{_mandir}/man1/ghc.1* %endif