diff options
author | Henrik Riomar <henrik.riomar@gmail.com> | 2018-01-27 15:41:32 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-21 11:50:42 +0000 |
commit | b48236284f7c74dcfd833a5d0a35c8350e9a91d2 (patch) | |
tree | 06a9e4fd9d24d0cf408be97cd694a84e07b243c2 /community/virt-what/0004-Determine-architecture-via-uname-m.patch | |
parent | 2e08c6fd45e560d53bbf0c9f004161ea877c7bf8 (diff) | |
download | aports-b48236284f7c74dcfd833a5d0a35c8350e9a91d2.tar.bz2 aports-b48236284f7c74dcfd833a5d0a35c8350e9a91d2.tar.xz |
community/virt-what: fix arch handling
Add upstream fix for how uname is used to determine the arch.
Diffstat (limited to 'community/virt-what/0004-Determine-architecture-via-uname-m.patch')
-rw-r--r-- | community/virt-what/0004-Determine-architecture-via-uname-m.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/community/virt-what/0004-Determine-architecture-via-uname-m.patch b/community/virt-what/0004-Determine-architecture-via-uname-m.patch new file mode 100644 index 0000000000..a32e1a2646 --- /dev/null +++ b/community/virt-what/0004-Determine-architecture-via-uname-m.patch @@ -0,0 +1,30 @@ +From 52870e8a264653d7921e8a4edff56d4b050614d8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> +Date: Sat, 27 Jan 2018 13:11:36 +0100 +Subject: [PATCH] Determine architecture via 'uname -m' + +'uname -p' only gives unknown on x86_64, i386, arm6l (rpi) and aarch64 +(scaleways). +--- + virt-what.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/virt-what.in b/virt-what.in +index 29b7b0d..2011ff4 100644 +--- a/virt-what.in ++++ b/virt-what.in +@@ -102,9 +102,9 @@ cpuid=$(virt-what-cpuid-helper) + dmi=$(LANG=C dmidecode 2>&1) + + # Architecture. +-# Note for the purpose of testing, we only call uname with -p option. ++# Note for the purpose of testing, we only call uname with -m option. + +-arch=$(uname -p | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/') ++arch=$(uname -m | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/') + + # Check for VMware. + # cpuid check added by Chetan Loke. +-- +2.16.1 + |