From f83a40fba540d05ae6aed0d3a337d36ba67329a4 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Mon, 29 Aug 2016 23:50:01 +0000 Subject: testing/perl-sys-cpu: add support for aarch64 --- testing/perl-sys-cpu/APKBUILD | 12 +- ...-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch | 149 +++++++++++++++++++++ 2 files changed, 157 insertions(+), 4 deletions(-) create mode 100644 testing/perl-sys-cpu/Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch (limited to 'testing/perl-sys-cpu') diff --git a/testing/perl-sys-cpu/APKBUILD b/testing/perl-sys-cpu/APKBUILD index 8991e1f054..7b577e0c60 100644 --- a/testing/perl-sys-cpu/APKBUILD +++ b/testing/perl-sys-cpu/APKBUILD @@ -15,7 +15,8 @@ depends="$cpandepends" makedepends="perl-dev linux-headers $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MZ/MZSANFORD/$_pkgreal-$pkgver.tar.gz - 0001-musl-compat.patch" + 0001-musl-compat.patch + Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { @@ -39,8 +40,11 @@ package() { } md5sums="f43a3a50ac2dca6c1485a859ebef09b2 Sys-CPU-0.61.tar.gz -9d94c909cb3f08e410cd470cc006278d 0001-musl-compat.patch" +9d94c909cb3f08e410cd470cc006278d 0001-musl-compat.patch +4b3d6644299ff5419282e26286bdce20 Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch" sha256sums="250a86b79c231001c4ae71d2f66428092a4fbb2070971acafd471aa49739c9e4 Sys-CPU-0.61.tar.gz -1fde5438497cd3ed925b30990e4fc493be7823eb13a169af0a6c3bef419ae648 0001-musl-compat.patch" +1fde5438497cd3ed925b30990e4fc493be7823eb13a169af0a6c3bef419ae648 0001-musl-compat.patch +616f5d25075c41716dc5888a487221a5d9fce29903d322b097424d828a6f900d Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch" sha512sums="391e113c87d9044cd43c47f9f78a782fab65566a32c028c01f7f3335a5065b6755586ea3143356510c8d28a7d1ad572cc6203ec189eaaa379967bdbd0a0bd7bc Sys-CPU-0.61.tar.gz -7e3dd2efa3a9857b46d291510faf47c0120ece5705b9c58fc08a36d6ff54618acc8866554002572fa35768a44db319b59b73303e9a340734f28235d05f5174cb 0001-musl-compat.patch" +7e3dd2efa3a9857b46d291510faf47c0120ece5705b9c58fc08a36d6ff54618acc8866554002572fa35768a44db319b59b73303e9a340734f28235d05f5174cb 0001-musl-compat.patch +171fe3b27fd03b79eeee567a5a3ad5b6419fbbeb6a90ca10028496c7ba825cf189cdf4fd8dea19cf3f8e43d57ff8b6613d331ef8a198092d771307351d9dab49 Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch" diff --git a/testing/perl-sys-cpu/Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch b/testing/perl-sys-cpu/Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch new file mode 100644 index 0000000000..2d81347db6 --- /dev/null +++ b/testing/perl-sys-cpu/Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch @@ -0,0 +1,149 @@ + + + +rpms/perl-Sys-CPU.git - perl-Sys-CPU + + + + + + + + + + + + + + +
+ + + + +
+summaryrefslogtreecommitdiffstats
+ + + +
+
+
blob: 7f724eec469e2dd302c8dd068ccc22bc2d21ad65 (plain) + + +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+
From f77b2b0c795f5d2ad7a85ae3bfffcf74232836ec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Tue, 6 May 2014 08:47:16 +0200
+Subject: [PATCH 1/2] Add support for cpu_type on ARM and AArch64 Linux
+ platforms
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The CPU type is listed as Processor (upper-cased P) entry. SMP systems
+enumerate cores by processor (lower-cased P) entries in addition.
+The Processor is always first, so case-insesitive look-up is not
+a problem.
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ CPU.xs | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/CPU.xs b/CPU.xs
+index 236b14d..067c9cb 100644
+--- a/CPU.xs
++++ b/CPU.xs
+@@ -395,6 +395,9 @@ CODE:
+     sysctlbyname("hw.model", value, &len, NULL, 0);
+ #endif
+ #ifdef __linux__
++#if defined __arm__ || defined __aarch64__
++    value = proc_cpuinfo_field ("Processor");
++#endif
+ #if defined __s390__ || defined __s390x__
+     value = processor_machine_field (proc_cpuinfo_field ("processor") );
+ #endif
+-- 
+1.9.0
+
+
+
+ +
+ + -- cgit v1.2.3