From 2c2eda1299acd2c189ecd597098c722ad5b122f2 Mon Sep 17 00:00:00 2001 From: misaka00251 Date: Wed, 23 Jul 2025 15:23:50 +0800 Subject: [PATCH] Fix riscv64 patch --- add-riscv64-support.patch | 25 ------------------------- atune.spec | 5 ++++- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/add-riscv64-support.patch b/add-riscv64-support.patch index dfa3f30..52f3d38 100644 --- a/add-riscv64-support.patch +++ b/add-riscv64-support.patch @@ -1,28 +1,3 @@ -diff -ur A-Tune-v1.0.0/Makefile A-Tune-v1.0.0/Makefile ---- A-Tune-v1.0.0/Makefile 2023-08-02 09:56:24.899756693 +0800 -+++ A-Tune-v1.0.0/Makefile 2023-08-02 10:16:38.822243233 +0800 -@@ -38,7 +38,7 @@ - go build -mod=vendor -v $(GOFLAGS) -o $(PKGPATH)/atuned cmd/atuned/*.go - - modules: -- cd ${CURDIR}/modules/server/profile/ && go build -mod=vendor -v $(GOFLAGS) -buildmode=plugin -o ${CURDIR}/pkg/daemon_profile_server.so *.go -+ cd ${CURDIR}/modules/server/profile/ && go build -mod=vendor -v $(GOFLAGS) -o ${CURDIR}/pkg/daemon_profile_server.so *.go - - clean: - rm -rf $(PKGPATH)/* -diff -ur A-Tune-v1.0.0/modules/server/profile/profile.go A-Tune-v1.0.0/modules/server/profile/profile.go ---- A-Tune-v1.0.0/modules/server/profile/profile.go 2021-11-15 16:11:32.000000000 +0800 -+++ A-Tune-v1.0.0/modules/server/profile/profile.go 2023-08-02 10:35:58.020598632 +0800 -@@ -96,7 +96,8 @@ - ScriptPath string - Raw *ini.File - } -- -+func main() { -+ } - func init() { - svc := SVC.ProfileService{ - Name: "opt.profile", diff -ur A-Tune-v1.0.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c A-Tune-v1.0.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c --- A-Tune-v1.0.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c 2021-11-15 16:11:32.000000000 +0800 +++ A-Tune-v1.0.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c 2023-08-02 09:56:51.379811561 +0800 diff --git a/atune.spec b/atune.spec index 17dca87..6fcd9da 100755 --- a/atune.spec +++ b/atune.spec @@ -3,7 +3,7 @@ Summary: AI auto tuning system Name: atune Version: 1.2.0 -Release: 5 +Release: 6 License: MulanPSL-2.0 URL: https://gitee.com/openeuler/A-Tune Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz @@ -196,6 +196,9 @@ atune restful api for manage atuned AI tuning system. %exclude /etc/atuned/rest_certs %changelog +* Wed Jul 23 2025 misaka00251 - 1.2.0-6 +- Fix riscv64 patch + * Mon Apr 21 2025 caixiaomeng - 1.2.0-5 - fix atune-adm analyse failed problem -- Gitee