Skip to content

Commit 19e624f

Browse files
committed
updpatch: istio 1.24.3-1
1 parent 61d3dcf commit 19e624f

File tree

2 files changed

+19
-37
lines changed

2 files changed

+19
-37
lines changed

istio/add_riscv64_support.patch

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
diff --git a/common/scripts/setup_env.sh b/common/scripts/setup_env.sh
2-
index 236035c..cd2defc 100755
3-
--- a/common/scripts/setup_env.sh
4-
+++ b/common/scripts/setup_env.sh
5-
@@ -42,6 +42,8 @@ elif [[ ${LOCAL_ARCH} == s390x ]]; then
6-
export TARGET_ARCH=s390x
1+
--- a/common/scripts/setup_env.sh 2025-01-30 23:35:55.000000000 +0800
2+
+++ b/common/scripts/setup_env.sh 2025-02-15 19:02:34.561370967 +0800
3+
@@ -49,6 +49,8 @@
4+
TARGET_ARCH=s390x
75
elif [[ ${LOCAL_ARCH} == ppc64le ]]; then
8-
export TARGET_ARCH=ppc64le
6+
TARGET_ARCH=ppc64le
97
+elif [[ ${LOCAL_ARCH} == riscv64 ]]; then
10-
+ export TARGET_ARCH=riscv64
8+
+ TARGET_ARCH=riscv64
119
else
1210
echo "This system's architecture, ${LOCAL_ARCH}, isn't supported"
1311
exit 1

istio/riscv64.patch

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
1-
diff --git PKGBUILD PKGBUILD
2-
index 4179c7e..de3b088 100644
31
--- PKGBUILD
42
+++ PKGBUILD
5-
@@ -9,9 +9,17 @@ arch=('x86_64')
6-
url='https://github.com/istio/istio'
7-
license=('Apache')
8-
makedepends=('go')
9-
-source=("$pkgname-$pkgver.tar.gz::https://github.com/istio/istio/archive/$pkgver.tar.gz")
10-
-sha512sums=('0e52fa3d9f33ec4515bd105724fa1478312aaf834ae574e13041b96e6a8f2a5d1b0897ca0c96976f0ef4436e6cf924d257facce70471d71170593bf8f37a0e82')
11-
-b2sums=('fba25cc96dc920ec89d072aa0f1b23e3699cdb10fa9d2b945e41153e5214952d52af3801146734bf9dfcae1d100d5096b81ef866bd1d72b81cba2592ac3e1f91')
12-
+source=("$pkgname-$pkgver.tar.gz::https://github.com/istio/istio/archive/$pkgver.tar.gz"
13-
+ "add_riscv64_support.patch")
14-
+sha512sums=('0e52fa3d9f33ec4515bd105724fa1478312aaf834ae574e13041b96e6a8f2a5d1b0897ca0c96976f0ef4436e6cf924d257facce70471d71170593bf8f37a0e82'
15-
+ '783ab98ca7b8a5f908a615604bfef74a6928ecb70c369a3d869009469c52e205d636f4a4df894c9d32ccb125e331e9dd72abcb8fe721998d407a6de7d9242a3d')
16-
+b2sums=('fba25cc96dc920ec89d072aa0f1b23e3699cdb10fa9d2b945e41153e5214952d52af3801146734bf9dfcae1d100d5096b81ef866bd1d72b81cba2592ac3e1f91'
17-
+ '059ec840175fdee7694fd1f61f4fe7a2c22cb99686ac4055fc8a5cd4d22da20b03b19b99258a4e51a06bfd5c5fc8833a443b8aaffd450ad80f60c64a46abae9e')
18-
+
19-
+prepare() {
20-
+ cd $pkgname-$pkgver
21-
+ patch -Np1 -i "../add_riscv64_support.patch"
22-
+}
23-
24-
build() {
3+
@@ -20,6 +20,7 @@ b2sums=('0104e6648c482b5229f456d760e455d1de711e560597ae42a73688199261a64da970352
4+
prepare() {
255
cd $pkgname-$pkgver
26-
@@ -22,7 +30,7 @@ build() {
6+
GOFLAGS="-mod=readonly" go mod vendor -v
7+
+ patch -Np1 -i "${srcdir}/add_riscv64_support.patch"
278
}
289

29-
package() {
30-
- install -Dm 755 "${srcdir}/$pkgname-$pkgver/out/linux_amd64/istioctl" "${pkgdir}/usr/bin/istioctl"
31-
+ install -Dm 755 "${srcdir}/$pkgname-$pkgver/out/linux_riscv64/istioctl" "${pkgdir}/usr/bin/istioctl"
32-
33-
# Populate bash and zsh completions
34-
install -dm 755 "${pkgdir}/usr/share/bash-completion/completions"
10+
build() {
11+
@@ -56,3 +57,7 @@ package() {
12+
install -vDm644 istioctl.bash "$pkgdir/usr/share/bash-completion/completions/istioctl"
13+
install -vDm644 _istioctl "$pkgdir/usr/share/zsh/site-functions/_istioctl"
14+
}
15+
+
16+
+source+=('add_riscv64_support.patch')
17+
+sha512sums+=('7d51979446415a3968ef538669cf563582745960d5b90aabe85226d5fd4b34ebe5c2f31f01126de778e8fca9102e04b5bc8ff9ceec9d3c059b8c51d377170e83')
18+
+b2sums+=('8cfde63e74c40fa6834b59b17c05974013cc2ea8c578c246b265ef696fe76e74a08e9107969677577df816b2c4a0f81a0afe2c9ab4c8b96e652beeee032ed08d')

0 commit comments

Comments
 (0)