diff --git a/services/obs/api/patches/0004-fix-obs-api-failed-recognize-sw_64-arch.patch b/services/obs/api/patches/0004-fix-obs-api-failed-recognize-sw_64-arch.patch new file mode 100644 index 0000000..e441f01 --- /dev/null +++ b/services/obs/api/patches/0004-fix-obs-api-failed-recognize-sw_64-arch.patch @@ -0,0 +1,38 @@ +From 2edbc23e880be0c273cf9d793e1f29da0ce21685 Mon Sep 17 00:00:00 2001 +From: hudeng +Date: Tue, 14 Nov 2023 02:39:44 +0000 +Subject: [PATCH] fix: Obs api service does not recognize sw_64 architecture + +--- + api/db/seeds.rb | 2 +- + docs/api/obs.rng | 2 ++ + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/api/db/seeds.rb b/api/db/seeds.rb +index f08cb15..b9ec49a 100644 +--- a/api/db/seeds.rb ++++ b/api/db/seeds.rb +@@ -6,7 +6,7 @@ puts 'Seeding architectures table...' + ['aarch64', 'aarch64_ilp32', 'armv4l', 'armv5l', 'armv6l', 'armv7l', 'armv5el', 'armv6el', 'armv7el', + 'armv7hl', 'armv8el', 'hppa', 'i586', 'i686', 'ia64', 'k1om', 'local', 'm68k', 'mips', 'mips32', + 'mips64', 'ppc', 'ppc64', 'ppc64p7', 'ppc64le', 'riscv64', 's390', 's390x', 'sparc', 'sparc64', 'sparc64v', +- 'sparcv8', 'sparcv9', 'sparcv9v', 'x86_64', 'loong64', 'mips64el'].each do |arch_name| ++ 'sparcv8', 'sparcv9', 'sparcv9v', 'x86_64', 'loong64', 'mips64el', 'sw64'].each do |arch_name| + Architecture.where(name: arch_name).first_or_create + end + # following our default config +diff --git a/docs/api/obs.rng b/docs/api/obs.rng +index c3ae6cd..8c4bcc4 100644 +--- a/docs/api/obs.rng ++++ b/docs/api/obs.rng +@@ -66,6 +66,8 @@ + + loongarch64 + ++ sw64 ++ + local + + +-- +2.35.3 diff --git a/services/obs/backend/backend-it.yml b/services/obs/backend/backend-it.yml index d73db0a..df59d8f 100644 --- a/services/obs/backend/backend-it.yml +++ b/services/obs/backend/backend-it.yml @@ -817,6 +817,8 @@ data: x86_64 riscv64 loong64 + mips64el + sw64 ^home:.+ home projects diff --git a/services/obs/backend/backend-v25.yml b/services/obs/backend/backend-v25.yml index 68019a9..7bb60d0 100644 --- a/services/obs/backend/backend-v25.yml +++ b/services/obs/backend/backend-v25.yml @@ -818,6 +818,7 @@ data: riscv64 loong64 mips64el + sw64 ^home:.+ home projects diff --git a/services/obs/backend/patches/0013-feat-Add-sw-arch-support.patch b/services/obs/backend/patches/0013-feat-Add-sw-arch-support.patch new file mode 100644 index 0000000..15870bf --- /dev/null +++ b/services/obs/backend/patches/0013-feat-Add-sw-arch-support.patch @@ -0,0 +1,38 @@ +From 170dafb07927ac1fbb66a8e87d081819ec0b0fce Mon Sep 17 00:00:00 2001 +From: hudeng +Date: Fri, 11 Oct 2024 03:13:33 +0000 +Subject: [PATCH] feat: Add sw arch support + +--- + BSCando.pm | 2 ++ + bs_publish | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/BSCando.pm b/BSCando.pm +index 82b5b25..f83bd9d 100644 +--- a/BSCando.pm ++++ b/BSCando.pm +@@ -69,6 +69,8 @@ our %cando = ( + 'mips64' => [ 'mips64', 'mips:mips32' ], + 'loong64' => [ 'loong64', 'loongarch64' ], + 'loongarch64' => [ 'loong64', 'loongarch64' ], ++ 'sw_64' => [ 'sw_64', 'sw64' ], ++ 'sw64' => [ 'sw_64', 'sw64' ], + + 'm68k' => [ 'm68k' ], + +diff --git a/bs_publish b/bs_publish +index 2e1f722..c2de29b 100755 +--- a/bs_publish ++++ b/bs_publish +@@ -907,6 +907,8 @@ ARCH.ppc64le ppc64le noarch + ARCH.ppc ppc noarch + ARCH.riscv64 riscv64 noarch + ARCH.loong64 loong64 loongarch64 noarch ++ARCH.sw_64 sw_64 sw64 noarch ++ARCH.sw64 sw64 sw_64 noarch + ARCH.sh4 sh4 noarch + ARCH.m68k m68k noarch + ARCH.aarch64 aarch64 aarch64_ilp32 noarch +-- +2.35.3