diff -Nru libfile-tee-perl-0.07/debian/changelog libfile-tee-perl-0.07/debian/changelog --- libfile-tee-perl-0.07/debian/changelog 2012-11-03 13:37:58.000000000 +0000 +++ libfile-tee-perl-0.07/debian/changelog 2017-01-03 17:44:57.000000000 +0000 @@ -1,3 +1,29 @@ +libfile-tee-perl (0.07-2) unstable; urgency=medium + + * Team upload. + + [ Salvatore Bonaccorso ] + * Change Vcs-Git to canonical URI (git://anonscm.debian.org) + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ gregor herrmann ] + * Strip trailing slash from metacpan URLs. + + [ Salvatore Bonaccorso ] + * Update Vcs-Browser URL to cgit web frontend + * debian/control: Use HTTPS transport protocol for Vcs-Git URI + + [ gregor herrmann ] + * debian/copyright: change Copyright-Format 1.0 URL to HTTPS. + * Add patch to fix a race condition with the SIGINT handler. + Thanks to Niko Tyni for the patch. (Closes: #834912) + * Mark package as autopkgtest-able. + * Declare compliance with Debian Policy 3.9.8. + * Bump debhelper compatibility level to 9. + * Fix typo in long description. Thanks to lintian. + + -- gregor herrmann Tue, 03 Jan 2017 18:44:57 +0100 + libfile-tee-perl (0.07-1) unstable; urgency=low * Initial Release. (Closes: #692090) diff -Nru libfile-tee-perl-0.07/debian/compat libfile-tee-perl-0.07/debian/compat --- libfile-tee-perl-0.07/debian/compat 2012-11-03 13:37:58.000000000 +0000 +++ libfile-tee-perl-0.07/debian/compat 2017-01-03 17:44:57.000000000 +0000 @@ -1 +1 @@ -8 +9 diff -Nru libfile-tee-perl-0.07/debian/control libfile-tee-perl-0.07/debian/control --- libfile-tee-perl-0.07/debian/control 2012-11-03 13:37:58.000000000 +0000 +++ libfile-tee-perl-0.07/debian/control 2017-01-03 17:44:57.000000000 +0000 @@ -1,23 +1,25 @@ Source: libfile-tee-perl -Section: perl -Priority: optional Maintainer: Debian Perl Group Uploaders: Dima Kogan -Build-Depends: debhelper (>= 8) +Section: perl +Testsuite: autopkgtest-pkg-perl +Priority: optional +Build-Depends: debhelper (>= 9) Build-Depends-Indep: perl -Standards-Version: 3.9.4 -Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libfile-tee-perl.git -Vcs-Git: git://git.debian.org/pkg-perl/packages/libfile-tee-perl.git -Homepage: http://search.cpan.org/dist/File-Tee/ +Standards-Version: 3.9.8 +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libfile-tee-perl.git +Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libfile-tee-perl.git +Homepage: https://metacpan.org/release/File-Tee Package: libfile-tee-perl Architecture: all -Depends: ${misc:Depends}, ${perl:Depends} +Depends: ${misc:Depends}, + ${perl:Depends} Description: Perl module to duplicate streams like the tee unix command File::Tee is able to replicate data written to a Perl stream into another streams. It is the Perl equivalent of the shell utility tee(1). . - It is implemeted around fork, creating a new process for every tee'ed stream. + It is implemented around fork, creating a new process for every tee'ed stream. That way, there are no problems handling the output generated by external programs run with system|perlfunc/system or by XS modules that don't go through perlio. diff -Nru libfile-tee-perl-0.07/debian/copyright libfile-tee-perl-0.07/debian/copyright --- libfile-tee-perl-0.07/debian/copyright 2012-11-03 13:37:58.000000000 +0000 +++ libfile-tee-perl-0.07/debian/copyright 2017-01-03 17:44:57.000000000 +0000 @@ -1,6 +1,6 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: File-Tee -Source: http://search.cpan.org/dist/File-Tee/ +Source: https://metacpan.org/release/File-Tee Upstream-Contact: Salvador Fandino Files: * diff -Nru libfile-tee-perl-0.07/debian/gbp.conf libfile-tee-perl-0.07/debian/gbp.conf --- libfile-tee-perl-0.07/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ libfile-tee-perl-0.07/debian/gbp.conf 2017-01-03 17:44:57.000000000 +0000 @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff -Nru libfile-tee-perl-0.07/debian/patches/0001-fixed-some-documentation-spelling-errors.patch libfile-tee-perl-0.07/debian/patches/0001-fixed-some-documentation-spelling-errors.patch --- libfile-tee-perl-0.07/debian/patches/0001-fixed-some-documentation-spelling-errors.patch 2012-11-03 13:37:58.000000000 +0000 +++ libfile-tee-perl-0.07/debian/patches/0001-fixed-some-documentation-spelling-errors.patch 2017-01-03 17:44:57.000000000 +0000 @@ -1,7 +1,8 @@ From: Dima Kogan Date: Fri, 2 Nov 2012 20:58:48 -0700 Subject: fixed some documentation spelling errors -Origin: File::Tee 0.07 from CPAN +Origin: vendor, http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libfile-tee-perl.git;a=blob;f=debian/patches/0001-fixed-some-documentation-spelling-errors.patch;h=6925986ce8cccd40f6a4addbbcc146b3cec8449d;hb=HEAD +Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=80597 --- lib/File/Tee.pm | 14 +++++++------- diff -Nru libfile-tee-perl-0.07/debian/patches/0002-Fix-a-race-condition-with-the-SIGINT-handler.patch libfile-tee-perl-0.07/debian/patches/0002-Fix-a-race-condition-with-the-SIGINT-handler.patch --- libfile-tee-perl-0.07/debian/patches/0002-Fix-a-race-condition-with-the-SIGINT-handler.patch 1970-01-01 00:00:00.000000000 +0000 +++ libfile-tee-perl-0.07/debian/patches/0002-Fix-a-race-condition-with-the-SIGINT-handler.patch 2017-01-03 17:44:57.000000000 +0000 @@ -0,0 +1,58 @@ +From 8e896957bc0580b53f74152647265a5ea2cdbdf6 Mon Sep 17 00:00:00 2001 +From: Niko Tyni +Date: Tue, 3 Jan 2017 13:54:52 +0000 +Subject: [PATCH] Fix a race condition with the SIGINT handler + +The parent now waits until the child is ready before proceeding. + +This fixes sporadic test failures in t/File-Tee.t. + +Bug-Debian: https://bugs.debian.org/834912 +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=101278 +--- + lib/File/Tee.pm | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/lib/File/Tee.pm b/lib/File/Tee.pm +index caa4ae2..075a9f7 100644 +--- a/lib/File/Tee.pm ++++ b/lib/File/Tee.pm +@@ -149,15 +149,23 @@ sub tee (*;@) { + $| = $oldstate[0]; + select $oldsel; + ++ my ($readp, $writep); ++ pipe ($readp, $writep) ++ or croak "Failed to make a pipe for synchronizing"; ++ + my $pid = open $fh, '|-'; + unless ($pid) { + defined $pid + or return undef; + ++ close $readp; # this end is not for us ++ + $SIG{INT} = 'IGNORE'; + undef @ARGV; + eval { $0 = "perl [File::Tee]" }; + ++ close $writep; # signal the parent we're ready ++ + my $error = 0; + + my $oldsel = select STDERR; +@@ -252,6 +260,11 @@ sub tee (*;@) { + + _exit($error); + } ++ close $writep; # this end is not for us ++ ++ sysread($readp, my $buf, 256); # should block until the kid is ready ++ close $readp; ++ + # close $teefh; + + $oldsel = select($fh); +-- +2.11.0 + diff -Nru libfile-tee-perl-0.07/debian/patches/series libfile-tee-perl-0.07/debian/patches/series --- libfile-tee-perl-0.07/debian/patches/series 2012-11-03 13:37:58.000000000 +0000 +++ libfile-tee-perl-0.07/debian/patches/series 2017-01-03 17:44:57.000000000 +0000 @@ -1 +1,2 @@ 0001-fixed-some-documentation-spelling-errors.patch +0002-Fix-a-race-condition-with-the-SIGINT-handler.patch diff -Nru libfile-tee-perl-0.07/debian/watch libfile-tee-perl-0.07/debian/watch --- libfile-tee-perl-0.07/debian/watch 2012-11-03 13:37:58.000000000 +0000 +++ libfile-tee-perl-0.07/debian/watch 2017-01-03 17:44:57.000000000 +0000 @@ -1,2 +1,2 @@ version=3 -http://search.cpan.org/dist/File-Tee/ .*/File-Tee-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +https://metacpan.org/release/File-Tee .*/File-Tee-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$