Hello community, here is the log from the commit of package perl-BSD-Resource for openSUSE:Factory checked in at 2015-10-30 13:43:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-BSD-Resource (Old) and /work/SRC/openSUSE:Factory/.perl-BSD-Resource.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-BSD-Resource" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-BSD-Resource/perl-BSD-Resource.changes 2013-07-29 17:45:32.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-BSD-Resource.new/perl-BSD-Resource.changes 2015-10-30 13:43:16.000000000 +0100 @@ -1,0 +2,7 @@ +Sat Oct 24 08:44:58 UTC 2015 - [email protected] + +- updated to 1.2908 + see /usr/share/doc/packages/perl-BSD-Resource/ChangeLog +- fix license - it's not apache + +------------------------------------------------------------------- Old: ---- BSD-Resource-1.2907.tar.gz New: ---- BSD-Resource-1.2908.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-BSD-Resource.spec ++++++ --- /var/tmp/diff_new_pack.zzzdo3/_old 2015-10-30 13:43:17.000000000 +0100 +++ /var/tmp/diff_new_pack.zzzdo3/_new 2015-10-30 13:43:17.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-BSD-Resource # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,18 +17,19 @@ Name: perl-BSD-Resource -Version: 1.2907 +Version: 1.2908 Release: 0 +#Upstream: This module free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0 or GNU Lesser General Public License 2.0. For more details, see the full text of the licenses at <http://www.perlfoundation.org/artistic_license_2_0>, and <http://www.gnu.org/licenses/gpl-2.0.html>. %define cpan_name BSD-Resource Summary: BSD process resource limit and priority functions -License: Apache-2.0 or LGPL-2.0 +License: Artistic-2.0 or LGPL-2.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/BSD-Resource/ -Source: http://www.cpan.org/authors/id/J/JH/JHI/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/J/JH/JHI/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(BSD::Resource) %{perl_requires} %description ++++++ BSD-Resource-1.2907.tar.gz -> BSD-Resource-1.2908.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2907/ChangeLog new/BSD-Resource-1.2908/ChangeLog --- old/BSD-Resource-1.2907/ChangeLog 2013-07-13 03:18:24.000000000 +0200 +++ new/BSD-Resource-1.2908/ChangeLog 2015-10-22 02:15:57.000000000 +0200 @@ -1,4 +1,27 @@ -2013-07-12 Jarkko Hietaniemi <[email protected]> +2015-10-21 Jarkko Hietaniemi <[email protected]> + + * Add more RLIMIT_ values from various systems, + especially from Linux 2.6: + + RLIMIT_MSGQUEUE + RLIMIT_NICE + RLIMIT_NPTS + RLIMIT_PTHREAD + RLIMIT_RTPRIO + RLIMIT_RTTIME + RLIMIT_SBSIZE + RLIMIT_SIGPENDING + RLIMIT_SWAP + + Check your system's setrlimit() documentation, + and BSD::Resource::get_rlimits(). + + * Add PRIO_THREAD, if available. + Check your system's setpriority() documentation. + + * Release 1.2908. + +2013-07-12 Jarkko Hietaniemi <[email protected]> * Address rt.cpan.org #86857: t/setrlimit.t failure Skip setrlimit() tests also if the hard limit is RLIM_INFINITY. @@ -9,35 +32,35 @@ * Skip number-of-files and stack setrlimit tests in Cygwin: the constants exist but the implementation doesn't really - seem to be there. Document this in the pod. Testing by dsolimano. + seem to be there. Document this in the pod. Testing by dsolimano. * For setrlimit tests involving byte sizes (memory or file size) round the byte sizes down to 4 kB boundaries. * Fix some pod nits. - + * Release 1.2906. 2013-06-22 Jarkko Hietaniemi <[email protected]> * Address rt.cpan.org #86334: typo fixes - + * Address rt.cpan.org #62504: Disable user/system timing tests if workload accumulate too little time * Attempt harder in getrusage.t to burn enough user and system time, refactor the "burn some cpu" utility into t/burn.pl, use that also in t/times.t. - + * Fix a testing problem in NetBSD for t/setrlimit.t, the tests were misnumbered. - + * Silence compilation warnings coming from Perl 5.18.0. - + * Clarify the license to be Artistic 2.0 or LGPL 2.0. - + * Regenerate ppport.h with Perl 5.18.0. - + * Release 1.2905. 2010-03-14 Jarkko Hietaniemi <[email protected]> @@ -45,7 +68,7 @@ * Address rt.cpan.org #53856: memory leak in get_rlimits() * Address rt.cpan.org #53859: clarify get_rlimits() docs - + * Release 1.2904. 2009-03-31 Jarkko Hietaniemi <[email protected]> @@ -53,7 +76,7 @@ * Address rt.cpan.org #44082: "Bug in compiler detection (Makefile.PL)" (for AIX xlc) Patch submitted in the report by rehsack at cpan.org. - + * Release 1.2903. 2008-12-30 Jarkko Hietaniemi <[email protected]> @@ -63,14 +86,14 @@ more memory-constrained systems (like 2MB or less of default stack) have slightly more chance of completing the test. The 0.75 also has more chance of aligning with page sizes. - + * The scalar context return of getrlimit() was documented to return an object, even though it really returned the soft limit, reported by [email protected]. Fixed the documentation. - + * Judging by the cpantesters reports no netbsd has a functional RLIMIT_STACK, so skipping the test in all of them. - + * Release 1.2902. 2008-01-29 Jarkko Hietaniemi <[email protected]> @@ -78,7 +101,7 @@ * netbsd-alpha does not have a functional RLIMIT_STACK, reported by David Cantrell. Skip the test, and document as a known issue. - + * Release 1.2901. 2008-01-27 Jarkko Hietaniemi <[email protected]> @@ -89,7 +112,7 @@ a value lower than we tried to set, since various systems might either enforce lower limits, or round up the limits. Added documentation on setrlimit() about this. - + * Allow calling getrlimit/setrlimit and getpriority/setpriority with the string names ("RLIMIT_NPROC", for example). @@ -99,9 +122,9 @@ * Tested also with older Perls, 5.005_05 and 5.6.2, in OS X. (5.005_04 didn't work, it creates but then cannot dynaload the .bundle files, go figure.) - + * Minor documentation tweaks and copyright year bumps. - + * Release 1.29. 2006-05-26 Jarkko Hietaniemi <[email protected]> @@ -119,7 +142,7 @@ tricks used are trying "ps -o pid,nice" and looking for $$, and if that fails, then trying whether the nice(1) is the GNU one, and if so, running it without arguments. - + * Release 1.27. 2006-05-21 Jarkko Hietaniemi <[email protected]> @@ -127,13 +150,13 @@ * Address rt.cpan.org #19298: bug in getrusage(): 'inblock' was misspelt as 'inlock' (the end result being that people looking for the 'inblock' field got zero) - + * For Mac OS X reword the message about the RLIM_NPROC test failure (or rather, the possible failure). Still a mystery under what exact conditions the test fails or succeeds. - + * Add Test::Pod and Test::Pod::Coverage tests. - + * Release 1.26. 2006-04-09 Jarkko Hietaniemi <[email protected]> @@ -144,10 +167,10 @@ * Address rt.cpan.org #13130: getpriority.t and setpriority.t assume priority = 0, solution hopefully portable. Now should work under e.g. "nice make test". - + * Add more verbosity to the case of the known rlimit.t test failure in Mac OS X. - + * Release 1.25. Sun Feb 29 16:51:34 2004 Jarkko Hietaniemi <[email protected]> @@ -156,7 +179,7 @@ under at least Mac OS X 10.3.2 the t/setrlimit.t subtest #8 may fail because of an OS bug. Also reorder the documentation a bit to collect all the known issues under one heading. - + * Release 1.24. Tue Oct 7 21:54:04 2003 Jarkko Hietaniemi <[email protected]> @@ -171,15 +194,15 @@ * Add RLIMIT_LOCKS. * Fix a typo s/RLIM_SAVEWD_MAX/RLIMIT_SAVED_MAX/ - + * Sort the @EXPORT list. - + * Release 1.22. Thu Dec 12 01:15:44 2002 Jarkko Hietaniemi <[email protected]> * Patches for NCR MP-RAS from [email protected]. - + * Release 1.21. Tue Nov 26 04:20:38 2002 Jarkko Hietaniemi <[email protected]> @@ -231,9 +254,9 @@ * Patch from Allen Smith to avoid -lbsd in IRIX since it potentially brings in harmful side effects regarding setpgrp/setgroups. - + * Mention the use of VERBOSE in the probe failure message. - + * Release 1.16. Thu May 9 04:18:09 2002 Jarkko Hietaniemi <[email protected]> @@ -252,7 +275,7 @@ * Alex J Avriette reported that in Darwin 5.2 the Makefile.PL dies with great noise. Simplify the resource header scan. - + * Release 1.13. Wed Jan 16 02:38:54 2002 Jarkko Hietaniemi <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2907/META.json new/BSD-Resource-1.2908/META.json --- old/BSD-Resource-1.2907/META.json 2013-07-13 03:21:54.000000000 +0200 +++ new/BSD-Resource-1.2908/META.json 2015-10-22 02:16:39.000000000 +0200 @@ -4,7 +4,7 @@ "unknown" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630", + "generated_by" : "ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.141170", "license" : [ "unknown" ], @@ -35,5 +35,5 @@ } }, "release_status" : "stable", - "version" : "1.2907" + "version" : "1.2908" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2907/META.yml new/BSD-Resource-1.2908/META.yml --- old/BSD-Resource-1.2907/META.yml 2013-07-13 03:21:53.000000000 +0200 +++ new/BSD-Resource-1.2908/META.yml 2015-10-22 02:16:39.000000000 +0200 @@ -3,19 +3,19 @@ author: - unknown build_requires: - ExtUtils::MakeMaker: 0 + ExtUtils::MakeMaker: '0' configure_requires: - ExtUtils::MakeMaker: 0 + ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630' +generated_by: 'ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.141170' license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: BSD-Resource no_index: directory: - t - inc requires: {} -version: 1.2907 +version: '1.2908' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2907/Resource.pm new/BSD-Resource-1.2908/Resource.pm --- old/BSD-Resource-1.2907/Resource.pm 2013-07-13 03:16:24.000000000 +0200 +++ new/BSD-Resource-1.2908/Resource.pm 2015-10-22 02:05:45.000000000 +0200 @@ -13,7 +13,7 @@ use strict; use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD $VERSION); -$VERSION = '1.2907'; +$VERSION = '1.2908'; use Carp; use AutoLoader; @@ -38,12 +38,21 @@ RLIMIT_FSIZE RLIMIT_LOCKS RLIMIT_MEMLOCK + RLIMIT_MSGQUEUE + RLIMIT_NICE RLIMIT_NOFILE RLIMIT_NPROC + RLIMIT_NPTS RLIMIT_OFILE RLIMIT_OPEN_MAX + RLIMIT_PTHREAD RLIMIT_RSS + RLIMIT_RTPRIO + RLIMIT_RTTIME + RLIMIT_SBSIZE + RLIMIT_SIGPENDING RLIMIT_STACK + RLIMIT_SWAP RLIMIT_TCACHE RLIMIT_VMEM RLIM_INFINITY @@ -253,6 +262,7 @@ RLIMIT_AS (virtual) address space bytes RLIMIT_VMEM virtual memory (space) bytes + RLIMIT_PTHREAD number of pthreads 1 RLIMIT_TCACHE maximum number of 1 cached threads @@ -261,11 +271,24 @@ RLIMIT_AIO_OPS maximum number 1 for POSIX AIO ops + RLIMIT_SBSIZE socket buffer size bytes + + RLIMIT_SWAP maximum swap size bytes + + RLIMIT_MSGQUEUE POSIX mq size bytes + + RLIMIT_RTPRIO maximum RT priority 1 + RLIMIT_RTTIME maximum RT time microseconds + RLIMIT_SIGPENDING pending signals 1 + B<What limits are available depends on the operating system>. + See below for C<get_rlimits()> on how to find out which limits are available, for the exact documentation consult the documentation of -your operating system. The two groups (C<NOFILE>, C<OFILE>, -C<OPEN_MAX>) and (C<AS>, C<VMEM>) are aliases within themselves. +your operating system (setrlimit documentation, usually). + +The two groups (C<NOFILE>, C<OFILE>, C<OPEN_MAX>) and (C<AS>, C<VMEM>) +are aliases within themselves. Two meta-resource-symbols might exist @@ -303,6 +326,9 @@ =head2 getpriority + # $pr_which can be PRIO_USER, PRIO_PROCESS, or PRIO_PGRP, + # and in some systems PRIO_THREAD + $nowpriority = getpriority($pr_which, $pr_who); # the default $pr_who is 0 (the current $pr_which) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2907/Resource.xs new/BSD-Resource-1.2908/Resource.xs --- old/BSD-Resource-1.2907/Resource.xs 2013-06-23 00:32:54.000000000 +0200 +++ new/BSD-Resource-1.2908/Resource.xs 2015-10-22 02:05:25.000000000 +0200 @@ -434,6 +434,8 @@ return 0; } +#define HV_STORE_RES(h, l) (void)hv_store(h, #l, sizeof(#l)-1, newSViv(l), 0) + MODULE = BSD::Resource PACKAGE = BSD::Resource PROTOTYPES: enable @@ -660,55 +662,79 @@ RETVAL = newHV(); sv_2mortal((SV*)RETVAL); #if defined(RLIMIT_AIO_MEM) || defined(HAS_RLIMIT_AIO_MEM) - (void)hv_store(RETVAL, "RLIMIT_AIO_MEM" , 14, newSViv(RLIMIT_AIO_MEM), 0); + HV_STORE_RES(RETVAL, RLIMIT_AIO_MEM); #endif #if defined(RLIMIT_AIO_OPS) || defined(HAS_RLIMIT_AIO_OPS) - (void)hv_store(RETVAL, "RLIMIT_AIO_OPS" , 14, newSViv(RLIMIT_AIO_OPS), 0); + HV_STORE_RES(RETVAL, RLIMIT_AIO_OPS); #endif #if defined(RLIMIT_AS) || defined(HAS_RLIMIT_AS) - (void)hv_store(RETVAL, "RLIMIT_AS" , 9, newSViv(RLIMIT_AS), 0); + HV_STORE_RES(RETVAL, RLIMIT_AS); #endif #if defined(RLIMIT_CORE) || defined(HAS_RLIMIT_CORE) - (void)hv_store(RETVAL, "RLIMIT_CORE" , 11, newSViv(RLIMIT_CORE), 0); + HV_STORE_RES(RETVAL, RLIMIT_CORE); #endif #if defined(RLIMIT_CPU) || defined(HAS_RLIMIT_CPU) - (void)hv_store(RETVAL, "RLIMIT_CPU" , 10, newSViv(RLIMIT_CPU), 0); + HV_STORE_RES(RETVAL, RLIMIT_CPU); #endif #if defined(RLIMIT_DATA) || defined(HAS_RLIMIT_DATA) - (void)hv_store(RETVAL, "RLIMIT_DATA" , 11, newSViv(RLIMIT_DATA), 0); + HV_STORE_RES(RETVAL, RLIMIT_DATA); #endif #if defined(RLIMIT_FSIZE) || defined(HAS_RLIMIT_FSIZE) - (void)hv_store(RETVAL, "RLIMIT_FSIZE" , 12, newSViv(RLIMIT_FSIZE), 0); + HV_STORE_RES(RETVAL, RLIMIT_FSIZE); #endif #if defined(RLIMIT_LOCKS) || defined(HAS_RLIMIT_LOCKS) - hv_store(RETVAL, "RLIMIT_LOCKS" , 12, newSViv(RLIMIT_LOCKS), 0); + HV_STORE_RES(RETVAL, RLIMIT_LOCKS); #endif #if defined(RLIMIT_MEMLOCK) || defined(HAS_RLIMIT_MEMLOCK) - (void)hv_store(RETVAL, "RLIMIT_MEMLOCK" , 14, newSViv(RLIMIT_MEMLOCK), 0); + HV_STORE_RES(RETVAL, RLIMIT_MEMLOCK); +#endif +#if defined(RLIMIT_MSGQUEUE) || defined(HAS_RLIMIT_MSGQUEUE) + HV_STORE_RES(RETVAL, RLIMIT_MSGQUEUE); +#endif +#if defined(RLIMIT_NICE) || defined(HAS_RLIMIT_NICE) + HV_STORE_RES(RETVAL, RLIMIT_NICE); #endif #if defined(RLIMIT_NOFILE) || defined(HAS_RLIMIT_NOFILE) - (void)hv_store(RETVAL, "RLIMIT_NOFILE" , 13, newSViv(RLIMIT_NOFILE), 0); + HV_STORE_RES(RETVAL, RLIMIT_NOFILE); #endif #if defined(RLIMIT_NPROC) || defined(HAS_RLIMIT_NPROC) - (void)hv_store(RETVAL, "RLIMIT_NPROC" , 12, newSViv(RLIMIT_NPROC), 0); + HV_STORE_RES(RETVAL, RLIMIT_NPROC); #endif #if defined(RLIMIT_OFILE) || defined(HAS_RLIMIT_OFILE) - (void)hv_store(RETVAL, "RLIMIT_OFILE" , 12, newSViv(RLIMIT_OFILE), 0); + HV_STORE_RES(RETVAL, RLIMIT_OFILE); #endif #if defined(RLIMIT_OPEN_MAX) || defined(HAS_RLIMIT_OPEN_MAX) - (void)hv_store(RETVAL, "RLIMIT_OPEN_MAX" , 15, newSViv(RLIMIT_OPEN_MAX), 0); + HV_STORE_RES(RETVAL, RLIMIT_OPEN_MAX); +#endif +#if defined(RLIMIT_PTHREAD) || defined(HAS_RLIMIT_PTHREAD) + HV_STORE_RES(RETVAL, RLIMIT_PTHREAD); #endif #if defined(RLIMIT_RSS) || defined(HAS_RLIMIT_RSS) - (void)hv_store(RETVAL, "RLIMIT_RSS" , 10, newSViv(RLIMIT_RSS), 0); + HV_STORE_RES(RETVAL, RLIMIT_RSS); +#endif +#if defined(RLIMIT_RTPRIO) || defined(HAS_RLIMIT_RTPRIO) + HV_STORE_RES(RETVAL, RLIMIT_RTPRIO); +#endif +#if defined(RLIMIT_RTTIME) || defined(HAS_RLIMIT_RTTIME) + HV_STORE_RES(RETVAL, RLIMIT_RTTIME); +#endif +#if defined(RLIMIT_SBSIZE) || defined(HAS_RLIMIT_SBSIZE) + HV_STORE_RES(RETVAL, RLIMIT_SBSIZE); +#endif +#if defined(RLIMIT_SIGPENDING) || defined(HAS_RLIMIT_SIGPENDING) + HV_STORE_RES(RETVAL, RLIMIT_SIGPENDING); #endif #if defined(RLIMIT_STACK) || defined(HAS_RLIMIT_STACK) - (void)hv_store(RETVAL, "RLIMIT_STACK" , 12, newSViv(RLIMIT_STACK), 0); + HV_STORE_RES(RETVAL, RLIMIT_STACK); +#endif +#if defined(RLIMIT_SWAP) || defined(HAS_RLIMIT_SWAP) + HV_STORE_RES(RETVAL, RLIMIT_SWAP); #endif #if defined(RLIMIT_TCACHE) || defined(HAS_RLIMIT_TCACHE) - (void)hv_store(RETVAL, "RLIMIT_TCACHE" , 13, newSViv(RLIMIT_TCACHE), 0); + HV_STORE_RES(RETVAL, RLIMIT_TCACHE); #endif #if defined(RLIMIT_VMEM) || defined(HAS_RLIMIT_VMEM) - (void)hv_store(RETVAL, "RLIMIT_VMEM" , 11, newSViv(RLIMIT_VMEM), 0); + HV_STORE_RES(RETVAL, RLIMIT_VMEM); #endif OUTPUT: RETVAL @@ -719,13 +745,16 @@ RETVAL = newHV(); sv_2mortal((SV*)RETVAL); #if defined(PRIO_PROCESS) - (void)hv_store(RETVAL, "PRIO_PROCESS", 12, newSViv(PRIO_PROCESS), 0); + HV_STORE_RES(RETVAL, PRIO_PROCESS); #endif #if defined(PRIO_PGRP) - (void)hv_store(RETVAL, "PRIO_PGRP", 9, newSViv(PRIO_PGRP), 0); + HV_STORE_RES(RETVAL, PRIO_PGRP); +#endif +#if defined(PRIO_THREAD) + HV_STORE_RES(RETVAL, PRIO_THREAD); #endif #if defined(PRIO_USER) - (void)hv_store(RETVAL, "PRIO_USER", 9, newSViv(PRIO_USER), 0); + HV_STORE_RES(RETVAL, PRIO_USER); #endif OUTPUT: RETVAL ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.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_install: |- # sed on %{name}.files license: Artistic-2.0 or LGPL-2.0 #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module
