Hello community,

here is the log from the commit of package perl-Sys-CPU for openSUSE:Factory 
checked in at 2018-01-31 19:51:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Sys-CPU (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Sys-CPU"

Wed Jan 31 19:51:39 2018 rev:6 rq:571085 version:0.61

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Sys-CPU/perl-Sys-CPU.changes        
2016-01-23 01:16:40.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new/perl-Sys-CPU.changes   
2018-01-31 19:51:40.414085765 +0100
@@ -1,0 +2,12 @@
+Fri Jan 26 14:53:18 UTC 2018 - guilla...@opensuse.org
+
+-  Remove full URL since it is not available anymore there
+
+-------------------------------------------------------------------
+Fri Jan 26 14:48:43 UTC 2018 - guilla...@opensuse.org
+
+- Fix check on AArch64, see 
+  https://rt.cpan.org/Public/Bug/Display.html?id=95400
+  adds 0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Sys-CPU.spec ++++++
--- /var/tmp/diff_new_pack.ktTz6D/_old  2018-01-31 19:51:41.118053030 +0100
+++ /var/tmp/diff_new_pack.ktTz6D/_new  2018-01-31 19:51:41.122052844 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Sys-CPU
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,8 +24,10 @@
 License:        GPL-1.0+ or Artistic-1.0
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Sys-CPU/
-Source:         
http://www.cpan.org/authors/id/M/MZ/MZSANFORD/%{cpan_name}-%{version}.tar.gz
-Patch0:         0002-cpu_clock-can-be-undefined-on-an-ARM.patch
+# Source:         
http://www.cpan.org/authors/id/M/MZ/MZSANFORD/%{cpan_name}-%{version}.tar.gz
+Source:         %{cpan_name}-%{version}.tar.gz
+Patch0:         0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
+Patch1:         0002-cpu_clock-can-be-undefined-on-an-ARM.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
@@ -40,6 +42,7 @@
 %prep
 %setup -q -n %{cpan_name}-%{version}
 %patch0 -p1
+%patch1 -p1
 find . -type f -print0 | xargs -0 chmod 644
 
 %build

++++++ 0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch ++++++
>From f77b2b0c795f5d2ad7a85ae3bfffcf74232836ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@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ř <ppi...@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


Reply via email to