Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Linux-Inotify2 for openSUSE:Factory checked in at 2021-08-03 22:48:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Linux-Inotify2 (Old) and /work/SRC/openSUSE:Factory/.perl-Linux-Inotify2.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Linux-Inotify2" Tue Aug 3 22:48:35 2021 rev:30 rq:909807 version:2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Linux-Inotify2/perl-Linux-Inotify2.changes 2019-12-10 22:43:45.073779555 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Linux-Inotify2.new.1899/perl-Linux-Inotify2.changes 2021-08-03 22:48:43.000498619 +0200 @@ -1,0 +2,12 @@ +Sun Aug 1 03:07:57 UTC 2021 - Tina M??ller <timueller+p...@suse.de> + +- updated to 2.3 + see /usr/share/doc/packages/perl-Linux-Inotify2/Changes + + 2.3 Sat Jul 31 13:45:51 CEST 2021 + - store a filehandle internally so it gets perl's CLOEXEC flag as needed. also + gets rid of the destructor and the internal close function for added space + savings (reported by Eric Wong). + - add new ->fh accessor. + +------------------------------------------------------------------- Old: ---- Linux-Inotify2-2.2.tar.gz New: ---- Linux-Inotify2-2.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Linux-Inotify2.spec ++++++ --- /var/tmp/diff_new_pack.IKIsm0/_old 2021-08-03 22:48:43.980497437 +0200 +++ /var/tmp/diff_new_pack.IKIsm0/_new 2021-08-03 22:48:43.984497432 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Linux-Inotify2 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,16 @@ # +%define cpan_name Linux-Inotify2 Name: perl-Linux-Inotify2 -Version: 2.2 +Version: 2.3 Release: 0 #Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later) -%define cpan_name Linux-Inotify2 Summary: Scalable directory/file change notification License: GPL-1.0-or-later OR Artistic-1.0 -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} +URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(common::sense) @@ -51,12 +49,12 @@ see this LWN article: https://lwn.net/Articles/605128/. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -make %{?_smp_mflags} +%make_build %check make test @@ -67,7 +65,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %license COPYING ++++++ Linux-Inotify2-2.2.tar.gz -> Linux-Inotify2-2.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Linux-Inotify2-2.2/Changes new/Linux-Inotify2-2.3/Changes --- old/Linux-Inotify2-2.2/Changes 2019-12-09 04:09:14.000000000 +0100 +++ new/Linux-Inotify2-2.3/Changes 2021-07-31 13:46:00.000000000 +0200 @@ -3,6 +3,12 @@ TODO: document move/renaming issues for fullname TODO: find_watchers($path), or maybe just ->watchers +2.3 Sat Jul 31 13:45:51 CEST 2021 + - store a filehandle internally so it gets perl's CLOEXEC flag as needed. also + gets rid of the destructor and the internal close function for added space + savings (reported by Eric Wong). + - add new ->fh accessor. + 2.2 Mon Dec 9 04:09:05 CET 2019 - define IN_EXCL_UNLINK to 0 if it is missing, for the benefit of antique systems that lack this symbol. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Linux-Inotify2-2.2/Inotify2.pm new/Linux-Inotify2-2.3/Inotify2.pm --- old/Linux-Inotify2-2.2/Inotify2.pm 2019-12-09 04:09:32.000000000 +0100 +++ new/Linux-Inotify2-2.3/Inotify2.pm 2021-07-28 18:33:47.000000000 +0200 @@ -80,7 +80,7 @@ use Exporter qw(import); BEGIN { - our $VERSION = '2.2'; + our $VERSION = '2.3'; our @EXPORT = qw( IN_ACCESS IN_MODIFY IN_ATTRIB IN_CLOSE_WRITE IN_CLOSE_NOWRITE IN_OPEN IN_MOVED_FROM IN_MOVED_TO @@ -123,7 +123,10 @@ return unless $fd >= 0; - bless { fd => $fd }, $class + open my $fh, "<&=", $fd + or die "cannot open fd $fd as perl handle\n"; + + bless { fd => $fd, fh => $fh }, $class } =item $watch = $inotify->watch ($name, $mask[, $cb]) @@ -214,12 +217,20 @@ mode, you are responsible for calling the C<poll> method when this file descriptor becomes ready for reading. +=item $inotify->fh + +Similar to C<fileno>, but returns a perl file handle instead. + =cut sub fileno { $_[0]{fd} } +sub fh { + $_[0]{fh} +} + =item $inotify->blocking ($blocking) Clears ($blocking true) or sets ($blocking false) the C<O_NONBLOCK> flag on the file descriptor. @@ -336,10 +347,6 @@ } } -sub DESTROY { - inotify_close $_[0]{fd} -} - =back =head2 The Linux::Inotify2::Event Class diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Linux-Inotify2-2.2/Inotify2.xs new/Linux-Inotify2-2.3/Inotify2.xs --- old/Linux-Inotify2-2.2/Inotify2.xs 2019-03-11 16:44:07.000000000 +0100 +++ new/Linux-Inotify2-2.3/Inotify2.xs 2021-07-28 18:27:36.000000000 +0200 @@ -55,11 +55,6 @@ int inotify_init () -void -inotify_close (int fd) - CODE: - close (fd); - int inotify_add_watch (int fd, char *name, U32 mask) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Linux-Inotify2-2.2/META.json new/Linux-Inotify2-2.3/META.json --- old/Linux-Inotify2-2.2/META.json 2019-12-09 04:09:36.000000000 +0100 +++ new/Linux-Inotify2-2.3/META.json 2021-07-31 13:46:07.000000000 +0200 @@ -37,5 +37,5 @@ } }, "release_status" : "stable", - "version" : "2.2" + "version" : "2.3" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Linux-Inotify2-2.2/META.yml new/Linux-Inotify2-2.3/META.yml --- old/Linux-Inotify2-2.2/META.yml 2019-12-09 04:09:36.000000000 +0100 +++ new/Linux-Inotify2-2.3/META.yml 2021-07-31 13:46:07.000000000 +0200 @@ -19,4 +19,4 @@ - inc requires: common::sense: '0' -version: '2.2' +version: '2.3' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Linux-Inotify2-2.2/README new/Linux-Inotify2-2.3/README --- old/Linux-Inotify2-2.2/README 2019-12-09 04:09:37.000000000 +0100 +++ new/Linux-Inotify2-2.3/README 2021-07-31 13:46:07.000000000 +0200 @@ -143,6 +143,9 @@ non-blocking mode, you are responsible for calling the "poll" method when this file descriptor becomes ready for reading. + $inotify->fh + Similar to "fileno", but returns a perl file handle instead. + $inotify->blocking ($blocking) Clears ($blocking true) or sets ($blocking false) the "O_NONBLOCK" flag on the file descriptor.