Hello community,

here is the log from the commit of package perl-Sys-CPU for openSUSE:Factory 
checked in at 2016-01-23 01:16:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Sys-CPU (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Sys-CPU"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Sys-CPU/perl-Sys-CPU.changes        
2014-03-18 13:59:26.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Sys-CPU.new/perl-Sys-CPU.changes   
2016-01-23 01:16:40.000000000 +0100
@@ -1,0 +2,7 @@
+Thu Jan 21 05:29:48 UTC 2016 - dmuel...@suse.com
+
+- Fix build on AArch64/arm, see 
+  https://rt.cpan.org/Public/Bug/Display.html?id=95400
+  adds 0002-cpu_clock-can-be-undefined-on-an-ARM.patch
+
+-------------------------------------------------------------------

New:
----
  0002-cpu_clock-can-be-undefined-on-an-ARM.patch

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

Other differences:
------------------
++++++ perl-Sys-CPU.spec ++++++
--- /var/tmp/diff_new_pack.GvUmhu/_old  2016-01-23 01:16:41.000000000 +0100
+++ /var/tmp/diff_new_pack.GvUmhu/_new  2016-01-23 01:16:41.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Sys-CPU
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -25,6 +25,7 @@
 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
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
@@ -38,6 +39,7 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+%patch0 -p1
 find . -type f -print0 | xargs -0 chmod 644
 
 %build

++++++ 0002-cpu_clock-can-be-undefined-on-an-ARM.patch ++++++
>From ceaef15d1391e37623aaf18d6614a4bbf35a3607 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 09:12:16 +0200
Subject: [PATCH 2/2] cpu_clock can be undefined on an ARM
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Some ARM boards do not publish CPU clock.

Signed-off-by: Petr Písař <ppi...@redhat.com>
---
 Makefile.PL | 1 +
 t/Sys-CPU.t | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/Makefile.PL b/Makefile.PL
index 910c77a..4e72025 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -13,4 +13,5 @@ WriteMakefile(
     'DEFINE'           => '', # e.g., '-DHAVE_SOMETHING'
     'INC'              => '', # e.g., '-I/usr/include/other'
     'dynamic_lib'       => {OTHERLDFLAGS => $extra_arg},
+    'BUILD_REQUIRES'    => {'Config' => 0 },
 );
diff --git a/t/Sys-CPU.t b/t/Sys-CPU.t
index 9edaaa3..4246b22 100755
--- a/t/Sys-CPU.t
+++ b/t/Sys-CPU.t
@@ -8,6 +8,7 @@
 
 BEGIN { $| = 1; print "1..4\n"; }
 END {print "not ok 1\n" unless $loaded;}
+use Config;
 use Sys::CPU;
 $loaded = 1;
 print "ok 1\n";
@@ -24,6 +25,8 @@ if (defined($speed)) {
     print "ok 3 (CPU Speed : $speed)\n";
 } elsif ( $^O eq 'MSWin32'){
     print "ok 3 (CPU Speed: test skipped on MSWin32)\n";
+} elsif ($Config{archname} =~ /^(arm|aarch64)/ ) {
+    print "ok 3 (CPU Speed: test skipped on ARM and AArch64)\n";
 } else  {
     print "not ok 3 (cpu_clock undefined (ok if Win9x))\n";
 }
-- 
1.9.3


Reply via email to