diff --git a/ghc-9.8.2-loongarch64-unknown-linux.tar.xz b/ghc-9.8.2-loongarch64-unknown-linux.tar.xz new file mode 100644 index 0000000..c35789a --- /dev/null +++ b/ghc-9.8.2-loongarch64-unknown-linux.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c5bfcaddcd050a902f1d1af886b8d6f26457f110455411db6e58df344f5b924 +size 309615980 diff --git a/ghc-bootstrap.changes b/ghc-bootstrap.changes index d60192d..4bc430d 100644 --- a/ghc-bootstrap.changes +++ b/ghc-bootstrap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 30 15:58:55 UTC 2025 - John Paul Adrian Glaubitz + +- Add support for loongarch64 + ------------------------------------------------------------------- Fri Nov 22 15:11:19 UTC 2024 - Ondřej Súkup diff --git a/ghc-bootstrap.spec b/ghc-bootstrap.spec index d5e13c6..ff1205f 100644 --- a/ghc-bootstrap.spec +++ b/ghc-bootstrap.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-bootstrap # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -40,7 +40,11 @@ %define longarch riscv64 %define arch riscv64 %endif -%ifarch ppc64le aarch64 riscv64 +%ifarch loongarch64 +%define longarch loongarch64 +%define arch loongarch64 +%endif +%ifarch ppc64le aarch64 riscv64 loongarch64 %define sysname unknown %endif Name: ghc-bootstrap @@ -56,6 +60,7 @@ Source14: ghc-%{version}-x86_64-unknown-linux.tar.xz Source16: ghc-%{version}-s390x-ibm-linux.tar.xz Source17: ghc-%{version}-aarch64-unknown-linux.tar.xz Source19: ghc-%{version}-riscv64-unknown-linux.tar.xz +Source20: ghc-%{version}-loongarch64-unknown-linux.tar.xz BuildRequires: chrpath BuildRequires: fdupes BuildRequires: gcc-PIE @@ -74,7 +79,7 @@ Conflicts: ghc-base Requires: this-is-only-for-build-envs Requires: pkgconfig(libffi) Provides: ghc-bootstrap-devel -ExclusiveArch: ppc64le x86_64 s390x aarch64 riscv64 +ExclusiveArch: ppc64le x86_64 s390x aarch64 riscv64 loongarch64 AutoReq: off %ifnarch s390x BuildRequires: libnuma-devel @@ -103,6 +108,7 @@ cp %{SOURCE14} . cp %{SOURCE16} . cp %{SOURCE17} . cp %{SOURCE19} . +cp %{SOURCE20} . %build tar Jxf ghc-%{version}-%{longarch}-%{sysname}-linux.tar.xz