Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
45cc618339
!18 [sync] PR-16: add sw_64 support
From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2025-03-11 02:18:01 +00:00
openeuler-ci-bot
8d306b75da
!18 [sync] PR-16: add sw_64 support
From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2025-03-11 02:18:01 +00:00
Hailiang
c3e3d4b875 add sw_64 support
(cherry picked from commit 32d86288660a4399e4bec90bfd36d1d89f303dcd)
2025-03-11 10:15:35 +08:00
openeuler-ci-bot
f4dc58831a
!11 fix build error for loongarch64
From: @zhangwenlong01 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-06-07 02:10:13 +00:00
Wenlong Zhang
8a9e00e622 fix build error for loongarch64 2024-06-04 08:56:40 +00:00
openeuler-ci-bot
3e84bff727
!5 Update to version 1.3.3
From: @wang--ge 
Reviewed-by: @Lostwayzxc, @caodongxia 
Signed-off-by: @caodongxia
2023-05-10 09:28:46 +00:00
wang--ge
639cf5ab3f update to version 1.3.3 2023-05-10 10:04:04 +08:00
openeuler-ci-bot
a21f4c0739
!3 Fix build failed on openEuler RISC-V
From: @misaka00251 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-05-09 01:11:21 +00:00
misaka00251
2bb9eec658
Fix build failed on openEuler RISC-V 2023-03-22 15:54:17 +08:00
openeuler-ci-bot
3596f1240e
!2 update version from 1.0.15 to 1.3.2
From: @hua11111 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-01-18 01:58:37 +00:00
hua
eee97ef4fd update to 1.3.2
Signed-off-by: hua <dchang@zhixundn.com>
2023-01-14 07:24:09 +08:00
9 changed files with 126 additions and 93 deletions

View File

@ -0,0 +1,25 @@
From 5eb75be13dd909a6248a66fd11d9bd745eae9aa4 Mon Sep 17 00:00:00 2001
From: misaka00251 <liuxin@iscas.ac.cn>
Date: Wed, 22 Mar 2023 15:16:29 +0800
Subject: [PATCH] Fix build failed on openEuler RISC-V
---
src/native/unix/configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/native/unix/configure b/src/native/unix/configure
index 62d2cb2..cc068a8 100755
--- a/src/native/unix/configure
+++ b/src/native/unix/configure
@@ -3810,7 +3810,7 @@ printf "%s\n" "failed" >&6; }
;;
riscv64)
CFLAGS="$CFLAGS -DCPU=\\\"riscv64\\\""
- supported_os="riscv64"
+ supported_os="linux"
HOST_CPU=riscv64
;;
*)
--
2.37.1 (Apple Git-137.1)

View File

@ -0,0 +1,28 @@
From 582cd8b81a7578411103a0978dfe1d19c5d75ad1 Mon Sep 17 00:00:00 2001
From: Hailiang <mahailiang@uniontech.com>
Date: Mon, 10 Mar 2025 14:10:36 +0800
Subject: [PATCH] add sw_64 support
---
src/native/unix/configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/native/unix/configure b/src/native/unix/configure
index 8079a65..cbd75d7 100755
--- a/src/native/unix/configure
+++ b/src/native/unix/configure
@@ -3818,6 +3818,11 @@ printf "%s\n" "failed" >&6; }
supported_os="linux"
HOST_CPU=loongarch64
;;
+ sw_64)
+ CFLAGS="$CFLAGS -DCPU=\\\"sw_64\\\""
+ supported_os="linux"
+ HOST_CPU=sw_64
+ ;;
*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
--
2.20.1

View File

@ -0,0 +1,28 @@
From 4334ce2b322f7f958606b9b6003d7e6feba052cf Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Tue, 4 Jun 2024 08:48:30 +0000
Subject: [PATCH] fix build error for loongarch64
---
src/native/unix/configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/native/unix/configure b/src/native/unix/configure
index cbdc8bd..8079a65 100755
--- a/src/native/unix/configure
+++ b/src/native/unix/configure
@@ -3813,6 +3813,11 @@ printf "%s\n" "failed" >&6; }
supported_os="linux"
HOST_CPU=riscv64
;;
+ loongarch64)
+ CFLAGS="$CFLAGS -DCPU=\\\"loongarch64\\\""
+ supported_os="linux"
+ HOST_CPU=loongarch64
+ ;;
*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
--
2.43.0

View File

@ -1,11 +1,12 @@
--- commons-daemon-1.0.12-src/src/native/unix/configure~ 2013-01-14 07:45:15.000000000 +0100 diff -ruN commons-daemon-1.3.2-src_back/src/native/unix/configure commons-daemon-1.3.2-src/src/native/unix/configure
+++ commons-daemon-1.0.12-src/src/native/unix/configure 2013-01-24 15:55:59.757193071 +0100 --- commons-daemon-1.3.2-src_back/src/native/unix/configure 2022-11-13 23:55:12.532213488 +0800
@@ -2776,7 +2776,7 @@ +++ commons-daemon-1.3.2-src/src/native/unix/configure 2022-11-14 00:02:12.999089851 +0800
echo "${ECHO_T}jni_md.h found in $JAVA_HOME/$JAVA_INC" >&6 @@ -3990,7 +3990,7 @@
INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/$JAVA_INC" then
else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: jni_md.h found in $JAVA_HOME/$JAVA_INC" >&5
- INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os" printf "%s\n" "jni_md.h found in $JAVA_HOME/$JAVA_INC" >&6; }
- INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/$JAVA_INC"
+ INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$JAVA_OS" + INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$JAVA_OS"
else
INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os"
fi fi
if test "$GCC" = "yes"

View File

@ -1,36 +1,9 @@
backport from http://svn.apache.org/viewvc?view=revision&revision=1533345 diff -ruN commons-daemon-1.3.2-src_back/src/native/unix/support/apsupport.m4 commons-daemon-1.3.2-src/src/native/unix/support/apsupport.m4
--- commons-daemon-1.3.2-src_back/src/native/unix/support/apsupport.m4 2022-11-13 23:55:12.531213500 +0800
https://issues.apache.org/jira/browse/DAEMON-308 +++ commons-daemon-1.3.2-src/src/native/unix/support/apsupport.m4 2022-11-14 00:02:13.032089448 +0800
@@ -186,6 +186,10 @@
--- supported_os="riscv64"
src/native/unix/configure | 4 ++++ HOST_CPU=riscv64
src/native/unix/support/apsupport.m4 | 4 ++++
2 files changed, 8 insertions(+)
--- commons-daemon-1.0.15-src.orig/src/native/unix/configure
+++ commons-daemon-1.0.15-src/src/native/unix/configure
@@ -2695,10 +2695,14 @@ echo "$as_me: error: Unsupported operati
arm*)
CFLAGS="$CFLAGS -DCPU=\\\"arm\\\""
supported_os="arm"
HOST_CPU=arm
;;
+ aarch64*)
+ CFLAGS="$CFLAGS -DCPU=\\\"aarch64\\\""
+ supported_os="aarch64"
+ HOST_CPU=aarch64;;
*)
echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
{ { echo "$as_me:$LINENO: error: Unsupported CPU architecture \"$host_cpu\"" >&5
echo "$as_me: error: Unsupported CPU architecture \"$host_cpu\"" >&2;}
--- commons-daemon-1.0.15-src.orig/src/native/unix/support/apsupport.m4
+++ commons-daemon-1.0.15-src/src/native/unix/support/apsupport.m4
@@ -164,10 +164,14 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
arm*)
CFLAGS="$CFLAGS -DCPU=\\\"arm\\\""
supported_os="arm"
HOST_CPU=arm
;; ;;
+ aarch64*) + aarch64*)
+ CFLAGS="$CFLAGS -DCPU=\\\"aarch64\\\"" + CFLAGS="$CFLAGS -DCPU=\\\"aarch64\\\""
@ -39,5 +12,3 @@ https://issues.apache.org/jira/browse/DAEMON-308
*) *)
AC_MSG_RESULT([failed]) AC_MSG_RESULT([failed])
AC_MSG_ERROR([Unsupported CPU architecture "$host_cpu"]);; AC_MSG_ERROR([Unsupported CPU architecture "$host_cpu"]);;
esac

View File

@ -1,9 +1,10 @@
--- commons-daemon-1.0.15-src/src/native/unix/configure.secondary 2017-08-23 12:52:35.697817597 +0200 diff -ruN commons-daemon-1.3.2-src_back/src/native/unix/support/apsupport.m4 commons-daemon-1.3.2-src/src/native/unix/support/apsupport.m4
+++ commons-daemon-1.0.15-src/src/native/unix/configure 2017-08-23 12:53:15.313367933 +0200 --- commons-daemon-1.3.2-src_back/src/native/unix/support/apsupport.m4 2022-11-13 23:55:12.531213500 +0800
@@ -2611,8 +2611,16 @@ echo "$as_me: error: Unsupported operati +++ commons-daemon-1.3.2-src/src/native/unix/support/apsupport.m4 2022-11-14 00:02:13.016089643 +0800
esac @@ -93,8 +93,16 @@
case $host_cpu in HOST_CPU=ppc64le
powerpc) ;;
powerpc*)
- CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" - CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
- HOST_CPU=$host_cpu - HOST_CPU=$host_cpu
+ CFLAGS="$CFLAGS -DCPU=\\\"ppc\\\"" + CFLAGS="$CFLAGS -DCPU=\\\"ppc\\\""
@ -19,42 +20,3 @@
;; ;;
sparc*) sparc*)
CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
@@ -2687,7 +2695,7 @@ echo "$as_me: error: Unsupported operati
HOST_CPU=ia64
fi
;;
- s390)
+ s390 | s390x)
CFLAGS="$CFLAGS -DCPU=\\\"s390\\\""
supported_os="s390"
HOST_CPU=s390
--- commons-daemon-1.0.15-src/src/native/unix/support/apsupport.m4.secondary 2013-03-27 09:09:02.000000000 +0100
+++ commons-daemon-1.0.15-src/src/native/unix/support/apsupport.m4 2017-08-23 12:53:01.391525956 +0200
@@ -80,8 +80,16 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
esac
case $host_cpu in
powerpc)
- CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
- HOST_CPU=$host_cpu
+ CFLAGS="$CFLAGS -DCPU=\\\"ppc\\\""
+ HOST_CPU=ppc
+ ;;
+ powerpc64)
+ CFLAGS="$CFLAGS -DCPU=\\\"ppc64\\\""
+ HOST_CPU=ppc64
+ ;;
+ powerpc64le)
+ CFLAGS="$CFLAGS -DCPU=\\\"ppc64le\\\""
+ HOST_CPU=ppc64le
;;
sparc*)
CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
@@ -156,7 +164,7 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
HOST_CPU=ia64
fi
;;
- s390)
+ s390 | s390x)
CFLAGS="$CFLAGS -DCPU=\\\"s390\\\""
supported_os="s390"
HOST_CPU=s390

View File

@ -1,18 +1,21 @@
Name: apache-commons-daemon Name: apache-commons-daemon
Version: 1.0.15 Version: 1.3.3
Release: 19 Release: 3
Summary: Defines API to support an alternative invocation mechanism Summary: Defines API to support an alternative invocation mechanism
License: ASL 2.0 License: ASL 2.0
URL: http://commons.apache.org/daemon URL: http://commons.apache.org/daemon
Source0: http://archive.apache.org/dist/commons/daemon/source/commons-daemon-%{version}-src.tar.gz Source0: http://archive.apache.org/dist/commons/daemon/source/commons-daemon-%{version}-src.tar.gz
BuildRequires: maven-local java-devel >= 1:1.6.0 jpackage-utils apache-commons-parent BuildRequires: maven-local java-devel >= 1:1.6.0 jpackage-utils apache-commons-parent
BuildRequires: maven-surefire-provider-junit xmlto gcc make BuildRequires: maven-surefire-provider-junit5 xmlto gcc make
Provides: apache-commons-daemon-jsvc = %{version}-%{release} jsvc = 1:%{version}-%{release} Provides: apache-commons-daemon-jsvc = %{version}-%{release} jsvc = 1:%{version}-%{release}
Obsoletes: apache-commons-daemon-jsvc < %{version}-%{release} Obsoletes: apache-commons-daemon-jsvc < %{version}-%{release}
Patch0001: apache-commons-daemon-JAVA_OS.patch Patch0001: apache-commons-daemon-JAVA_OS.patch
Patch0002: apache-commons-daemon-secondary.patch Patch0002: apache-commons-daemon-secondary.patch
Patch0003: apache-commons-daemon-aarch64.patch Patch0003: apache-commons-daemon-aarch64.patch
Patch0004: 0001-Fix-build-failed-on-openEuler-RISC-V.patch
Patch0005: 0001-fix-build-error-for-loongarch64.patch
Patch0006: 0001-add-sw_64-support.patch
%description %description
The scope of this package is to define an API in line with the current Java Platform APIs to support The scope of this package is to define an API in line with the current Java Platform APIs to support
@ -45,7 +48,7 @@ cd -
%mvn_file : commons-daemon apache-commons-daemon %mvn_file : commons-daemon apache-commons-daemon
%mvn_alias : org.apache.commons:commons-daemon %mvn_alias : org.apache.commons:commons-daemon
%mvn_build %mvn_build -f
%install %install
install -Dpm 755 src/native/unix/jsvc $RPM_BUILD_ROOT%{_bindir}/jsvc install -Dpm 755 src/native/unix/jsvc $RPM_BUILD_ROOT%{_bindir}/jsvc
@ -62,5 +65,20 @@ install -Dpm 644 src/native/unix/jsvc.1 $RPM_BUILD_ROOT%{_mandir}/man1/jsvc.1
%{_mandir}/man1/jsvc.1* %{_mandir}/man1/jsvc.1*
%changelog %changelog
* Mon Mar 10 2025 mahailiang <mahailiang@uniontech.com> - 1.3.3-3
- add sw_64 support
* Tue Jun 04 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.3.3-2
- fix build error for loongarch64
* Tue May 09 2023 Ge Wang <wang__ge@126.com> - 1.3.3-1
- Update to version 1.3.3
* Wed Mar 22 2023 misaka00251 <liuxin@iscas.ac.cn> - 1.3.2-2
- Fix build failed on openEuler RISC-V
* Sat Nov 12 2022 hua <dchang@zhixundn.com> 1.3.2-1
- update to 1.3.2
* Mon Dec 2 2019 liujing<liujing144@huawei.com> - 1.0.15-19 * Mon Dec 2 2019 liujing<liujing144@huawei.com> - 1.0.15-19
- Package init - Package init

Binary file not shown.

Binary file not shown.