summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2007-07-18 06:33:38 +0000
committerTiziano Müller <dev-zero@gentoo.org>2007-07-18 06:33:38 +0000
commit879c0d2e24531cf394b522f889951f71e1b22c2d (patch)
tree3cbb26017262609c4f686fc4f6f08d7a8bb4bfd3
parentStable for HPPA (bug #184462). (diff)
downloadgentoo-2-879c0d2e24531cf394b522f889951f71e1b22c2d.tar.gz
gentoo-2-879c0d2e24531cf394b522f889951f71e1b22c2d.tar.bz2
gentoo-2-879c0d2e24531cf394b522f889951f71e1b22c2d.zip
Changed test behavior to spit out a warning instead of failing if database parameters are unavailable
(Portage version: 2.1.3_rc8)
-rw-r--r--dev-libs/libpqxx/ChangeLog6
-rw-r--r--dev-libs/libpqxx/libpqxx-2.6.9.ebuild14
2 files changed, 14 insertions, 6 deletions
diff --git a/dev-libs/libpqxx/ChangeLog b/dev-libs/libpqxx/ChangeLog
index 8f91d9cccabc..f42a6f1c0d46 100644
--- a/dev-libs/libpqxx/ChangeLog
+++ b/dev-libs/libpqxx/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/libpqxx
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v 1.46 2007/07/14 02:49:44 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v 1.47 2007/07/18 06:33:38 dev-zero Exp $
+
+ 18 Jul 2007; Tiziano Müller <dev-zero@gentoo.org> libpqxx-2.6.9.ebuild:
+ Changed test behavior to spit out a warning instead of failing if database
+ parameters are unavailable
14 Jul 2007; Jeroen Roovers <jer@gentoo.org> libpqxx-2.6.9.ebuild:
Stable for HPPA (bug #185216).
diff --git a/dev-libs/libpqxx/libpqxx-2.6.9.ebuild b/dev-libs/libpqxx/libpqxx-2.6.9.ebuild
index a559e6991d70..57eb4e12fe1a 100644
--- a/dev-libs/libpqxx/libpqxx-2.6.9.ebuild
+++ b/dev-libs/libpqxx/libpqxx-2.6.9.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-2.6.9.ebuild,v 1.3 2007/07/14 02:49:44 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/libpqxx-2.6.9.ebuild,v 1.4 2007/07/18 06:33:38 dev-zero Exp $
inherit eutils
@@ -50,8 +50,12 @@ src_test() {
ewarn "PGUSER (default: username, probably root)"
epause 10
- cd "${S}/test"
- # Working around a mysterious bug in gcc-4.1
- sed -i -e 's/-O2/-O1/' Makefile
- emake -j1 check || die "emake check failed"
+ if [[ -n ${PGDATABASE} ]] ; then
+ cd "${S}/test"
+ # Working around a mysterious bug in gcc-4.1
+ sed -i -e 's/-O2/-O1/' Makefile
+ emake -j1 check || die "emake check failed"
+ else
+ ewarn "Tests skipped since PGDATABASE is not defined or empty"
+ fi
}