add riscv support
add riscv support add riscv support
This commit is contained in:
parent
684c7c0487
commit
35001aa01d
1272
add-riscv-support-for-vendor.patch
Normal file
1272
add-riscv-support-for-vendor.patch
Normal file
File diff suppressed because it is too large
Load Diff
12
add-riscv-support.patch
Normal file
12
add-riscv-support.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -ur tidb-4.0.14/util/sys/linux/sys_linux.go tidb-4.0.14/util/sys/linux/sys_linux.go
|
||||||
|
--- tidb-4.0.14/util/sys/linux/sys_linux.go 2021-07-26 18:50:15.000000000 +0800
|
||||||
|
+++ tidb-4.0.14/util/sys/linux/sys_linux.go 2023-07-19 09:54:54.386949713 +0800
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
- charsToString := func(ca []int8) string {
|
||||||
|
+ charsToString := func(ca []uint8) string {
|
||||||
|
s := make([]byte, len(ca))
|
||||||
|
var lens int
|
||||||
|
for ; lens < len(ca); lens++ {
|
||||||
19
tidb.spec
19
tidb.spec
@ -1,6 +1,6 @@
|
|||||||
Name: tidb
|
Name: tidb
|
||||||
Version: 4.0.14
|
Version: 4.0.14
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: TiDB is a distributed NewSQL database compatible with MySQL protocol
|
Summary: TiDB is a distributed NewSQL database compatible with MySQL protocol
|
||||||
|
|
||||||
License: QL and STRUTIL
|
License: QL and STRUTIL
|
||||||
@ -12,6 +12,10 @@ Source2: tidb-server.toml
|
|||||||
Source3: vendor.tar.gz
|
Source3: vendor.tar.gz
|
||||||
Patch0: Set-GOFLAG-to-go-mod-vendor.patch
|
Patch0: Set-GOFLAG-to-go-mod-vendor.patch
|
||||||
Patch1: 0001-fix-release-version.patch
|
Patch1: 0001-fix-release-version.patch
|
||||||
|
%ifarch riscv64
|
||||||
|
Patch2: add-riscv-support.patch
|
||||||
|
Patch3: add-riscv-support-for-vendor.patch
|
||||||
|
%endif
|
||||||
BuildRequires: golang >= 1.10.0
|
BuildRequires: golang >= 1.10.0
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
@ -20,8 +24,18 @@ Requires(post): systemd
|
|||||||
TiDB is a distributed NewSQL database compatible with MySQL protocol
|
TiDB is a distributed NewSQL database compatible with MySQL protocol
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%ifarch riscv64
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
tar xvf %{SOURCE3} -C .
|
||||||
|
%patch3
|
||||||
|
%else
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
tar xvf %{SOURCE3} -C .
|
tar xvf %{SOURCE3} -C .
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build
|
%make_build
|
||||||
@ -69,6 +83,9 @@ exit 0
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 17 2023 zhangxiang <zhangxiang@iscas.ac.cn> - 4.0.14-4
|
||||||
|
- add riscv64 support
|
||||||
|
|
||||||
* Mon Oct 11 2021 baizhonggui <baizhonggui@huawei.com> - 4.0.14-3
|
* Mon Oct 11 2021 baizhonggui <baizhonggui@huawei.com> - 4.0.14-3
|
||||||
- Fix commond tidb-server -V 'Release Version' not displayed
|
- Fix commond tidb-server -V 'Release Version' not displayed
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user