Your message dated Sat, 12 Mar 2011 15:52:05 +0000
with message-id <[email protected]>
and subject line Bug#600870: fixed in libfile-slurp-perl 9999.13-3
has caused the Debian Bug report #600870,
regarding libfile-slurp-perl: Please update build system to quilt (patch)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
600870: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600870
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libfile-slurp-perl
Version: 9999.09-1
Severity: wishlist
Tags: patch


Dear Alexander,

While working on some new patches for File::Slurp I noticed that your
package uses quilt. That is perfectly fine, but the new standard seems to be
quilt.

To practice my skills, I've taken the time to write a patch that would
convert your package to quilt. Please find it attached.

The patch also solves:

   1. Migrate to source format 3.0 (quilt) for easier Debian content
   separation
   2. Latest standards version, make buildable with quilt
   3. New compatibility version (8 to support quilt commands in debhelper)
   4. Fix lintian warnings about ${misc:Depends}
   5. Update debian/rules to latest pkg-perl template

The package should then also be lintian clean.

Enjoy!

PS: Please find the new test files for the binmode patch at
https://rt.cpan.org/Public/Bug/Display.html?id=28491, specifically at
https://rt.cpan.org/Ticket/Attachment/844271/437139/utf8-tests.patch. Please
apply.

Best,

Allard
diff --git a/debian/changelog b/debian/changelog
index b1191c4..86193fd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
+libfile-slurp-perl (9999.13-1.1) unstable; urgency=low
+
+  [ Allard Hoeve <[email protected]> ]
+  * NMU
+  * Replace dpatch with quilt in debian/patches
+  * Migrate to source format 3.0 (quilt)
+  * Latest standards version, make buildable with quilt
+  * Replace dpatch with quilt in debian/patches
+  * New compatibility version
+  * Simplify debian/rules to the standard two-line Perl makefile
+
+ -- Allard <[email protected]>  Wed, 20 Oct 2010 20:56:59 +0200
+
 libfile-slurp-perl (9999.13-1) unstable; urgency=low
 
   * New upstream release (closes: #546747)
diff --git a/debian/compat b/debian/compat
index b8626c4..45a4fb7 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+8
diff --git a/debian/control b/debian/control
index c72094a..e90ab7b 100644
--- a/debian/control
+++ b/debian/control
@@ -2,13 +2,13 @@ Source: libfile-slurp-perl
 Section: perl
 Priority: optional
 Maintainer: Alexander Zangerl <[email protected]>
-Build-Depends: debhelper (>= 4.0.2), dpatch
+Build-Depends: debhelper (>= 8) 
 Build-Depends-Indep: perl, libtest-pod-coverage-perl, libtest-pod-perl
-Standards-Version: 3.8.3
+Standards-Version: 3.9.1
 
 Package: libfile-slurp-perl
 Architecture: all
-Depends: ${perl:Depends}
+Depends: ${perl:Depends}, ${misc:Depends}
 Homepage: http://search.cpan.org/~uri/
 Description: single call read & write file routines
  This module consists of some quickie routines that read from,
diff --git a/debian/patches/00list b/debian/patches/00list
deleted file mode 100644
index 82ef9cc..0000000
--- a/debian/patches/00list
+++ /dev/null
@@ -1,2 +0,0 @@
-01_binmode
-
diff --git a/debian/patches/01_binmode.diff b/debian/patches/01_binmode.diff
new file mode 100644
index 0000000..b8f0919
--- /dev/null
+++ b/debian/patches/01_binmode.diff
@@ -0,0 +1,85 @@
+binmode fix for multibyte-encoded data
+--- a/lib/File/Slurp.pm
++++ b/lib/File/Slurp.pm
+@@ -126,7 +126,6 @@
+ # a regular file. set the sysopen mode
+ 
+ 		my $mode = O_RDONLY ;
+-		$mode |= O_BINARY if $args{'binmode'} ;
+ 
+ #printf "RD: BINARY %x MODE %x\n", O_BINARY, $mode ;
+ 
+@@ -138,6 +137,8 @@
+ 			goto &_error ;
+ 		}
+ 
++		binmode($read_fh, $args{'binmode'}) if $args{'binmode'};
++
+ # get the size of the file for use in the read loop
+ 
+ 		$size_left = -s $read_fh ;
+@@ -284,7 +285,6 @@
+ # set the mode for the sysopen
+ 
+ 		my $mode = O_WRONLY | O_CREAT ;
+-		$mode |= O_BINARY if $args->{'binmode'} ;
+ 		$mode |= O_APPEND if $args->{'append'} ;
+ 		$mode |= O_EXCL if $args->{'no_clobber'} ;
+ 
+@@ -297,6 +297,8 @@
+ 			@_ = ( $args, "write_file '$file_name' - sysopen: $!");
+ 			goto &_error ;
+ 		}
++
++		binmode($write_fh, $args->{'binmode'}) if $args->{'binmode'};
+ 	}
+ 
+ 	sysseek( $write_fh, 0, SEEK_END ) if $args->{'append'} ;
+@@ -526,10 +528,8 @@
+ mode.
+ 
+ 	my $bin_data = read_file( $bin_file, binmode => ':raw' ) ;
+-
+-NOTE: this actually sets the O_BINARY mode flag for sysopen. It
+-probably should call binmode and pass its argument to support other
+-file modes.
++	# Or
++	my $bin_data = read_file( $bin_file, binmode => ':utf8' ) ;
+ 
+ =head3 array_ref
+ 
+@@ -628,10 +628,8 @@
+ mode.
+ 
+ 	write_file( $bin_file, {binmode => ':raw'}, @data ) ;
+-
+-NOTE: this actually sets the O_BINARY mode flag for sysopen. It
+-probably should call binmode and pass its argument to support other
+-file modes.
++	# Or
++	write_file( $bin_file, {binmode => ':utf8'}, @data ) ;
+ 
+ =head3 buf_ref
+ 
+--- /dev/null
++++ b/t/utf8.t
+@@ -0,0 +1,19 @@
++use Test::More tests => 1;
++use strict; 
++use File::Slurp;
++my $fn="/tmp/utf8.txt";
++
++my $data="hallo grüezi blödel schaß und aus.\n";
++open F,">$fn";
++binmode(F, ":utf8");
++print F $data;
++close F;
++
++my $x=read_file($fn,binmode=>":utf8");
++ok($x eq $data,"utf8 encoded data survives slurp");
++unlink($fn);
++
++
++
++
++
diff --git a/debian/patches/01_binmode.dpatch b/debian/patches/01_binmode.dpatch
deleted file mode 100644
index 9254c68..0000000
--- a/debian/patches/01_binmode.dpatch
+++ /dev/null
@@ -1,93 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 01_binmode.dpatch by  <[email protected]>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: binmode fix for multibyte-encoded data
-
-@DPATCH@
-diff -urNad File-Slurp-9999.12~/lib/File/Slurp.pm File-Slurp-9999.12/lib/File/Slurp.pm
---- File-Slurp-9999.12~/lib/File/Slurp.pm	2006-02-17 16:13:51.000000000 +1000
-+++ File-Slurp-9999.12/lib/File/Slurp.pm	2009-09-15 18:08:48.812021963 +1000
-@@ -126,7 +126,6 @@
- # a regular file. set the sysopen mode
- 
- 		my $mode = O_RDONLY ;
--		$mode |= O_BINARY if $args{'binmode'} ;
- 
- #printf "RD: BINARY %x MODE %x\n", O_BINARY, $mode ;
- 
-@@ -138,6 +137,8 @@
- 			goto &_error ;
- 		}
- 
-+		binmode($read_fh, $args{'binmode'}) if $args{'binmode'};
-+
- # get the size of the file for use in the read loop
- 
- 		$size_left = -s $read_fh ;
-@@ -284,7 +285,6 @@
- # set the mode for the sysopen
- 
- 		my $mode = O_WRONLY | O_CREAT ;
--		$mode |= O_BINARY if $args->{'binmode'} ;
- 		$mode |= O_APPEND if $args->{'append'} ;
- 		$mode |= O_EXCL if $args->{'no_clobber'} ;
- 
-@@ -297,6 +297,8 @@
- 			@_ = ( $args, "write_file '$file_name' - sysopen: $!");
- 			goto &_error ;
- 		}
-+
-+		binmode($write_fh, $args->{'binmode'}) if $args->{'binmode'};
- 	}
- 
- 	sysseek( $write_fh, 0, SEEK_END ) if $args->{'append'} ;
-@@ -526,10 +528,8 @@
- mode.
- 
- 	my $bin_data = read_file( $bin_file, binmode => ':raw' ) ;
--
--NOTE: this actually sets the O_BINARY mode flag for sysopen. It
--probably should call binmode and pass its argument to support other
--file modes.
-+	# Or
-+	my $bin_data = read_file( $bin_file, binmode => ':utf8' ) ;
- 
- =head3 array_ref
- 
-@@ -628,10 +628,8 @@
- mode.
- 
- 	write_file( $bin_file, {binmode => ':raw'}, @data ) ;
--
--NOTE: this actually sets the O_BINARY mode flag for sysopen. It
--probably should call binmode and pass its argument to support other
--file modes.
-+	# Or
-+	write_file( $bin_file, {binmode => ':utf8'}, @data ) ;
- 
- =head3 buf_ref
- 
-diff -urNad File-Slurp-9999.12~/t/utf8.t File-Slurp-9999.12/t/utf8.t
---- File-Slurp-9999.12~/t/utf8.t	1970-01-01 10:00:00.000000000 +1000
-+++ File-Slurp-9999.12/t/utf8.t	2009-09-15 18:08:55.819972627 +1000
-@@ -0,0 +1,19 @@
-+use Test::More tests => 1;
-+use strict; 
-+use File::Slurp;
-+my $fn="/tmp/utf8.txt";
-+
-+my $data="hallo grüezi blödel schaß und aus.\n";
-+open F,">$fn";
-+binmode(F, ":utf8");
-+print F $data;
-+close F;
-+
-+my $x=read_file($fn,binmode=>":utf8");
-+ok($x eq $data,"utf8 encoded data survives slurp");
-+unlink($fn);
-+
-+
-+
-+
-+
diff --git a/debian/patches/01_picky_test.diff b/debian/patches/01_picky_test.diff
new file mode 100644
index 0000000..bd94911
--- /dev/null
+++ b/debian/patches/01_picky_test.diff
@@ -0,0 +1,61 @@
+make picky test::xx happy by giving exact plans
+diff -urNad libfile-slurp-perl-9999.12~/t/error.t libfile-slurp-perl-9999.12/t/error.t
+--- libfile-slurp-perl-9999.12~/t/error.t	2009-09-15 17:59:42.000000000 +1000
++++ libfile-slurp-perl-9999.12/t/error.t	2009-09-15 17:59:42.798228715 +1000
+@@ -14,7 +14,7 @@
+ my $file = 'missing/file' ;
+ unlink $file ;
+ 
+-plan tests => 9 ;
++plan tests => 10 ;
+ 
+ my %modes = (
+ 	'croak' => \&test_croak,
+diff -urNad libfile-slurp-perl-9999.12~/t/handle.t libfile-slurp-perl-9999.12/t/handle.t
+--- libfile-slurp-perl-9999.12~/t/handle.t	2009-09-15 17:59:42.000000000 +1000
++++ libfile-slurp-perl-9999.12/t/handle.t	2009-09-15 17:59:42.798228715 +1000
+@@ -22,7 +22,7 @@
+ ) ;
+ 
+ #plan( tests => 2 + @pipe_data ) ;
+-plan( tests => scalar @pipe_data ) ;
++plan( tests => 1+scalar @pipe_data ) ;
+ 
+ 
+ BEGIN{ 
+diff -urNad libfile-slurp-perl-9999.12~/t/large.t libfile-slurp-perl-9999.12/t/large.t
+--- libfile-slurp-perl-9999.12~/t/large.t	2009-09-15 17:59:42.000000000 +1000
++++ libfile-slurp-perl-9999.12/t/large.t	2009-09-15 17:59:42.798228715 +1000
+@@ -44,7 +44,7 @@
+ 	push @bin_data, $data ;
+ }
+ 
+-plan( tests => 16 * @text_data + 8 * @bin_data ) ;
++plan( tests => 1+16 * @text_data + 8 * @bin_data ) ;
+ 
+ #print "# text slurp\n" ;
+ 
+diff -urNad libfile-slurp-perl-9999.12~/t/paragraph.t libfile-slurp-perl-9999.12/t/paragraph.t
+--- libfile-slurp-perl-9999.12~/t/paragraph.t	2004-09-18 14:58:53.000000000 +1000
++++ libfile-slurp-perl-9999.12/t/paragraph.t	2009-09-15 18:00:05.390531627 +1000
+@@ -23,7 +23,7 @@
+ 	[],
+ ) ;
+ 
+-plan( tests => 3 * @text_data ) ;
++plan( tests => 1+3 * @text_data ) ;
+ 
+ #print "# text slurp\n" ;
+ 
+diff -urNad libfile-slurp-perl-9999.12~/t/pseudo.t libfile-slurp-perl-9999.12/t/pseudo.t
+--- libfile-slurp-perl-9999.12~/t/pseudo.t	2005-01-25 16:16:45.000000000 +1000
++++ libfile-slurp-perl-9999.12/t/pseudo.t	2009-09-15 17:59:56.822426802 +1000
+@@ -5,7 +5,7 @@
+ use Carp ;
+ use Test::More ;
+ 
+-plan( tests => 1 ) ; 
++plan( tests => 2 ) ; 
+ 
+ my $proc_file = "/proc/$$/auxv" ;
+ 
diff --git a/debian/patches/01_picky_test.dpatch b/debian/patches/01_picky_test.dpatch
deleted file mode 100644
index aa34ce8..0000000
--- a/debian/patches/01_picky_test.dpatch
+++ /dev/null
@@ -1,67 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 01_picky_test.dpatch by  <[email protected]>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: make picky test::xx happy by giving exact plans
-
-@DPATCH@
-diff -urNad libfile-slurp-perl-9999.12~/t/error.t libfile-slurp-perl-9999.12/t/error.t
---- libfile-slurp-perl-9999.12~/t/error.t	2009-09-15 17:59:42.000000000 +1000
-+++ libfile-slurp-perl-9999.12/t/error.t	2009-09-15 17:59:42.798228715 +1000
-@@ -14,7 +14,7 @@
- my $file = 'missing/file' ;
- unlink $file ;
- 
--plan tests => 9 ;
-+plan tests => 10 ;
- 
- my %modes = (
- 	'croak' => \&test_croak,
-diff -urNad libfile-slurp-perl-9999.12~/t/handle.t libfile-slurp-perl-9999.12/t/handle.t
---- libfile-slurp-perl-9999.12~/t/handle.t	2009-09-15 17:59:42.000000000 +1000
-+++ libfile-slurp-perl-9999.12/t/handle.t	2009-09-15 17:59:42.798228715 +1000
-@@ -22,7 +22,7 @@
- ) ;
- 
- #plan( tests => 2 + @pipe_data ) ;
--plan( tests => scalar @pipe_data ) ;
-+plan( tests => 1+scalar @pipe_data ) ;
- 
- 
- BEGIN{ 
-diff -urNad libfile-slurp-perl-9999.12~/t/large.t libfile-slurp-perl-9999.12/t/large.t
---- libfile-slurp-perl-9999.12~/t/large.t	2009-09-15 17:59:42.000000000 +1000
-+++ libfile-slurp-perl-9999.12/t/large.t	2009-09-15 17:59:42.798228715 +1000
-@@ -44,7 +44,7 @@
- 	push @bin_data, $data ;
- }
- 
--plan( tests => 16 * @text_data + 8 * @bin_data ) ;
-+plan( tests => 1+16 * @text_data + 8 * @bin_data ) ;
- 
- #print "# text slurp\n" ;
- 
-diff -urNad libfile-slurp-perl-9999.12~/t/paragraph.t libfile-slurp-perl-9999.12/t/paragraph.t
---- libfile-slurp-perl-9999.12~/t/paragraph.t	2004-09-18 14:58:53.000000000 +1000
-+++ libfile-slurp-perl-9999.12/t/paragraph.t	2009-09-15 18:00:05.390531627 +1000
-@@ -23,7 +23,7 @@
- 	[],
- ) ;
- 
--plan( tests => 3 * @text_data ) ;
-+plan( tests => 1+3 * @text_data ) ;
- 
- #print "# text slurp\n" ;
- 
-diff -urNad libfile-slurp-perl-9999.12~/t/pseudo.t libfile-slurp-perl-9999.12/t/pseudo.t
---- libfile-slurp-perl-9999.12~/t/pseudo.t	2005-01-25 16:16:45.000000000 +1000
-+++ libfile-slurp-perl-9999.12/t/pseudo.t	2009-09-15 17:59:56.822426802 +1000
-@@ -5,7 +5,7 @@
- use Carp ;
- use Test::More ;
- 
--plan( tests => 1 ) ; 
-+plan( tests => 2 ) ; 
- 
- my $proc_file = "/proc/$$/auxv" ;
- 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0559a12
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01_binmode.diff
diff --git a/debian/rules b/debian/rules
index 9a383c4..2d33f6a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,51 +1,4 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
 
-# to get the patch application targets
-include /usr/share/dpatch/dpatch.make
-
-configure: Makefile
-Makefile: Makefile.PL
-	dh_testdir
-	perl Makefile.PL INSTALLDIRS=vendor	
-
-build: build-stamp
-
-build-stamp: patch configure
-	dh_testdir
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
-	touch build-stamp
-
-clean: unpatch
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
-	 [ ! -f Makefile ] || $(MAKE) distclean
-	rm -f Makefile Makefile.old
-	dh_clean
-
-# Build architecture-independent files here.
-binary-indep: build
-	dh_testdir
-	dh_testroot
-	dh_clean
-	dh_installdirs
-	$(MAKE) test
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/libfile-slurp-perl/
-	dh_install
-	dh_installdocs -n
-	dh_installchangelogs
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_perl
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-# Build architecture-dependent files here.
-binary-arch: build
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary configure
+%:
+	dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

--- End Message ---
--- Begin Message ---
Source: libfile-slurp-perl
Source-Version: 9999.13-3

We believe that the bug you reported is fixed in the latest version of
libfile-slurp-perl, which is due to be installed in the Debian FTP archive:

libfile-slurp-perl_9999.13-3.diff.gz
  to main/libf/libfile-slurp-perl/libfile-slurp-perl_9999.13-3.diff.gz
libfile-slurp-perl_9999.13-3.dsc
  to main/libf/libfile-slurp-perl/libfile-slurp-perl_9999.13-3.dsc
libfile-slurp-perl_9999.13-3_all.deb
  to main/libf/libfile-slurp-perl/libfile-slurp-perl_9999.13-3_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Zangerl <[email protected]> (supplier of updated libfile-slurp-perl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 13 Mar 2011 00:57:54 +1000
Source: libfile-slurp-perl
Binary: libfile-slurp-perl
Architecture: source all
Version: 9999.13-3
Distribution: unstable
Urgency: low
Maintainer: Alexander Zangerl <[email protected]>
Changed-By: Alexander Zangerl <[email protected]>
Description: 
 libfile-slurp-perl - single call read & write file routines
Closes: 600870
Changes: 
 libfile-slurp-perl (9999.13-3) unstable; urgency=low
 .
   * incorporated new utf8 tests (closes: #600870)
   * cleaned some lintian warnings
   * lifted standards version
Checksums-Sha1: 
 637e501701903e71f189695557deaf43a7e35faf 1123 libfile-slurp-perl_9999.13-3.dsc
 21b3e71cd3b4ce50ddc097648a0088745d9ab81e 5460 
libfile-slurp-perl_9999.13-3.diff.gz
 1755b38734afdf04957d4131a95a65bd9acc564f 19110 
libfile-slurp-perl_9999.13-3_all.deb
Checksums-Sha256: 
 ff707fd09fb262a326c2c92dae602e7d3d0b60ade7bc81cf7975113f05a91b63 1123 
libfile-slurp-perl_9999.13-3.dsc
 87d2f615d39def70774707cb71173734c678ebab9fd7d0fedb26fe04c810a31f 5460 
libfile-slurp-perl_9999.13-3.diff.gz
 3e9a4951d87820168fcca3434fe85d4fced602392f025bab1492a22a1d040e81 19110 
libfile-slurp-perl_9999.13-3_all.deb
Files: 
 cf813c50155eba2467ecee505ed220cd 1123 perl optional 
libfile-slurp-perl_9999.13-3.dsc
 5af384793f5f75d565c14879d5663a8c 5460 perl optional 
libfile-slurp-perl_9999.13-3.diff.gz
 1b5469d825c4c1af8dc4b31f818dd38f 19110 perl optional 
libfile-slurp-perl_9999.13-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAk17iooACgkQpy/2bEK9ZF1ZogCaAzw7ePapB7DD1fHzS+LOirz9
XQQAnjApoFpwt8EIpDW1xlqD2IyNBXIr
=g0Gs
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to