r46104 - in /trunk/liblist-moreutils-perl/debian: README.source changelog control patches/ patches/memory_leak.patch patches/series rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Mon Oct 19 21:19:12 UTC 2009
Author: gregoa
Date: Mon Oct 19 21:19:07 2009
New Revision: 46104
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=46104
Log:
Add patch from CPAN to fix memory leak (RT#49796); add quilt framework.
Added:
trunk/liblist-moreutils-perl/debian/README.source
trunk/liblist-moreutils-perl/debian/patches/
trunk/liblist-moreutils-perl/debian/patches/memory_leak.patch
trunk/liblist-moreutils-perl/debian/patches/series
Modified:
trunk/liblist-moreutils-perl/debian/changelog
trunk/liblist-moreutils-perl/debian/control
trunk/liblist-moreutils-perl/debian/rules
Added: trunk/liblist-moreutils-perl/debian/README.source
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblist-moreutils-perl/debian/README.source?rev=46104&op=file
==============================================================================
--- trunk/liblist-moreutils-perl/debian/README.source (added)
+++ trunk/liblist-moreutils-perl/debian/README.source Mon Oct 19 21:19:07 2009
@@ -1,0 +1,5 @@
+This package uses quilt to manage all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explanation.
Modified: trunk/liblist-moreutils-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblist-moreutils-perl/debian/changelog?rev=46104&op=diff
==============================================================================
--- trunk/liblist-moreutils-perl/debian/changelog (original)
+++ trunk/liblist-moreutils-perl/debian/changelog Mon Oct 19 21:19:07 2009
@@ -1,6 +1,7 @@
liblist-moreutils-perl (0.25~02-1) UNRELEASED; urgency=low
* New upstream release (closes: #546632).
+ * Add patch from CPAN to fix memory leak (RT#49796); add quilt framework.
-- gregor herrmann <gregoa at debian.org> Mon, 19 Oct 2009 23:14:32 +0200
Modified: trunk/liblist-moreutils-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblist-moreutils-perl/debian/control?rev=46104&op=diff
==============================================================================
--- trunk/liblist-moreutils-perl/debian/control (original)
+++ trunk/liblist-moreutils-perl/debian/control Mon Oct 19 21:19:07 2009
@@ -1,8 +1,8 @@
Source: liblist-moreutils-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7), perl (>= 5.8.0-7),
- libtest-pod-perl, libtest-pod-coverage-perl
+Build-Depends: debhelper (>= 7.0.8), perl (>= 5.8.0-7),
+ libtest-pod-perl, libtest-pod-coverage-perl, quilt (>= 0.46-7)
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Krzysztof Krzyzaniak (eloy) <eloy at debian.org>,
Damyan Ivanov <dmn at debian.org>, Ansgar Burchardt <ansgar at 43-1.org>
Added: trunk/liblist-moreutils-perl/debian/patches/memory_leak.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblist-moreutils-perl/debian/patches/memory_leak.patch?rev=46104&op=file
==============================================================================
--- trunk/liblist-moreutils-perl/debian/patches/memory_leak.patch (added)
+++ trunk/liblist-moreutils-perl/debian/patches/memory_leak.patch Mon Oct 19 21:19:07 2009
@@ -1,0 +1,36 @@
+Author: Kevin Ryde <user42[...]zip.com.au>
+Description: fix memory leak
+Origin: http://rt.cpan.org/Public/Bug/Display.html?id=49796
+Bugs-CPAN: http://rt.cpan.org/Public/Bug/Display.html?id=49796
+
+--- a/MoreUtils.xs
++++ b/MoreUtils.xs
+@@ -1269,8 +1269,9 @@
+ CODE:
+ {
+ register int i, count = 0;
++ SV *undef = sv_2mortal(newRV_noinc(newSV(0)));
+ HV *hv = newHV();
+- SV *undef = newRV_noinc(newSV(0));
++ sv_2mortal(newRV_noinc((SV*)hv));
+
+ /* don't build return list in scalar context */
+ if (GIMME == G_SCALAR) {
+@@ -1281,8 +1282,6 @@
+ hv_store_ent(hv, e, &PL_sv_yes, 0);
+ }
+ }
+- SvREFCNT_dec(hv);
+- SvREFCNT_dec(undef);
+ ST(0) = sv_2mortal(newSViv(count));
+ XSRETURN(1);
+ }
+@@ -1296,8 +1295,6 @@
+ hv_store_ent(hv, e, &PL_sv_yes, 0);
+ }
+ }
+- SvREFCNT_dec(hv);
+- SvREFCNT_dec(undef);
+ XSRETURN(count);
+ }
+
Added: trunk/liblist-moreutils-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblist-moreutils-perl/debian/patches/series?rev=46104&op=file
==============================================================================
--- trunk/liblist-moreutils-perl/debian/patches/series (added)
+++ trunk/liblist-moreutils-perl/debian/patches/series Mon Oct 19 21:19:07 2009
@@ -1,0 +1,1 @@
+memory_leak.patch
Modified: trunk/liblist-moreutils-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblist-moreutils-perl/debian/rules?rev=46104&op=diff
==============================================================================
--- trunk/liblist-moreutils-perl/debian/rules (original)
+++ trunk/liblist-moreutils-perl/debian/rules Mon Oct 19 21:19:07 2009
@@ -1,3 +1,3 @@
#!/usr/bin/make -f
%:
- dh $@
+ dh --with quilt $@
More information about the Pkg-perl-cvs-commits
mailing list