Gentoo Archives: gentoo-commits

From: Aaron Swenson <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pgsql-patches:8.2 commit in: /
Date: Tue, 02 Aug 2011 00:14:57
Message-Id: 9b7edb78bf1e70c0b0d60e9bf7cbe210d054a077.titanofold@gentoo
1 commit: 9b7edb78bf1e70c0b0d60e9bf7cbe210d054a077
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 23:54:28 2011 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 23:54:28 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pgsql-patches.git;a=commit;h=9b7edb78
7
8 bool.patch to fix PPC{,64} defining it to . . . something.
9 pg_ctl-exit-status.patch to emit the proper exit status when server isn't running.
10
11 ---
12 bool.patch | 11 +++++++++++
13 pg_ctl-exit-status.patch | 12 ++++++++++++
14 2 files changed, 23 insertions(+), 0 deletions(-)
15
16 diff --git a/bool.patch b/bool.patch
17 new file mode 100644
18 index 0000000..a338be6
19 --- /dev/null
20 +++ b/bool.patch
21 @@ -0,0 +1,11 @@
22 +diff -Naur a/src/include/c.h b/src/include/c.h
23 +--- a/src/include/c.h 2011-04-14 23:19:01.000000000 -0400
24 ++++ b/src/include/c.h 2011-07-31 18:23:00.648671437 -0400
25 +@@ -170,6 +170,7 @@
26 + */
27 +
28 + #ifndef __cplusplus
29 ++#undef bool
30 +
31 + #ifndef bool
32 + typedef char bool;
33
34 diff --git a/pg_ctl-exit-status.patch b/pg_ctl-exit-status.patch
35 new file mode 100644
36 index 0000000..f55c9ac
37 --- /dev/null
38 +++ b/pg_ctl-exit-status.patch
39 @@ -0,0 +1,12 @@
40 +diff -Naur a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
41 +--- a/src/bin/pg_ctl/pg_ctl.c 2011-04-14 23:18:15.000000000 -0400
42 ++++ b/src/bin/pg_ctl/pg_ctl.c 2011-08-01 19:44:54.009993121 -0400
43 +@@ -975,7 +975,7 @@
44 + }
45 + }
46 + printf(_("%s: no server running\n"), progname);
47 +- exit(1);
48 ++ exit(3);
49 + }
50 +
51 +