public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/fordfrog:master commit in: dev-db/pgfouine/files/, dev-db/pgfouine/
Date: Thu, 30 Jun 2011 09:59:02 +0000 (UTC)	[thread overview]
Message-ID: <d56a5254e0c24409d27a5f6a811e57ea1ecd7f7a.fordfrog@gentoo> (raw)

commit:     d56a5254e0c24409d27a5f6a811e57ea1ecd7f7a
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 09:58:55 2011 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 09:58:55 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/fordfrog.git;a=commit;h=d56a5254

dev-db/pgfouine: fixed error with hints existing for non-error log lines

---
 dev-db/pgfouine/ChangeLog                          |    6 +++++
 dev-db/pgfouine/Manifest                           |    5 ++-
 .../files/disable-hints-for-non-errors.patch       |   22 ++++++++++++++++++++
 ...{pgfouine-1.2.ebuild => pgfouine-1.2-r1.ebuild} |    3 ++
 4 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/dev-db/pgfouine/ChangeLog b/dev-db/pgfouine/ChangeLog
index cd1a773..fc353a0 100644
--- a/dev-db/pgfouine/ChangeLog
+++ b/dev-db/pgfouine/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*pgfouine-1.2-r1 (30 Jun 2011)
+
+  30 Jun 2011; Miroslav Šulc <fordfrog@gentoo.org> -pgfouine-1.2.ebuild,
+  +pgfouine-1.2-r1.ebuild, +files/disable-hints-for-non-errors.patch:
+  Fixed error with hints existing for non-error log lines
+
   30 Jun 2011; Miroslav Šulc <fordfrog@gentoo.org> pgfouine-1.2.ebuild:
   Added dependencies on php modules
 

diff --git a/dev-db/pgfouine/Manifest b/dev-db/pgfouine/Manifest
index 551727a..0367766 100644
--- a/dev-db/pgfouine/Manifest
+++ b/dev-db/pgfouine/Manifest
@@ -1,4 +1,5 @@
+AUX disable-hints-for-non-errors.patch 744 RMD160 eb110c7870b4ee8c44841714ce0f57059a5725b6 SHA1 6bf0e4dc414fd9444382de1e3c9906b6ffaad856 SHA256 647ae25fee5d83fd43ac479d628c19c6140c25de8c47043e4e9a72a89cd4a1f6
 DIST pgfouine-1.2.tar.gz 793004 RMD160 126c8ac1d65e32e093db9f9b510f3d6a5a663237 SHA1 aca54b34d93a6b1faa2c55b382b9f0742fce081d SHA256 6c5b753d7c14744cd23021d327016040cd86e14d29c055babf556ee2160a17fd
-EBUILD pgfouine-1.2.ebuild 1159 RMD160 08ac14fc9812e7fae69ffce1672fd56ed0e3a2b2 SHA1 7e54a25b33a3a273148a3bf44c5e7238d8b56373 SHA256 21801d0b6114f20b72fec1b79f3afb662ed704bd8480081ed85960761007e7d1
-MISC ChangeLog 439 RMD160 ecca13416bce8a7e2519843ec1c4ee3a527fbf1b SHA1 77315d8893b15fc71df935f6df241d76c7891206 SHA256 bf333e0804e531df6751bdb3db065dbeedf38bf13cd42909de46dc1c08f33c9d
+EBUILD pgfouine-1.2-r1.ebuild 1362 RMD160 80bee8d3dcca7434ff2f219b4a22d526fe407568 SHA1 273662a7bdfb4f9284b8bde41b86e0f963f7c00e SHA256 88c1de1e6cf040e08bf23fbd2039a66d1e1e2a7603060277f645aa0fb50b8146
+MISC ChangeLog 674 RMD160 0643f7408c73d138c7e45f70a6f0a7eb6b454501 SHA1 6ee1f7f87aa73f5c6e0182e0dc66916689dc893f SHA256 02cdfba2637f220acbe1ad85ec1e7b7a303c06f85f063fe0dc5d592792c9bbbe
 MISC metadata.xml 257 RMD160 743513e54bce621fb29181c8f2c9bc9521f83c12 SHA1 6e6259d3bca13f00ad4e47d103c78a856fcdec7a SHA256 ca5a181e2b7199de87f8012a08f0d58b12de37e4a4cd8e4659e0dad86f774892

diff --git a/dev-db/pgfouine/files/disable-hints-for-non-errors.patch b/dev-db/pgfouine/files/disable-hints-for-non-errors.patch
new file mode 100644
index 0000000..fab176d
--- /dev/null
+++ b/dev-db/pgfouine/files/disable-hints-for-non-errors.patch
@@ -0,0 +1,22 @@
+diff --git a/pgfouine-1.2/include/postgresql/lines/PostgreSQLHintLine.class.php b/pgfouine-1.2/include/postgresql/lines/PostgreSQLHintLine.class.php
+index 274f238..f23debd 100644
+--- a/pgfouine-1.2/include/postgresql/lines/PostgreSQLHintLine.class.php
++++ b/pgfouine-1.2/include/postgresql/lines/PostgreSQLHintLine.class.php
+@@ -25,7 +25,9 @@ class PostgreSQLHintLine extends PostgreSQLLogLine {
+ 	var $ignore = false;
+ 
+ 	function appendTo(& $logObject) {
+-		$logObject->appendHint($this->text);
++		if (method_exists($logObject, 'appendHint')) {
++			$logObject->appendHint($this->text);
++		}
+ 	}
+ 	
+ 	function isContextual() {
+@@ -33,4 +35,4 @@ class PostgreSQLHintLine extends PostgreSQLLogLine {
+ 	}
+ }
+ 
+-?>
+\ No newline at end of file
++?>

diff --git a/dev-db/pgfouine/pgfouine-1.2.ebuild b/dev-db/pgfouine/pgfouine-1.2-r1.ebuild
similarity index 85%
rename from dev-db/pgfouine/pgfouine-1.2.ebuild
rename to dev-db/pgfouine/pgfouine-1.2-r1.ebuild
index 42fadc2..2ccb529 100644
--- a/dev-db/pgfouine/pgfouine-1.2.ebuild
+++ b/dev-db/pgfouine/pgfouine-1.2-r1.ebuild
@@ -22,6 +22,9 @@ RDEPEND=">=dev-lang/php-4[gd,truetype]"
 
 src_prepare() {
 	find -name CVS -type d | xargs rm -fr
+	# some logs may contain hints even for non-error log lines
+	# this patch disables adding hints to log objects that do not have appendHint() method
+	epatch ${FILESDIR}/disable-hints-for-non-errors.patch
 }
 
 src_configure() {



             reply	other threads:[~2011-06-30  9:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-30  9:59 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-10-22 21:08 [gentoo-commits] dev/fordfrog:master commit in: dev-db/pgfouine/files/, dev-db/pgfouine/ Miroslav Šulc
2011-10-22 21:12 Miroslav Šulc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d56a5254e0c24409d27a5f6a811e57ea1ecd7f7a.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox