OCaml 5.0 only has aarch64 & x86_64 native compilers

OCaml 5.1 will add back ppc64le riscv64 s390x.

It is unlikely that %{arm}, %{ix86} will ever return in future.  We
will ExcludeArch %{ix86} for OCaml.
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/SPML7CUBSZNI36NLXGVHEG7DNHU3EWOJ/

The others like ppc and sparc are obsolete.
This commit is contained in:
Richard W.M. Jones 2023-07-10 20:37:10 +01:00
parent c96aa93871
commit 2ad702097a
2 changed files with 7 additions and 4 deletions

View File

@ -4,10 +4,10 @@
# compilation is available on a particular architecture.
# Architectures that support the OCaml native code compiler.
%ocaml_native_compiler aarch64 %{arm} %{ix86} ppc ppc64 ppc64le riscv64 s390x sparc sparcv9 x86_64
%ocaml_native_compiler aarch64 x86_64
# Architectures that support native dynamic linking of OCaml code.
%ocaml_natdynlink aarch64 %{arm} %{ix86} ppc ppc64 ppc64le riscv64 s390x sparc sparcv9 x86_64
%ocaml_natdynlink aarch64 x86_64
# Architectures that support profiling of native code (ocamlopt -p).
# This was removed in OCaml 4.09.

View File

@ -10,8 +10,8 @@
# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1087794
Name: ocaml-srpm-macros
Version: 7
Release: 3%{?dist}
Version: 8
Release: 1%{?dist}
Summary: OCaml architecture macros
License: GPLv2+
@ -48,6 +48,9 @@ install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_rpmconfigdir}/redhat
%changelog
* Mon Jul 10 2023 Richard W.M. Jones <rjones@redhat.com> - 8-1
- Update OCaml native archs for OCaml 5.0
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild