Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
777a3d02be
!68 Sync master release
From: @wk333 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-06-21 07:39:06 +00:00
wk333
3eb3eca2b8 Sync master release 2024-06-21 10:18:50 +08:00
openeuler-ci-bot
dc94ccc4c7
!64 Add LoongArch native support for ocaml
From: @zhangwenlong01 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2024-06-07 09:02:36 +00:00
Wenlong Zhang
6d585f283f Add LoongArch native support for ocaml 2024-06-07 01:34:21 +00:00
openeuler-ci-bot
fcf87b57c1
!60 回退 'Pull Request !54 : Support ccache compile to fix build error'
From: @caodongxia 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-04-16 07:04:03 +00:00
caodongxia
742a0993e3
回退 'Pull Request !54 : Support ccache compile to fix build error' 2024-04-16 06:15:08 +00:00
openeuler-ci-bot
40058b2fe3
!54 Support ccache compile to fix build error
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-04-02 08:22:24 +00:00
starlet-dx
025ef72b99 Support ccache compile to fix build error 2024-04-02 15:09:12 +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
5 changed files with 4195 additions and 19 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.14.0
Release: 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}/%{name}-%{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
@ -200,7 +206,7 @@ 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
@ -235,6 +241,15 @@ 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