Compare commits
No commits in common. "fda00422f2716af14cc67eaf58e9bcac35d11da5" and "fbc5aed62bb42b0fdd3bdb1e2c7cb92d40dcce40" have entirely different histories.
fda00422f2
...
fbc5aed62b
@ -8,13 +8,13 @@ Subject: [PATCH 1/3] Don't add rpaths to libraries.
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/utils/config.mlp b/utils/config.mlp
|
||||
index f758a9b..ee17a73 100644
|
||||
index bbb3c5694..57d509cd0 100644
|
||||
--- a/utils/config.mlp
|
||||
+++ b/utils/config.mlp
|
||||
@@ -54,8 +54,8 @@ let native_c_compiler =
|
||||
c_compiler ^ " " ^ ocamlopt_cflags ^ " " ^ ocamlopt_cppflags
|
||||
@@ -55,8 +55,8 @@ let native_c_compiler =
|
||||
let native_c_libraries = "%%NATIVECCLIBS%%"
|
||||
let native_pack_linker = "%%PACKLD%%"
|
||||
let ranlib = "%%RANLIBCMD%%"
|
||||
-let default_rpath = "%%RPATH%%"
|
||||
-let mksharedlibrpath = "%%MKSHAREDLIBRPATH%%"
|
||||
+let default_rpath = ""
|
||||
@ -22,7 +22,6 @@ index f758a9b..ee17a73 100644
|
||||
let ar = "%%ARCMD%%"
|
||||
let supports_shared_libraries = %%SUPPORTS_SHARED_LIBRARIES%%
|
||||
let mkdll, mkexe, mkmaindll =
|
||||
|
||||
---
|
||||
--
|
||||
2.32.0
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
BIN
4.13.1.tar.gz
Normal file
BIN
4.13.1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
54
ocaml.spec
54
ocaml.spec
@ -1,25 +1,32 @@
|
||||
%ifnarch loongarch64
|
||||
%global native_compiler 1
|
||||
%else
|
||||
%global native_compiler 0
|
||||
%endif
|
||||
|
||||
%ifnarch loongarch64
|
||||
%global natdynlink 1
|
||||
%else
|
||||
%global natdynlink 0
|
||||
%endif
|
||||
|
||||
|
||||
Name: ocaml
|
||||
Version: 4.14.1
|
||||
Version: 4.13.1
|
||||
Release: 3
|
||||
Summary: OCaml compiler and programming environment
|
||||
License: LGPL-2.1-only
|
||||
URL: http://www.ocaml.org
|
||||
Source0: https://github.com/ocaml/ocaml/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
Source0: https://github.com/ocaml/ocaml/archive/%%{version}.tar.gz
|
||||
|
||||
Patch0001: 0001-Don-t-add-rpaths-to-libraries.patch
|
||||
Patch0002: 0002-configure-Allow-user-defined-C-compiler-flags.patch
|
||||
Patch0003: 0003-configure-Remove-incorrect-assumption-about-cross-co.patch
|
||||
Patch0004: 0004-add-loongarch64-native-support.patch
|
||||
|
||||
BuildRequires: gcc binutils-devel ncurses-devel gdbm-devel gawk perl-interpreter
|
||||
BuildRequires: util-linux chrpath autoconf annobin make
|
||||
|
||||
Requires: gcc util-linux %{_vendor}-rpm-config
|
||||
Requires: gcc util-linux openEuler-rpm-config
|
||||
|
||||
Provides: bundled(md5-plumb) ocaml(runtime) = %{version}
|
||||
Provides: ocaml(compiler) = %{version}
|
||||
@ -75,21 +82,8 @@ autoconf --force
|
||||
|
||||
%build
|
||||
|
||||
export CC='gcc'
|
||||
export AS='as'
|
||||
test -x "$(type -P gcc | xargs readlink -f)" && export CC="$_"
|
||||
test -x "$(type -P as | xargs readlink -f)" && export AS="$_"
|
||||
export ASPP="$CC -c"
|
||||
configure_target=
|
||||
extra_cflags=()
|
||||
extra_cflags+=( '-Werror=implicit-function-declaration' )
|
||||
extra_cflags+=( '-Werror=return-type' )
|
||||
extra_cflags+=( '-Wno-deprecated-declarations' )
|
||||
export EXTRA_CFLAGS="${extra_cflags[@]}"
|
||||
bash -x tools/autogen
|
||||
|
||||
%configure \
|
||||
OC_CFLAGS="$CFLAGS $EXTRA_CFLAGS" \
|
||||
OC_CFLAGS="$CFLAGS" \
|
||||
OC_LDFLAGS="$LDFLAGS" \
|
||||
--libdir=%{_libdir}/ocaml \
|
||||
--host=`./build-aux/config.guess`
|
||||
@ -107,7 +101,7 @@ make -j1 all ||:
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
perl -pi -e "s|^%{buildroot}||" %{buildroot}%{_libdir}/ocaml/ld.conf
|
||||
|
||||
echo %{version} > %{buildroot}%{_libdir}/ocaml/%{_vendor}-ocaml-release
|
||||
echo %{version} > %{buildroot}%{_libdir}/ocaml/openEuler-ocaml-release
|
||||
|
||||
chrpath --delete %{buildroot}%{_libdir}/ocaml/stublibs/*.so
|
||||
|
||||
@ -166,6 +160,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
||||
%{_libdir}/ocaml/camlheader
|
||||
%{_libdir}/ocaml/camlheader_ur
|
||||
%{_libdir}/ocaml/expunge
|
||||
%{_libdir}/ocaml/extract_crc
|
||||
%{_libdir}/ocaml/ld.conf
|
||||
%{_libdir}/ocaml/Makefile.config
|
||||
%{_libdir}/ocaml/*.a
|
||||
@ -206,15 +201,13 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
||||
%dir %{_libdir}/ocaml/threads
|
||||
%{_libdir}/ocaml/threads/*.cmi
|
||||
%{_libdir}/ocaml/threads/*.cma
|
||||
%{_libdir}/ocaml/%{_vendor}-ocaml-release
|
||||
%{_libdir}/ocaml/openEuler-ocaml-release
|
||||
|
||||
|
||||
#ocamldoc
|
||||
%doc ocamldoc/Changes.txt
|
||||
%{_bindir}/ocamldoc*
|
||||
%{_libdir}/ocaml/ocamldoc
|
||||
%dir %{_defaultdocdir}/ocaml
|
||||
%{_defaultdocdir}/ocaml/*
|
||||
|
||||
%files devel
|
||||
# source
|
||||
@ -241,22 +234,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Jun 07 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 4.14.1-3
|
||||
- Add LoongArch native support for ocaml
|
||||
|
||||
* Mon Apr 15 2024 yueyuankun <yueyuankun@kylinos.cn> - 4.14.1-2
|
||||
- Replace openEuler with vendor macros
|
||||
|
||||
* Fri Feb 2 2024 Jingwiw <wangjingwei@iscas.ac.cn> - 4.14.1-1
|
||||
- Upgrade version to 4.14.1
|
||||
|
||||
* Thu Aug 24 2023 xu_ping <707078654@qq.com> - 4.14.0-1
|
||||
- Upgrade version to 4.14.0
|
||||
|
||||
* Thu Jan 19 2023 xingxing<xingxing@xfusion.com> - 4.13.1-4
|
||||
- Update dependencies
|
||||
|
||||
* Sat Dec 24 2022 Wei Chen <chenwei@xfusion.com> - 4.13.1-3
|
||||
* Sat Dec 24 2022 Wei Chen <chenwei@xfuson.com> - 4.13.1-3
|
||||
- fix bogus date in changelog
|
||||
|
||||
* Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 4.13.1-2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user