1 |
patrick 09/09/09 21:40:31 |
2 |
|
3 |
Added: postgresql-8.4-base.patch |
4 |
postgresql-8.4-common.patch |
5 |
Log: |
6 |
Bump to 8.4.0. Fixes #276125 |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-db/postgresql-base/files/postgresql-8.4-base.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/files/postgresql-8.4-base.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/files/postgresql-8.4-base.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: postgresql-8.4-base.patch |
16 |
=================================================================== |
17 |
diff -Naur postgresql-8.4.0.orig/contrib/Makefile postgresql-8.4.0/contrib/Makefile |
18 |
--- postgresql-8.4.0.orig/contrib/Makefile 2009-03-26 00:20:01.000000000 +0100 |
19 |
+++ postgresql-8.4.0/contrib/Makefile 2009-07-09 21:17:38.000000000 +0200 |
20 |
@@ -5,46 +5,10 @@ |
21 |
include $(top_builddir)/src/Makefile.global |
22 |
|
23 |
WANTED_DIRS = \ |
24 |
- adminpack \ |
25 |
- auto_explain \ |
26 |
- btree_gin \ |
27 |
- btree_gist \ |
28 |
- chkpass \ |
29 |
- citext \ |
30 |
- cube \ |
31 |
- dblink \ |
32 |
- dict_int \ |
33 |
- dict_xsyn \ |
34 |
- earthdistance \ |
35 |
- fuzzystrmatch \ |
36 |
- hstore \ |
37 |
- intagg \ |
38 |
- intarray \ |
39 |
- isn \ |
40 |
- lo \ |
41 |
- ltree \ |
42 |
oid2name \ |
43 |
- pageinspect \ |
44 |
- pg_buffercache \ |
45 |
- pg_freespacemap \ |
46 |
- pg_standby \ |
47 |
- pg_stat_statements \ |
48 |
- pg_trgm \ |
49 |
pgbench \ |
50 |
- pgcrypto \ |
51 |
- pgrowlocks \ |
52 |
- pgstattuple \ |
53 |
- seg \ |
54 |
- spi \ |
55 |
- tablefunc \ |
56 |
- test_parser \ |
57 |
- tsearch2 \ |
58 |
vacuumlo |
59 |
|
60 |
-ifeq ($(with_openssl),yes) |
61 |
-WANTED_DIRS += sslinfo |
62 |
-endif |
63 |
- |
64 |
ifeq ($(with_ossp_uuid),yes) |
65 |
WANTED_DIRS += uuid-ossp |
66 |
endif |
67 |
diff -Naur postgresql-8.4.0.orig/src/backend/Makefile postgresql-8.4.0/src/backend/Makefile |
68 |
--- postgresql-8.4.0.orig/src/backend/Makefile 2009-01-01 18:23:34.000000000 +0100 |
69 |
+++ postgresql-8.4.0/src/backend/Makefile 2009-07-09 21:22:13.000000000 +0200 |
70 |
@@ -36,7 +36,7 @@ |
71 |
|
72 |
########################################################################## |
73 |
|
74 |
-all: submake-libpgport postgres $(POSTGRES_IMP) |
75 |
+all: someheaders |
76 |
|
77 |
ifneq ($(PORTNAME), cygwin) |
78 |
ifneq ($(PORTNAME), win32) |
79 |
@@ -105,7 +105,7 @@ |
80 |
endif # aix |
81 |
|
82 |
# Update the commonly used headers before building the subdirectories |
83 |
-$(SUBDIRS:%=%-recursive): $(top_builddir)/src/include/parser/gram.h $(top_builddir)/src/include/utils/fmgroids.h $(top_builddir)/src/include/utils/probes.h |
84 |
+someheaders $(SUBDIRS:%=%-recursive): $(top_builddir)/src/include/parser/gram.h $(top_builddir)/src/include/utils/fmgroids.h $(top_builddir)/src/include/utils/probes.h |
85 |
|
86 |
|
87 |
# The postgres.o target is needed by the rule in Makefile.global that |
88 |
@@ -161,23 +161,7 @@ |
89 |
|
90 |
########################################################################## |
91 |
|
92 |
-install: all installdirs install-bin |
93 |
-ifeq ($(PORTNAME), cygwin) |
94 |
-ifeq ($(MAKE_DLL), true) |
95 |
- $(INSTALL_DATA) libpostgres.a '$(DESTDIR)$(libdir)/libpostgres.a' |
96 |
-endif |
97 |
-endif |
98 |
-ifeq ($(PORTNAME), win32) |
99 |
-ifeq ($(MAKE_DLL), true) |
100 |
- $(INSTALL_DATA) libpostgres.a '$(DESTDIR)$(libdir)/libpostgres.a' |
101 |
-endif |
102 |
-endif |
103 |
- $(MAKE) -C catalog install-data |
104 |
- $(MAKE) -C tsearch install-data |
105 |
- $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample '$(DESTDIR)$(datadir)/pg_hba.conf.sample' |
106 |
- $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample '$(DESTDIR)$(datadir)/pg_ident.conf.sample' |
107 |
- $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample '$(DESTDIR)$(datadir)/postgresql.conf.sample' |
108 |
- $(INSTALL_DATA) $(srcdir)/access/transam/recovery.conf.sample '$(DESTDIR)$(datadir)/recovery.conf.sample' |
109 |
+install: |
110 |
|
111 |
install-bin: postgres $(POSTGRES_IMP) installdirs |
112 |
$(INSTALL_PROGRAM) postgres$(X) '$(DESTDIR)$(bindir)/postgres$(X)' |
113 |
diff -Naur postgresql-8.4.0.orig/src/bin/Makefile postgresql-8.4.0/src/bin/Makefile |
114 |
--- postgresql-8.4.0.orig/src/bin/Makefile 2009-01-01 18:23:53.000000000 +0100 |
115 |
+++ postgresql-8.4.0/src/bin/Makefile 2009-07-09 21:27:09.000000000 +0200 |
116 |
@@ -13,8 +13,8 @@ |
117 |
top_builddir = ../.. |
118 |
include $(top_builddir)/src/Makefile.global |
119 |
|
120 |
-DIRS = initdb pg_ctl pg_dump \ |
121 |
- psql scripts pg_config pg_controldata pg_resetxlog |
122 |
+DIRS = pg_dump \ |
123 |
+ psql scripts pg_config |
124 |
ifeq ($(PORTNAME), win32) |
125 |
DIRS+=pgevent |
126 |
endif |
127 |
diff -Naur postgresql-8.4.0.orig/src/include/pg_config_manual.h postgresql-8.4.0/src/include/pg_config_manual.h |
128 |
--- postgresql-8.4.0.orig/src/include/pg_config_manual.h 2009-06-11 16:49:08.000000000 +0200 |
129 |
+++ postgresql-8.4.0/src/include/pg_config_manual.h 2009-07-09 21:27:44.000000000 +0200 |
130 |
@@ -146,7 +146,7 @@ |
131 |
* here's where to twiddle it. You can also override this at runtime |
132 |
* with the postmaster's -k switch. |
133 |
*/ |
134 |
-#define DEFAULT_PGSOCKET_DIR "/tmp" |
135 |
+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" |
136 |
|
137 |
/* |
138 |
* The random() function is expected to yield values between 0 and |
139 |
diff -Naur postgresql-8.4.0.orig/src/Makefile postgresql-8.4.0/src/Makefile |
140 |
--- postgresql-8.4.0.orig/src/Makefile 2009-02-24 11:06:32.000000000 +0100 |
141 |
+++ postgresql-8.4.0/src/Makefile 2009-07-09 21:18:20.000000000 +0200 |
142 |
@@ -15,16 +15,11 @@ |
143 |
|
144 |
all install installdirs uninstall distprep: |
145 |
$(MAKE) -C port $@ |
146 |
- $(MAKE) -C timezone $@ |
147 |
$(MAKE) -C backend $@ |
148 |
- $(MAKE) -C backend/utils/mb/conversion_procs $@ |
149 |
- $(MAKE) -C backend/snowball $@ |
150 |
$(MAKE) -C include $@ |
151 |
$(MAKE) -C interfaces $@ |
152 |
$(MAKE) -C bin $@ |
153 |
- $(MAKE) -C pl $@ |
154 |
$(MAKE) -C makefiles $@ |
155 |
- $(MAKE) -C test/regress $@ |
156 |
|
157 |
install: install-local |
158 |
|
159 |
|
160 |
|
161 |
|
162 |
1.1 dev-db/postgresql-base/files/postgresql-8.4-common.patch |
163 |
|
164 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/files/postgresql-8.4-common.patch?rev=1.1&view=markup |
165 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/files/postgresql-8.4-common.patch?rev=1.1&content-type=text/plain |
166 |
|
167 |
Index: postgresql-8.4-common.patch |
168 |
=================================================================== |
169 |
=== configure.in |
170 |
================================================================== |
171 |
--- configure.in 2009-06-27 02:14:47.000000000 +0200 |
172 |
+++ configure.in 2009-07-09 15:05:02.000000000 +0200 |
173 |
@@ -19,10 +19,6 @@ |
174 |
|
175 |
AC_INIT([PostgreSQL], [8.4.0], [pgsql-bugs@××××××××××.org]) |
176 |
|
177 |
-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.61], [], [m4_fatal([Autoconf version 2.61 is required. |
178 |
-Untested combinations of 'autoconf' and PostgreSQL versions are not |
179 |
-recommended. You can remove the check from 'configure.in' but it is then |
180 |
-your responsibility whether the result works or not.])]) |
181 |
AC_COPYRIGHT([Copyright (c) 1996-2009, PostgreSQL Global Development Group]) |
182 |
AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) |
183 |
AC_CONFIG_AUX_DIR(config) |
184 |
=== src/include/storage/s_lock.h |
185 |
================================================================== |
186 |
--- src/include/storage/s_lock.h 2009-01-01 18:24:01.000000000 +0100 |
187 |
+++ src/include/storage/s_lock.h 2009-07-09 15:03:08.000000000 +0200 |
188 |
@@ -298,6 +298,29 @@ |
189 |
|
190 |
#endif /* __s390__ || __s390x__ */ |
191 |
|
192 |
+#if defined(__sh__) |
193 |
+#define HAS_TEST_AND_SET |
194 |
+ |
195 |
+typedef unsigned char slock_t; |
196 |
+ |
197 |
+#define TAS(lock) tas(lock) |
198 |
+ |
199 |
+static __inline__ int |
200 |
+tas(volatile slock_t *lock) |
201 |
+{ |
202 |
+ register int _res = 1; |
203 |
+ |
204 |
+ __asm__ __volatile__( |
205 |
+ "tas.b @%1\n\t" |
206 |
+ "movt %0\n\t" |
207 |
+ "xor #1,%0" |
208 |
+: "=z"(_res) |
209 |
+: "r"(lock) |
210 |
+: "t","memory"); |
211 |
+ return _res; |
212 |
+} |
213 |
+ |
214 |
+#endif /* __sh__ */ |
215 |
|
216 |
#if defined(__sparc__) /* Sparc */ |
217 |
#define HAS_TEST_AND_SET |
218 |
=== src/makefiles/Makefile.darwin |
219 |
================================================================== |
220 |
--- src/makefiles/Makefile.darwin 2008-11-14 11:22:47.000000000 +0100 |
221 |
+++ src/makefiles/Makefile.darwin 2009-07-09 15:07:11.000000000 +0200 |
222 |
@@ -5,7 +5,15 @@ |
223 |
CFLAGS_SL = |
224 |
|
225 |
ifdef PGXS |
226 |
+ifdef PGXS_IN_SERVER |
227 |
+ifndef PGXS_WITH_SERVER |
228 |
+BE_DLLLIBS= -bundle_loader $(top_builddir)/src/backend/postgres |
229 |
+else |
230 |
+BE_DLLLIBS= -bundle_loader ${PGXS_WITH_SERVER} |
231 |
+endif |
232 |
+else |
233 |
BE_DLLLIBS= -bundle_loader $(bindir)/postgres |
234 |
+endif |
235 |
else |
236 |
BE_DLLLIBS= -bundle_loader $(top_builddir)/src/backend/postgres |
237 |
endif |