Hello community, here is the log from the commit of package perl-BSD-Resource for openSUSE:Factory checked in at 2016-05-30 09:57:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2015-11-17 14:23:31.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-BSD-Resource.new/perl-BSD-Resource.changes 2016-05-30 09:57:34.000000000 +0200 @@ -1,0 +2,29 @@ +Sat May 28 09:26:03 UTC 2016 - [email protected] + +- updated to 1.2910 + see /usr/share/doc/packages/perl-BSD-Resource/ChangeLog + + 2016-05-12 Jarkko Hietaniemi <[email protected]> + + * Add RLIMIT_RSESTACK from hpux/ia64, and RLIMIT_FREEMEM + and RLIMIT_NTHR from QNX. + + * Add more PRIO_ values from Solaris: + + PRIO_CONTRACT + PRIO_LWP + PRIO_PROJECT + PRIO_SESSION + PRIO_TASK + PRIO_ZONE + + * HPUX: Do not unconditionally define the RLIMIT_ and RLIM_NLIMITS + + * Add missing word ('enough') in getrusage.t test skippage. + + * Repoint all the license pointers to COPYRIGHT and LICENSE + in Resource.pm, add LICENSE file as a new pointer. + + * Release 1.2910. + +------------------------------------------------------------------- Old: ---- BSD-Resource-1.2909.tar.gz New: ---- BSD-Resource-1.2910.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-BSD-Resource.spec ++++++ --- /var/tmp/diff_new_pack.qIMKXq/_old 2016-05-30 09:57:35.000000000 +0200 +++ /var/tmp/diff_new_pack.qIMKXq/_new 2016-05-30 09:57:35.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-BSD-Resource # -# Copyright (c) 2015 SUSE LINUX 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 @@ -17,7 +17,7 @@ Name: perl-BSD-Resource -Version: 1.2909 +Version: 1.2910 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 @@ -37,7 +37,7 @@ %prep %setup -q -n %{cpan_name}-%{version} -find . -type f -print0 | xargs -0 chmod 644 +find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -53,6 +53,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc ChangeLog README +%doc ChangeLog LICENSE README %changelog ++++++ BSD-Resource-1.2909.tar.gz -> BSD-Resource-1.2910.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/ChangeLog new/BSD-Resource-1.2910/ChangeLog --- old/BSD-Resource-1.2909/ChangeLog 2015-11-15 22:46:50.000000000 +0100 +++ new/BSD-Resource-1.2910/ChangeLog 2016-05-13 02:25:17.000000000 +0200 @@ -1,9 +1,34 @@ +2016-05-12 Jarkko Hietaniemi <[email protected]> + + * Add RLIMIT_RSESTACK from hpux/ia64, and RLIMIT_FREEMEM + and RLIMIT_NTHR from QNX. + + * Add more PRIO_ values from Solaris: + + PRIO_CONTRACT + PRIO_LWP + PRIO_PROJECT + PRIO_SESSION + PRIO_TASK + PRIO_ZONE + + * HPUX: Do not unconditionally define the RLIMIT_ and RLIM_NLIMITS + + * Add missing word ('enough') in getrusage.t test skippage. + + * Repoint all the license pointers to COPYRIGHT and LICENSE + in Resource.pm, add LICENSE file as a new pointer. + + * Release 1.2910. + 2015-11-15 Jarkko Hietaniemi <[email protected]> * The added RLIMIT_ values were not added quite right. Our own tests didn't detect this, but mod_perl2 ones did [cpan #108955] - + + * Release 1.2909. + 2015-10-21 Jarkko Hietaniemi <[email protected]> * Add more RLIMIT_ values from various systems, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/LICENSE new/BSD-Resource-1.2910/LICENSE --- old/BSD-Resource-1.2909/LICENSE 1970-01-01 01:00:00.000000000 +0100 +++ new/BSD-Resource-1.2910/LICENSE 2016-04-25 03:09:30.000000000 +0200 @@ -0,0 +1 @@ +See COPYRIGHT and LICENSE in Resource.pm. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/MANIFEST new/BSD-Resource-1.2910/MANIFEST --- old/BSD-Resource-1.2909/MANIFEST 2015-11-15 22:31:02.000000000 +0100 +++ new/BSD-Resource-1.2910/MANIFEST 2016-04-25 12:39:19.000000000 +0200 @@ -1,3 +1,4 @@ +LICENSE MANIFEST Makefile.PL ppport.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/META.json new/BSD-Resource-1.2910/META.json --- old/BSD-Resource-1.2909/META.json 2015-11-15 23:18:47.000000000 +0100 +++ new/BSD-Resource-1.2910/META.json 2016-05-13 03:14:17.000000000 +0200 @@ -35,6 +35,6 @@ } }, "release_status" : "stable", - "version" : "1.2909", + "version" : "1.2910", "x_serialization_backend" : "JSON::PP version 2.27300" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/META.yml new/BSD-Resource-1.2910/META.yml --- old/BSD-Resource-1.2909/META.yml 2015-11-15 23:18:47.000000000 +0100 +++ new/BSD-Resource-1.2910/META.yml 2016-05-13 03:14:17.000000000 +0200 @@ -18,5 +18,5 @@ - t - inc requires: {} -version: '1.2909' +version: '1.2910' x_serialization_backend: 'CPAN::Meta::YAML version 0.017' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/Makefile.PL new/BSD-Resource-1.2910/Makefile.PL --- old/BSD-Resource-1.2909/Makefile.PL 2009-03-31 18:14:40.000000000 +0200 +++ new/BSD-Resource-1.2910/Makefile.PL 2016-04-25 12:54:00.000000000 +0200 @@ -78,9 +78,9 @@ #include <sys/resource.h> static int foo; EOM - print "You do have <sys/resource.h>. Excellent.\n"; - return 1; -} + print "You do have <sys/resource.h>. Excellent.\n"; + return 1; + } # Solaris 1 weirdo header @@ -88,9 +88,9 @@ #include <sys/rusage.h> static int foo; EOM - print "You have <sys/rusage.h>. Are you an old Solaris by any chance?\n"; - return 2; -} + print "You have <sys/rusage.h>. Are you an old Solaris by any chance?\n"; + return 2; + } return 0; } @@ -135,21 +135,24 @@ my $tmp = "rlim$$"; my $not = 0; - print "Checking to see whether you have rlim_t...\n"; - my $has = try_compile_and_link(<<EOM); + print "Checking to see whether you have rlim_t...\n"; + my $has = try_compile_and_link(<<EOM); #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifdef I_SYS_TYPES #include <sys/types.h> #endif +#ifdef I_SYS_RUSAGE +#include <sys/rusage.h> +#else #include <sys/resource.h> +#endif static rlim_t foo = 0; EOM if ($has) { - $DEFINE .= ' -DRlim_t=rlim_t'; - } else { - print "not "; + $DEFINE .= " -DRlim_t=rlim_t"; + } else { $not = 1; } @@ -157,11 +160,11 @@ print "not " if $not; print "to have rlim_t defined ("; print $not ? "this is okay" : "which is nice"; - print ").\n\n"; + print ").\n"; } sub configure { - find_Rlim_t; + find_Rlim_t(); if ($^O eq 'solaris' && $Config{ccflags} =~ /-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64/ && $Config{use64bitall} ne 'define') { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/Resource.pm new/BSD-Resource-1.2910/Resource.pm --- old/BSD-Resource-1.2909/Resource.pm 2015-11-15 22:44:32.000000000 +0100 +++ new/BSD-Resource-1.2910/Resource.pm 2016-04-25 12:43:50.000000000 +0200 @@ -1,7 +1,6 @@ # -# Copyright (c) 1995-2015 Jarkko Hietaniemi. All rights reserved. -# This program is free software; you can redistribute it and/or -# modify it under the same terms as Perl itself. +# Copyright (c) 1995-2016 Jarkko Hietaniemi. All rights reserved. +# For license see COPYRIGHT and LICENSE later in this file. # # Resource.pm # @@ -13,7 +12,7 @@ use strict; use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD $VERSION); -$VERSION = '1.2909'; +$VERSION = '1.2910'; use Carp; use AutoLoader; @@ -24,11 +23,17 @@ @ISA = qw(Exporter DynaLoader); @EXPORT = qw( + PRIO_CONTRACT + PRIO_LWP PRIO_MAX PRIO_MIN PRIO_PGRP PRIO_PROCESS + PRIO_PROJECT + PRIO_SESSION + PRIO_TASK PRIO_USER + PRIO_ZONE RLIMIT_AIO_MEM RLIMIT_AIO_OPS RLIMIT_AS @@ -36,6 +41,7 @@ RLIMIT_CPU RLIMIT_DATA RLIMIT_FSIZE + RLIMIT_FREEMEM RLIMIT_LOCKS RLIMIT_MEMLOCK RLIMIT_MSGQUEUE @@ -43,9 +49,11 @@ RLIMIT_NOFILE RLIMIT_NPROC RLIMIT_NPTS + RLIMIT_NTHR RLIMIT_OFILE RLIMIT_OPEN_MAX RLIMIT_PTHREAD + RLIMIT_RSESTACK RLIMIT_RSS RLIMIT_RTPRIO RLIMIT_RTTIME @@ -66,7 +74,7 @@ get_rlimits getpriority getrlimit - getrusage + getrusage setpriority setrlimit ); @@ -271,9 +279,16 @@ RLIMIT_AIO_OPS maximum number 1 for POSIX AIO ops + RLIMIT_FREEMEM portion of the total memory + + RLIMIT_NTHR maximum number of 1 + threads + RLIMIT_NPTS maximum number of 1 pseudo-terminals + RLIMIT_RSESTACK RSE stack size bytes + RLIMIT_SBSIZE socket buffer size bytes RLIMIT_SWAP maximum swap size bytes @@ -520,7 +535,7 @@ =head1 COPYRIGHT AND LICENSE -Copyright 1995-2015 Jarkko Hietaniemi All Rights Reserved +Copyright 1995-2016 Jarkko Hietaniemi All Rights Reserved 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/Resource.xs new/BSD-Resource-1.2910/Resource.xs --- old/BSD-Resource-1.2909/Resource.xs 2015-11-15 22:39:28.000000000 +0100 +++ new/BSD-Resource-1.2910/Resource.xs 2016-04-25 12:47:52.000000000 +0200 @@ -1,7 +1,6 @@ /* - * Copyright (c) 1995-2015 Jarkko Hietaniemi. All rights reserved. - * This program is free software; you can redistribute it and/or - * modify it under the same terms as Perl itself. + * Copyright (c) 1995-2016 Jarkko Hietaniemi. All rights reserved. + * For license see COPYRIGHT and LICENSE in Resource.pm. * * Resource.xs * @@ -101,16 +100,36 @@ /* there is getrusage() in HPUX but only as an indirect syscall */ # define TRY_GETRUSAGE_AS_SYSCALL /* some rlimits exist (but are officially unsupported by HP) */ -# define RLIMIT_CPU 0 -# define RLIMIT_FSIZE 1 -# define RLIMIT_DATA 2 -# define RLIMIT_STACK 3 -# define RLIMIT_CORE 4 -# define RLIMIT_RSS 5 -# define RLIMIT_NOFILE 6 -# define RLIMIT_OPEN_MAX RLIMIT_NOFILE -# define RLIM_NLIMITS 7 -# define RLIM_INFINITY 0x7fffffff +# ifndef RLIMIT_CPU +# define RLIMIT_CPU 0 +# endif +# ifndef RLIMIT_FSIZE +# define RLIMIT_FSIZE 1 +# endif +# ifndef RLIMIT_DATA +# define RLIMIT_DATA 2 +# endif +# ifndef RLIMIT_STACK +# define RLIMIT_STACK 3 +# endif +# ifndef RLIMIT_CORE +# define RLIMIT_CORE 4 +# endif +# ifndef RLIMIT_RSS +# define RLIMIT_RSS 5 +# endif +# ifndef RLIMIT_NOFILE +# define RLIMIT_NOFILE 6 +# endif +# ifndef RLIMIT_OPEN_MAX +# define RLIMIT_OPEN_MAX RLIMIT_NOFILE +# endif +# ifndef RLIM_NLIMITS +# define RLIM_NLIMITS 7 +# endif +# ifndef RLIM_INFINITY +# define RLIM_INFINITY 0x7fffffff +# endif #endif #ifdef __linux__ @@ -189,11 +208,11 @@ #endif #ifndef HAS_GETRLIMIT -#define _getrlimit(a,b) not_here("getrlimit") +#define _getrlimit(a) not_here("getrlimit") #endif #ifndef HAS_GETRUSAGE -#define _getrusage(a,b) not_here("getrusage") +#define _getrusage(a) not_here("getrusage") #endif #ifndef HAS_SETPRIORITY @@ -201,7 +220,7 @@ #endif #ifndef HAS_SETRLIMIT -#define _setrlimit(a,b) not_here("setrlimit") +#define _setrlimit(a,b,c) not_here("setrlimit") #endif static int @@ -235,6 +254,18 @@ break; case 'P': if (strnEQ(name, "PRIO_", 5)) { + if (strEQ(name, "PRIO_CONTRACT")) +#if defined(PRIO_CONTRACT) || defined(HAS_PRIO_CONTRACT) + return PRIO_CONTRACT; +#else + goto not_there; +#endif + if (strEQ(name, "PRIO_LWP")) +#if defined(PRIO_LWP) || defined(HAS_PRIO_LWP) + return PRIO_LWP; +#else + goto not_there; +#endif if (strEQ(name, "PRIO_MIN")) #if defined(PRIO_MIN) || defined(HAS_PRIO_MIN) return PRIO_MIN; @@ -247,12 +278,6 @@ #else goto not_there; #endif - if (strEQ(name, "PRIO_USER")) -#if defined(PRIO_USER) || defined(HAS_PRIO_USER) - return PRIO_USER; -#else - goto not_there; -#endif if (strEQ(name, "PRIO_PGRP")) #if defined(PRIO_PGRP) || defined(HAS_PRIO_PGRP) return PRIO_PGRP; @@ -265,6 +290,36 @@ #else goto not_there; #endif + if (strEQ(name, "PRIO_PROJECT")) +#if defined(PRIO_PROJECT) || defined(HAS_PRIO_PROJECT) + return PRIO_PROJECT; +#else + goto not_there; +#endif + if (strEQ(name, "PRIO_SESSION")) +#if defined(PRIO_SESSION) || defined(HAS_PRIO_SESSION) + return PRIO_SESSION; +#else + goto not_there; +#endif + if (strEQ(name, "PRIO_USER")) +#if defined(PRIO_USER) || defined(HAS_PRIO_USER) + return PRIO_USER; +#else + goto not_there; +#endif + if (strEQ(name, "PRIO_USER")) +#if defined(PRIO_USER) || defined(HAS_PRIO_USER) + return PRIO_USER; +#else + goto not_there; +#endif + if (strEQ(name, "PRIO_ZONE")) +#if defined(PRIO_ZONE) || defined(HAS_PRIO_ZONE) + return PRIO_ZONE; +#else + goto not_there; +#endif } goto not_there; case 'R': @@ -305,6 +360,12 @@ #else goto not_there; #endif + if (strEQ(name, "RLIMIT_FREEMEM")) +#if defined(RLIMIT_FREEMEM) || defined(HAS_RLIMIT_FREEMEM) + return RLIMIT_FREEMEM; +#else + goto not_there; +#endif if (strEQ(name, "RLIMIT_FSIZE")) #if defined(RLIMIT_FSIZE) || defined(HAS_RLIMIT_FSIZE) return RLIMIT_FSIZE; @@ -371,6 +432,12 @@ #else goto not_there; #endif + if (strEQ(name, "RLIMIT_RSESTACK")) +#if defined(RLIMIT_RSESTACK) || defined(HAS_RLIMIT_RSESTACK) + return RLIMIT_RSESTACK; +#else + goto not_there; +#endif if (strEQ(name, "RLIMIT_RSS")) #if defined(RLIMIT_RSS) || defined(HAS_RLIMIT_RSS) return RLIMIT_RSS; @@ -736,6 +803,9 @@ #if defined(RLIMIT_FSIZE) || defined(HAS_RLIMIT_FSIZE) HV_STORE_RES(RETVAL, RLIMIT_FSIZE); #endif +#if defined(RLIMIT_FSIZE) || defined(HAS_RLIMIT_FREEMEM) + HV_STORE_RES(RETVAL, RLIMIT_FSIZE); +#endif #if defined(RLIMIT_LOCKS) || defined(HAS_RLIMIT_LOCKS) HV_STORE_RES(RETVAL, RLIMIT_LOCKS); #endif @@ -757,6 +827,9 @@ #if defined(RLIMIT_NPTS) || defined(HAS_RLIMIT_NPTS) HV_STORE_RES(RETVAL, RLIMIT_NPTS); #endif +#if defined(RLIMIT_NPTS) || defined(HAS_RLIMIT_NTHR) + HV_STORE_RES(RETVAL, RLIMIT_NPTS); +#endif #if defined(RLIMIT_OFILE) || defined(HAS_RLIMIT_OFILE) HV_STORE_RES(RETVAL, RLIMIT_OFILE); #endif @@ -769,6 +842,9 @@ #if defined(RLIMIT_RSS) || defined(HAS_RLIMIT_RSS) HV_STORE_RES(RETVAL, RLIMIT_RSS); #endif +#if defined(RLIMIT_RSESTACK) || defined(HAS_RLIMIT_RSESTACK) + HV_STORE_RES(RETVAL, RLIMIT_RSESTACK); +#endif #if defined(RLIMIT_RTPRIO) || defined(HAS_RLIMIT_RTPRIO) HV_STORE_RES(RETVAL, RLIMIT_RTPRIO); #endif @@ -801,17 +877,35 @@ CODE: RETVAL = newHV(); sv_2mortal((SV*)RETVAL); -#if defined(PRIO_PROCESS) - HV_STORE_RES(RETVAL, PRIO_PROCESS); +#if defined(PRIO_CONTRACT) + HV_STORE_RES(RETVAL, PRIO_CONTRACT); +#endif +#if defined(PRIO_LWP) + HV_STORE_RES(RETVAL, PRIO_LWP); #endif #if defined(PRIO_PGRP) HV_STORE_RES(RETVAL, PRIO_PGRP); #endif +#if defined(PRIO_PROCESS) + HV_STORE_RES(RETVAL, PRIO_PROCESS); +#endif +#if defined(PRIO_PROJECT) + HV_STORE_RES(RETVAL, PRIO_PROJECT); +#endif +#if defined(PRIO_SESSION) + HV_STORE_RES(RETVAL, PRIO_SESSION); +#endif #if defined(PRIO_THREAD) HV_STORE_RES(RETVAL, PRIO_THREAD); #endif +#if defined(PRIO_TASK) + HV_STORE_RES(RETVAL, PRIO_TASK); +#endif #if defined(PRIO_USER) HV_STORE_RES(RETVAL, PRIO_USER); #endif +#if defined(PRIO_ZONE) + HV_STORE_RES(RETVAL, PRIO_ZONE); +#endif OUTPUT: RETVAL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BSD-Resource-1.2909/t/getrusage.t new/BSD-Resource-1.2910/t/getrusage.t --- old/BSD-Resource-1.2909/t/getrusage.t 2013-06-25 02:34:35.000000000 +0200 +++ new/BSD-Resource-1.2910/t/getrusage.t 2016-04-25 03:27:00.000000000 +0200 @@ -41,7 +41,7 @@ exit; } if ($ru[1] < 0.5) { - print "1..0 # SKIP Not system time accumulated for test\n"; + print "1..0 # SKIP Not enough system time accumulated for test\n"; exit; } print "1..2\n";
