!49 Add riscv64 support
From: @a-xiang-and-shanhaijing Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
995d0d60ae
25
add-riscv-support.patch
Normal file
25
add-riscv-support.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff -ur trafficserver-9.1.4/build/_aux/config.guess trafficserver-9.1.4/build/_aux/config.guess
|
||||||
|
--- trafficserver-9.1.4/build/_aux/config.guess 2022-12-15 00:12:58.000000000 +0800
|
||||||
|
+++ trafficserver-9.1.4/build/_aux/config.guess 2023-06-29 22:17:30.463222251 +0800
|
||||||
|
@@ -972,6 +972,9 @@
|
||||||
|
aarch64:Linux:*:*)
|
||||||
|
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
|
||||||
|
;;
|
||||||
|
+ riscv64:Linux:*:*)
|
||||||
|
+ GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
|
||||||
|
+ ;;
|
||||||
|
aarch64_be:Linux:*:*)
|
||||||
|
UNAME_MACHINE=aarch64_be
|
||||||
|
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
|
||||||
|
diff -ur trafficserver-9.1.4/include/tscore/ink_queue.h trafficserver-9.1.4/include/tscore/ink_queue.h
|
||||||
|
--- trafficserver-9.1.4/include/tscore/ink_queue.h 2022-12-15 00:12:58.000000000 +0800
|
||||||
|
+++ trafficserver-9.1.4/include/tscore/ink_queue.h 2023-06-29 22:17:33.107226277 +0800
|
||||||
|
@@ -139,7 +139,7 @@
|
||||||
|
#define SET_FREELIST_POINTER_VERSION(_x, _p, _v) \
|
||||||
|
(_x).s.pointer = _p; \
|
||||||
|
(_x).s.version = _v
|
||||||
|
-#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(__mips64)
|
||||||
|
+#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(__mips64)|| defined(__riscv)
|
||||||
|
/* Layout of FREELIST_POINTER
|
||||||
|
*
|
||||||
|
* 0 ~ 47 bits : 48 bits, Virtual Address (47 bits for AMD64 and 48 bits for AArch64)
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%define _hardened_build 1
|
%define _hardened_build 1
|
||||||
Name: trafficserver
|
Name: trafficserver
|
||||||
Version: 9.1.4
|
Version: 9.1.4
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Apache Traffic Server, a reverse, forward and transparent HTTP proxy cache
|
Summary: Apache Traffic Server, a reverse, forward and transparent HTTP proxy cache
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://trafficserver.apache.org/
|
URL: https://trafficserver.apache.org/
|
||||||
@ -11,6 +11,7 @@ Patch0001: Fix-status-failure-after-stopping-service.patch
|
|||||||
Patch0002: Fix-log-in-debug-mode.patch
|
Patch0002: Fix-log-in-debug-mode.patch
|
||||||
Patch0003: config-layout-openEuler.patch
|
Patch0003: config-layout-openEuler.patch
|
||||||
Patch0004: Modify-storage.config-for-traffic_cache_tool.patch
|
Patch0004: Modify-storage.config-for-traffic_cache_tool.patch
|
||||||
|
Patch0005: add-riscv-support.patch
|
||||||
BuildRequires: expat-devel hwloc-devel openssl-devel pcre-devel zlib-devel xz-devel
|
BuildRequires: expat-devel hwloc-devel openssl-devel pcre-devel zlib-devel xz-devel
|
||||||
BuildRequires: libcurl-devel ncurses-devel gcc gcc-c++ perl-ExtUtils-MakeMaker
|
BuildRequires: libcurl-devel ncurses-devel gcc gcc-c++ perl-ExtUtils-MakeMaker
|
||||||
BuildRequires: libcap-devel cmake libunwind-devel automake chrpath
|
BuildRequires: libcap-devel cmake libunwind-devel automake chrpath
|
||||||
@ -131,6 +132,9 @@ getent passwd ats >/dev/null || useradd -r -u 176 -g ats -d / -s /sbin/nologin -
|
|||||||
%{_datadir}/pkgconfig/trafficserver.pc
|
%{_datadir}/pkgconfig/trafficserver.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 30 2023 zhangxiang <zhangxiang@iscas.ac.cn> - 9.1.4-3
|
||||||
|
- add riscv support
|
||||||
|
|
||||||
* Fri Mar 03 2023 Ge Wang <wangge20@h-partners.com> - 9.1.4-2
|
* Fri Mar 03 2023 Ge Wang <wangge20@h-partners.com> - 9.1.4-2
|
||||||
- Remove rpath
|
- Remove rpath
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user