[X2Go-Commits] [buildscripts] 09/12: bin/{build-rpm, sbuild-deb}-package: add 'arm' as recognized value to PLATFORM variable.

git-admin at x2go.org git-admin at x2go.org
Mon Mar 11 14:46:39 CET 2024


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 90bef9afc7365cbd64028ea23111ce5b566761e3
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Mar 7 13:07:39 2024 +0100

    bin/{build-rpm,sbuild-deb}-package: add 'arm' as recognized value to PLATFORM variable.
    
    Currently unused by us.
    
    We handle ARM via Raspbian for *.deb builds, which is handled as a
    special distribution, and not at all for *.rpm builds.
---
 bin/build-rpm-package  |  9 +++++++++
 bin/sbuild-deb-package | 10 ++++++++++
 2 files changed, 19 insertions(+)

diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 94b5c15..99d7cfb 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -905,6 +905,9 @@ clear_pkgdist() {
 					("ppc64le")
 						arches+=( "ppc64le" )
 						;;
+					('arm')
+						arches+=( 'aarch64' )
+						;;
 				esac
 
 				for l_ARCH in "${arches[@]}"; do
@@ -959,6 +962,9 @@ build_packages() {
 					("ppc64le")
 						arches+=( "ppc64le" )
 						;;
+					('arm')
+						arches+=( 'aarch64' )
+						;;
 				esac
 
 				typeset l_ARCH="${arches[0]}"
@@ -1418,6 +1424,9 @@ upload_packages() {
 				("ppc64le")
 					arches+=( "ppc64le" )
 					;;
+				('arm')
+					arches+=( 'aarch64' )
+					;;
 			esac
 
 			for l_ARCH in "${arches[@]}"; do
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index 2aaa4e3..a30d938 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -290,6 +290,9 @@ clear_pkgdist() {
 						# Only jessie and up support the new ppc64el architecture.
 						[[ "${numerical_version}" -ge "8" ]] && arches+=( "ppc64el" )
 						;;
+					('arm')
+						arches+=( 'arm64' 'armhf' )
+						;;
 				esac
 
 				[ "${l_DIST}" = "raspbian" ] && arches=( "armhf" )
@@ -448,6 +451,10 @@ build_packages() {
 						# Only jessie and up support the new ppc64el architecture.
 						[[ "${numerical_version}" -ge "8" ]] && arches+=( "ppc64el" )
 						;;
+					('arm')
+						skip_arch_all='1'
+						arches+=( 'arm64' 'armhf' )
+						;;
 				esac
 
 				[ "${l_DIST}" = "raspbian" ] && arches=( "armhf" )
@@ -605,6 +612,9 @@ upload_packages() {
 					# Only jessie and up support the new ppc64el architecture.
 					[[ "${numerical_version}" -ge "8" ]] && arches+=( "ppc64el" )
 					;;
+				('arm')
+					arches+=( 'arm64' 'armhf' )
+					;;
 			esac
 
 			[ "${l_DIST}" = "raspbian" ] && arches=( "armhf" )

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list