Hello community,

here is the log from the commit of package perl-Sys-LoadAvg for 
openSUSE:Factory checked in at 2020-12-11 20:16:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Sys-LoadAvg (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Sys-LoadAvg.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Sys-LoadAvg"

Fri Dec 11 20:16:48 2020 rev:2 rq:854827 version:0.03

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Sys-LoadAvg/perl-Sys-LoadAvg.changes        
2016-01-11 19:11:21.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Sys-LoadAvg.new.2328/perl-Sys-LoadAvg.changes  
    2020-12-11 20:16:49.948662543 +0100
@@ -1,0 +2,7 @@
+Thu Dec 10 06:41:42 UTC 2020 - Frank Schreiner <[email protected]>
+
+- added 0001-enhance-loadavg-array-from-2-to-3-doubles.patch
+  (Fixes: https://rt.cpan.org/Public/Bug/Display.html?id=120617)
+- re-run cpanspec version 1.80.01
+
+-------------------------------------------------------------------

New:
----
  0001-enhance-loadavg-array-from-2-to-3-doubles.patch
  cpanspec.yml

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

Other differences:
------------------
++++++ perl-Sys-LoadAvg.spec ++++++
--- /var/tmp/diff_new_pack.4y8gaQ/_old  2020-12-11 20:16:50.524662781 +0100
+++ /var/tmp/diff_new_pack.4y8gaQ/_new  2020-12-11 20:16:50.544662790 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Sys-LoadAvg
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,37 +12,39 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
-%define cpan_name Sys-LoadAvg
 Name:           perl-Sys-LoadAvg
 Version:        0.03
 Release:        0
+%define cpan_name Sys-LoadAvg
 Summary:        Perl extension for accessing system CPU load averages
-License:        Artistic-1.0 or GPL-1.0+
+License:        Artistic-1.0 OR GPL-1.0-or-later
 Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/~jeremy/Sys-LoadAvg-0.03/LoadAvg.pm
-Source:         
http://search.cpan.org/CPAN/authors/id/J/JE/JEREMY/%{cpan_name}-%{version}.tar.gz
+URL:            https://metacpan.org/release/%{cpan_name}
+Source0:        
https://cpan.metacpan.org/authors/id/J/JE/JEREMY/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
+Patch0:         0001-enhance-loadavg-array-from-2-to-3-doubles.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %{perl_requires}
 
 %description
-Algorithm::Annotate generates a list that is useful for generating output
-similar to 'cvs annotate'.
+Module for accessing System load averages.
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+%patch0 -p1
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %check
-make %{?_smp_mflags} test
+make test
 
 %install
 %perl_make_install
@@ -51,5 +53,6 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
+%doc Changes README
 
 %changelog

++++++ 0001-enhance-loadavg-array-from-2-to-3-doubles.patch ++++++
From 2754541aba279ef6715f1f3adcd9b8e4881fc830 Mon Sep 17 00:00:00 2001
From: Frank Schreiner <[email protected]>
Date: Thu, 10 Dec 2020 07:49:09 +0100
Subject: [PATCH] enhance loadavg array from 2 to 3 doubles

Fixes: https://rt.cpan.org/Public/Bug/Display.html?id=120617

Without this patch on aarch64 the module crashes with the following message:

perl -e 'use Sys::LoadAvg qw( loadavg );loadavg();'
*** stack smashing detected ***: terminated
Aborted (core dumped)
---
 LoadAvg.xs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/LoadAvg.xs b/LoadAvg.xs
index 0cb1c40..2c4c48b 100644
--- a/LoadAvg.xs
+++ b/LoadAvg.xs
@@ -13,7 +13,7 @@ void
 loadavg()
   PROTOTYPE:
   PREINIT:
-    double loadavg[2];
+    double loadavg[3];
     int retval; 
     int i;
   PPCODE:
-- 
2.29.2

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
patches:
  0001-enhance-loadavg-array-from-2-to-3-doubles.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to