r65161 - in /trunk/libdbd-pg-perl/debian: changelog control patches/series patches/testdir.patch

ansgar at users.alioth.debian.org ansgar at users.alioth.debian.org
Sun Nov 21 11:49:21 UTC 2010


Author: ansgar
Date: Sun Nov 21 11:49:07 2010
New Revision: 65161

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=65161
Log:
* Make build-dependency on libpq-dev unversioned: the version in stable is
  already more recent than 8.0.
* Add build-dependency on postgresql to enable tests. Note that the test
  programs set up their own database cluster so this works even for
  non-privileged users.
  We have to create the test cluster in /tmp instead of the current
  directory as otherwise the path to PostgreSQL's socket might be too long
  to fit in the sockaddr_un struct (cf. #602891).
  + new patch: testdir.patch

Added:
    trunk/libdbd-pg-perl/debian/patches/testdir.patch
Modified:
    trunk/libdbd-pg-perl/debian/changelog
    trunk/libdbd-pg-perl/debian/control
    trunk/libdbd-pg-perl/debian/patches/series

Modified: trunk/libdbd-pg-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-pg-perl/debian/changelog?rev=65161&op=diff
==============================================================================
--- trunk/libdbd-pg-perl/debian/changelog (original)
+++ trunk/libdbd-pg-perl/debian/changelog Sun Nov 21 11:49:07 2010
@@ -11,10 +11,19 @@
     systems"; refer to /usr/share/common-licenses/GPL-1.
   * Remove (build-)dep on perl (>= 5.10) | libversion-perl: stable already has
     a recent enough version of perl.
+  * Make build-dependency on libpq-dev unversioned: the version in stable is
+    already more recent than 8.0.
+  * Add build-dependency on postgresql to enable tests. Note that the test
+    programs set up their own database cluster so this works even for
+    non-privileged users.
+    We have to create the test cluster in /tmp instead of the current
+    directory as otherwise the path to PostgreSQL's socket might be too long
+    to fit in the sockaddr_un struct (cf. #602891).
+    + new patch: testdir.patch
   * Bump Standards-Version to 3.9.1.
   * Update my email address.
 
- -- Ansgar Burchardt <ansgar at debian.org>  Sun, 21 Nov 2010 11:45:54 +0100
+ -- Ansgar Burchardt <ansgar at debian.org>  Sun, 21 Nov 2010 12:47:13 +0100
 
 libdbd-pg-perl (2.17.1-2) unstable; urgency=low
 

Modified: trunk/libdbd-pg-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-pg-perl/debian/control?rev=65161&op=diff
==============================================================================
--- trunk/libdbd-pg-perl/debian/control (original)
+++ trunk/libdbd-pg-perl/debian/control Sun Nov 21 11:49:07 2010
@@ -2,7 +2,7 @@
 Section: perl
 Priority: optional
 Build-Depends: perl, debhelper (>= 7.0.8~),
- libdbi-perl (>= 1.612), libpq-dev (>= 8.0)
+ libdbi-perl (>= 1.612), libpq-dev, postgresql
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Ivan Kohler <ivan-debian at 420.am>, Gunnar Wolf <gwolf at debian.org>,
  Damyan Ivanov <dmn at debian.org>, Krzysztof Krzyżaniak (eloy) <eloy at debian.org>,

Modified: trunk/libdbd-pg-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-pg-perl/debian/patches/series?rev=65161&op=diff
==============================================================================
--- trunk/libdbd-pg-perl/debian/patches/series (original)
+++ trunk/libdbd-pg-perl/debian/patches/series Sun Nov 21 11:49:07 2010
@@ -1,1 +1,2 @@
 pod-spelling.patch
+testdir.patch

Added: trunk/libdbd-pg-perl/debian/patches/testdir.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-pg-perl/debian/patches/testdir.patch?rev=65161&op=file
==============================================================================
--- trunk/libdbd-pg-perl/debian/patches/testdir.patch (added)
+++ trunk/libdbd-pg-perl/debian/patches/testdir.patch Sun Nov 21 11:49:07 2010
@@ -1,0 +1,25 @@
+From: Ansgar Burchardt <ansgar at debian.org>
+Date: Sun, 21 Nov 2010 12:37:21 +0100
+Origin: vendor
+Subject: Create test database in /tmp
+
+Building the package with sbuild may result in the path to the socket used by
+PostgreSQL to be too long to fit in the sockaddr_un struct defined in
+/usr/include/linux/un.h.  For this reason we move the test cluster to a
+directory in /tmp.
+
+See also <http://bugs.debian.org/602891>.
+--- libdbd-pg-perl.orig/t/dbdpg_test_setup.pl
++++ libdbd-pg-perl/t/dbdpg_test_setup.pl
+@@ -667,8 +667,9 @@
+ 	}
+ 
+ 	if (!$testdir) {
+-		my $dir = getcwd();
+-		$testdir = "$dir/dbdpg_test_database";
++		# my $dir = getcwd();
++		# $testdir = "$dir/dbdpg_test_database";
++		$testdir = find_tempdir();
+ 	}
+ 
+ 	return $testdsn, $testuser, $helpconnect, $su, $uid, $testdir, $pg_ctl, $initdb, $error, $version;




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