From 32d86288660a4399e4bec90bfd36d1d89f303dcd Mon Sep 17 00:00:00 2001 From: Hailiang Date: Mon, 10 Mar 2025 14:12:25 +0800 Subject: [PATCH] add sw_64 support --- 0001-add-sw_64-support.patch | 28 ++++++++++++++++++++++++++++ apache-commons-daemon.spec | 6 +++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0001-add-sw_64-support.patch diff --git a/0001-add-sw_64-support.patch b/0001-add-sw_64-support.patch new file mode 100644 index 0000000..6a45e05 --- /dev/null +++ b/0001-add-sw_64-support.patch @@ -0,0 +1,28 @@ +From 582cd8b81a7578411103a0978dfe1d19c5d75ad1 Mon Sep 17 00:00:00 2001 +From: Hailiang +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 + diff --git a/apache-commons-daemon.spec b/apache-commons-daemon.spec index 78fcd75..7cdeb50 100644 --- a/apache-commons-daemon.spec +++ b/apache-commons-daemon.spec @@ -1,6 +1,6 @@ Name: apache-commons-daemon Version: 1.3.3 -Release: 2 +Release: 3 Summary: Defines API to support an alternative invocation mechanism License: ASL 2.0 URL: http://commons.apache.org/daemon @@ -15,6 +15,7 @@ Patch0002: apache-commons-daemon-secondary.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 The scope of this package is to define an API in line with the current Java Platform APIs to support @@ -64,6 +65,9 @@ install -Dpm 644 src/native/unix/jsvc.1 $RPM_BUILD_ROOT%{_mandir}/man1/jsvc.1 %{_mandir}/man1/jsvc.1* %changelog +* Mon Mar 10 2025 mahailiang - 1.3.3-3 +- add sw_64 support + * Tue Jun 04 2024 Wenlong Zhang - 1.3.3-2 - fix build error for loongarch64