r15926 - in /trunk/libpoe-component-client-dns-perl/debian: changelog control patches/ patches/fail_gracefully_without_network.patch patches/series rules

tincho-guest at users.alioth.debian.org tincho-guest at users.alioth.debian.org
Thu Feb 28 23:46:25 UTC 2008


Author: tincho-guest
Date: Thu Feb 28 23:46:24 2008
New Revision: 15926

URL: http://svn.debian.org/wsvn/?sc=1&rev=15926
Log:
  - Added quilt dependency.
* debian/rules: done from scratch, with quilt.
* debian/patches/fail_gracefully_without_network.patch: don't FTBFS!
  Forwarded to upstream (no bug number yet).

Added:
    trunk/libpoe-component-client-dns-perl/debian/patches/
    trunk/libpoe-component-client-dns-perl/debian/patches/fail_gracefully_without_network.patch
    trunk/libpoe-component-client-dns-perl/debian/patches/series
Modified:
    trunk/libpoe-component-client-dns-perl/debian/changelog
    trunk/libpoe-component-client-dns-perl/debian/control
    trunk/libpoe-component-client-dns-perl/debian/rules

Modified: trunk/libpoe-component-client-dns-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/changelog?rev=15926&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/changelog (original)
+++ trunk/libpoe-component-client-dns-perl/debian/changelog Thu Feb 28 23:46:24 2008
@@ -1,4 +1,4 @@
-libpoe-component-client-dns-perl (1:1.00-1) UNRELEASED; urgency=low
+libpoe-component-client-dns-perl (1:1.00-1) unstable; urgency=low
 
   [ gregor herrmann ]
   * Take over for the Debian Perl Group on maintainer's request; cf.
@@ -20,10 +20,13 @@
     - Use epoch on versioned POE dependency.
     - Use debhelper version 5.
     - Added myself to Uploaders.
+    - Added quilt dependency.
   * debian/copyright: new format and updated data.
-  * debian/rules: done from scratch.
+  * debian/rules: done from scratch, with quilt.
+  * debian/patches/fail_gracefully_without_network.patch: don't FTBFS!
+    Forwarded to upstream (no bug number yet).
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 13 Feb 2008 21:41:23 +0100
+ -- Martín Ferrari <martin.ferrari at gmail.com>  Thu, 28 Feb 2008 20:42:18 -0200
 
 libpoe-component-client-dns-perl (1:0.99-1) unstable; urgency=medium
 

Modified: trunk/libpoe-component-client-dns-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/control?rev=15926&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/control (original)
+++ trunk/libpoe-component-client-dns-perl/debian/control Thu Feb 28 23:46:24 2008
@@ -1,7 +1,7 @@
 Source: libpoe-component-client-dns-perl
 Section: perl
 Priority: extra
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 5), quilt
 Build-Depends-Indep: perl, libpoe-perl (>= 2:0.31), libnet-dns-perl (>= 0.59),
  netbase
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>

Added: trunk/libpoe-component-client-dns-perl/debian/patches/fail_gracefully_without_network.patch
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/patches/fail_gracefully_without_network.patch?rev=15926&op=file
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/patches/fail_gracefully_without_network.patch (added)
+++ trunk/libpoe-component-client-dns-perl/debian/patches/fail_gracefully_without_network.patch Thu Feb 28 23:46:24 2008
@@ -1,0 +1,44 @@
+Index: libpoe-component-client-dns-perl/t/06_hosts.t
+===================================================================
+--- libpoe-component-client-dns-perl.orig/t/06_hosts.t
++++ libpoe-component-client-dns-perl/t/06_hosts.t
+@@ -10,6 +10,9 @@ sub POE::Kernel::ASSERT_DEFAULT () { 1 }
+ use POE qw(Component::Client::DNS);
+ use Test::More tests => 3;
+ 
++require Net::DNS;
++my $can_resolve = Net::DNS::Resolver->new->search("poe.perl.org");
++
+ use constant HOSTS_FILE => "./test-hosts";
+ 
+ my $resolver = POE::Component::Client::DNS->spawn(
+@@ -45,10 +48,14 @@ sub start_tests {
+ sub response_no_hosts {
+   my $response = $_[ARG0];
+   my $address = a_data($response);
++  SKIP: {
++  skip "Can't resolve with Net::DNS, network probably not available", 1
++  unless($can_resolve);
+   ok(
+     $address eq "66.33.204.143",
+     "lookup without hosts file ($address)"
+   );
++  }
+ 
+   # 2. Test with a hosts file that contains a host match.
+   unlink HOSTS_FILE;  # Changes inode!
+@@ -87,10 +94,14 @@ sub response_hosts_match {
+ sub response_hosts_nomatch {
+   my $response = $_[ARG0];
+   my $address = a_data($response);
++  SKIP: {
++  skip "Can't resolve with Net::DNS, network probably not available", 1
++  unless($can_resolve);
+   ok(
+     $address eq "66.33.204.143",
+     "lookup without hosts file match ($address)"
+   );
++  }
+ 
+   unlink HOSTS_FILE;
+ }

Added: trunk/libpoe-component-client-dns-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/patches/series?rev=15926&op=file
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/patches/series (added)
+++ trunk/libpoe-component-client-dns-perl/debian/patches/series Thu Feb 28 23:46:24 2008
@@ -1,0 +1,1 @@
+fail_gracefully_without_network.patch

Modified: trunk/libpoe-component-client-dns-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/rules?rev=15926&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/rules (original)
+++ trunk/libpoe-component-client-dns-perl/debian/rules Thu Feb 28 23:46:24 2008
@@ -1,4 +1,5 @@
 #!/usr/bin/make -f
+include /usr/share/quilt/quilt.make
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -12,14 +13,14 @@
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp:
+build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
 	touch $@
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 	dh_clean build-stamp install-stamp




More information about the Pkg-perl-cvs-commits mailing list