Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
fda00422f2
!69 Sync 24.03-LTS release
From: @wk333 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-06-21 07:39:28 +00:00
wk333
5ab4f99a88 Sync 24.03-LTS release 2024-06-21 10:21:27 +08:00
openeuler-ci-bot
86dad27655
!53 Update to 4.14.1 version
From: @Jingwiw 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-02-05 09:42:38 +00:00
Jingwiw
362a603189 upgrade to 4.14.1 2024-02-05 17:02:14 +08:00
openeuler-ci-bot
66ad9967ee
!50 Upgrade version to 4.14.0
From: @cherry530 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-08-31 03:00:13 +00:00
cherry530
cdda83773e Upgrade version to 4.14.0
Signed-off-by: cherry530 <xuping33@huawei.com>
Signed-off-by: cherry530 <707078654@qq.com>
2023-08-31 09:45:00 +08:00
openeuler-ci-bot
913b224b52
!44 Update dependencies
From: @xing_xing1992 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-01-20 09:55:11 +00:00
xing_xing1992
7be0027c52 Update dependencies 2023-01-19 15:11:17 +08:00
openeuler-ci-bot
0f2032a110
!34 fix email spell error
From: @ikernel-mryao 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2022-12-29 08:52:34 +00:00
yaoguangzhong
a1966ec639 fix email spell error
Signed-off-by: Guangzhong Yao <yaoguangzhong@xfusion.com>
2022-12-29 16:19:13 +08:00
5 changed files with 4203 additions and 20 deletions

View File

@ -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 bbb3c5694..57d509cd0 100644
index f758a9b..ee17a73 100644
--- a/utils/config.mlp
+++ b/utils/config.mlp
@@ -55,8 +55,8 @@ let native_c_compiler =
@@ -54,8 +54,8 @@ let native_c_compiler =
c_compiler ^ " " ^ ocamlopt_cflags ^ " " ^ ocamlopt_cppflags
let native_c_libraries = "%%NATIVECCLIBS%%"
let native_pack_linker = "%%PACKLD%%"
let ranlib = "%%RANLIBCMD%%"
-let default_rpath = "%%RPATH%%"
-let mksharedlibrpath = "%%MKSHAREDLIBRPATH%%"
+let default_rpath = ""
@ -22,6 +22,7 @@ index bbb3c5694..57d509cd0 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

Binary file not shown.

BIN
ocaml-4.14.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,32 +1,25 @@
%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.13.1
Version: 4.14.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/%%{version}.tar.gz
Source0: https://github.com/ocaml/ocaml/archive/refs/tags/%{name}-%{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 openEuler-rpm-config
Requires: gcc util-linux %{_vendor}-rpm-config
Provides: bundled(md5-plumb) ocaml(runtime) = %{version}
Provides: ocaml(compiler) = %{version}
@ -82,8 +75,21 @@ 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" \
OC_CFLAGS="$CFLAGS $EXTRA_CFLAGS" \
OC_LDFLAGS="$LDFLAGS" \
--libdir=%{_libdir}/ocaml \
--host=`./build-aux/config.guess`
@ -101,7 +107,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/openEuler-ocaml-release
echo %{version} > %{buildroot}%{_libdir}/ocaml/%{_vendor}-ocaml-release
chrpath --delete %{buildroot}%{_libdir}/ocaml/stublibs/*.so
@ -160,7 +166,6 @@ 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
@ -201,13 +206,15 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
%dir %{_libdir}/ocaml/threads
%{_libdir}/ocaml/threads/*.cmi
%{_libdir}/ocaml/threads/*.cma
%{_libdir}/ocaml/openEuler-ocaml-release
%{_libdir}/ocaml/%{_vendor}-ocaml-release
#ocamldoc
%doc ocamldoc/Changes.txt
%{_bindir}/ocamldoc*
%{_libdir}/ocaml/ocamldoc
%dir %{_defaultdocdir}/ocaml
%{_defaultdocdir}/ocaml/*
%files devel
# source
@ -234,7 +241,22 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
%{_mandir}/man3/*
%changelog
* Sat Dec 24 2022 Wei Chen <chenwei@xfuson.com> - 4.13.1-3
* 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
- fix bogus date in changelog
* Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 4.13.1-2