Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/postgresql-server/files: postgresql-8.4-common.patch postgresql.init-8.4 postgresql.conf-8.4 postgresql-8.4-server.patch
Date: Wed, 09 Sep 2009 21:41:28
Message-Id: E1MlUus-00087Y-GY@stork.gentoo.org
1 patrick 09/09/09 21:41:26
2
3 Added: postgresql-8.4-common.patch postgresql.init-8.4
4 postgresql.conf-8.4 postgresql-8.4-server.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-server/files/postgresql-8.4-common.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql-8.4-common.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql-8.4-common.patch?rev=1.1&content-type=text/plain
14
15 Index: postgresql-8.4-common.patch
16 ===================================================================
17 === configure.in
18 ==================================================================
19 --- configure.in 2009-06-27 02:14:47.000000000 +0200
20 +++ configure.in 2009-07-09 15:05:02.000000000 +0200
21 @@ -19,10 +19,6 @@
22
23 AC_INIT([PostgreSQL], [8.4.0], [pgsql-bugs@××××××××××.org])
24
25 -m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.61], [], [m4_fatal([Autoconf version 2.61 is required.
26 -Untested combinations of 'autoconf' and PostgreSQL versions are not
27 -recommended. You can remove the check from 'configure.in' but it is then
28 -your responsibility whether the result works or not.])])
29 AC_COPYRIGHT([Copyright (c) 1996-2009, PostgreSQL Global Development Group])
30 AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
31 AC_CONFIG_AUX_DIR(config)
32 === src/include/storage/s_lock.h
33 ==================================================================
34 --- src/include/storage/s_lock.h 2009-01-01 18:24:01.000000000 +0100
35 +++ src/include/storage/s_lock.h 2009-07-09 15:03:08.000000000 +0200
36 @@ -298,6 +298,29 @@
37
38 #endif /* __s390__ || __s390x__ */
39
40 +#if defined(__sh__)
41 +#define HAS_TEST_AND_SET
42 +
43 +typedef unsigned char slock_t;
44 +
45 +#define TAS(lock) tas(lock)
46 +
47 +static __inline__ int
48 +tas(volatile slock_t *lock)
49 +{
50 + register int _res = 1;
51 +
52 + __asm__ __volatile__(
53 + "tas.b @%1\n\t"
54 + "movt %0\n\t"
55 + "xor #1,%0"
56 +: "=z"(_res)
57 +: "r"(lock)
58 +: "t","memory");
59 + return _res;
60 +}
61 +
62 +#endif /* __sh__ */
63
64 #if defined(__sparc__) /* Sparc */
65 #define HAS_TEST_AND_SET
66 === src/makefiles/Makefile.darwin
67 ==================================================================
68 --- src/makefiles/Makefile.darwin 2008-11-14 11:22:47.000000000 +0100
69 +++ src/makefiles/Makefile.darwin 2009-07-09 15:07:11.000000000 +0200
70 @@ -5,7 +5,15 @@
71 CFLAGS_SL =
72
73 ifdef PGXS
74 +ifdef PGXS_IN_SERVER
75 +ifndef PGXS_WITH_SERVER
76 +BE_DLLLIBS= -bundle_loader $(top_builddir)/src/backend/postgres
77 +else
78 +BE_DLLLIBS= -bundle_loader ${PGXS_WITH_SERVER}
79 +endif
80 +else
81 BE_DLLLIBS= -bundle_loader $(bindir)/postgres
82 +endif
83 else
84 BE_DLLLIBS= -bundle_loader $(top_builddir)/src/backend/postgres
85 endif
86
87
88
89 1.1 dev-db/postgresql-server/files/postgresql.init-8.4
90
91 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql.init-8.4?rev=1.1&view=markup
92 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql.init-8.4?rev=1.1&content-type=text/plain
93
94 Index: postgresql.init-8.4
95 ===================================================================
96 #!/sbin/runscript
97 # Copyright 1999-2009 Gentoo Foundation
98 # Distributed under the terms of the GNU General Public License v2
99 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/files/postgresql.init-8.4,v 1.1 2009/09/09 21:41:25 patrick Exp $
100
101 opts="${opts} reload"
102
103 depend() {
104 use net
105 if [ -L /etc/eselect/postgresql/service ] ; then
106 local p_service="$(for f in /etc/eselect/postgresql/service/* ; do source $f ; done ; echo $postgres_service )"
107 test "${p_service}" = "${SVCNAME}" && provide postgresql
108 fi
109 }
110
111 checkconfig() {
112 if [ ! -d "$PGDATA" ] ; then
113 eerror "Directory not found: $PGDATA"
114 eerror "Please make sure that PGDATA points to the right path."
115 eerror "You can run 'emerge postgresql-server --config' to setup a new database cluster."
116 return 1
117 fi
118 }
119
120 start() {
121 checkconfig || return 1
122
123 ebegin "Starting PostgreSQL"
124
125 if [ -f "$PGDATA/postmaster.pid" ] ; then
126 rm -f "$PGDATA/postmaster.pid"
127 fi
128
129 local retval
130
131 su -l ${PGUSER} \
132 -c "env PGDATA=\"${PGDATA}\" /usr/lib/postgresql-8.4/bin/pg_ctl start ${WAIT_FOR_START} -o '--silent-mode=true ${PGOPTS}'"
133 retval=$?
134 [ $retval -ne 0 ] && eend $retval && return $retval
135
136 # The following is to catch the case of an already running server
137 # in which pg_ctl doesn't know to which server it connected to and false reports the server as 'up'
138 sleep 2
139 if [ ! -f "$PGDATA/postmaster.pid" ] ; then
140 eerror "The pid-file doesn't exist but pg_ctl reported a running server."
141 eerror "Please check whether there is another server running on the same port or read the log-file."
142 eend 1
143 return 1
144 fi
145
146 local pid=$(grep "^[0-9]\+" "$PGDATA/postmaster.pid")
147 ps -p "${pid}" &> /dev/null
148 eend $?
149 }
150
151 stop() {
152 ebegin "Stopping PostgreSQL (this can take up to $(( ${WAIT_FOR_DISCONNECT} + ${WAIT_FOR_CLEANUP} )) seconds)"
153
154 local retval
155
156 su -l ${PGUSER} \
157 -c "env PGDATA=\"${PGDATA}\" /usr/lib/postgresql-8.4/bin/pg_ctl stop -t ${WAIT_FOR_DISCONNECT} -m smart"
158
159 retval=$?
160 [ $retval -eq 0 ] && eend $retval && return $retval
161
162 ewarn "Some clients did not disconnect within ${WAIT_FOR_DISCONNECT} seconds."
163 ewarn "Going to shutdown the server anyway."
164
165 su -l ${PGUSER} \
166 -c "env PGDATA=\"${PGDATA}\" /usr/lib/postgresql-8.4/bin/pg_ctl stop -m fast"
167
168 retval=$?
169 [ $retval -eq 0 ] && eend $retval && return $retval
170
171 if [ ${WAIT_FOR_QUIT} -eq 0 ] ; then
172 eerror "Server did not shut down and sending the SIGQUIT has been disabled."
173 eend $retval
174 return $retval
175 fi
176
177 ewarn "Shutting down the server gracefully failed."
178 ewarn "Forcing it to shutdown which leads to a recover-run on next startup."
179
180 su -l ${PGUSER} \
181 -c "env PGDATA=\"${PGDATA}\" /usr/lib/postgresql-8.4/bin/pg_ctl stop -m immediate"
182
183 retval=$?
184 [ $retval -eq 0 ] && eend $retval && return $retval
185
186 eerror "Forced shutdown failed!!! Something is wrong with your system, please take care of it manually."
187 eend $?
188 }
189
190 reload() {
191 ebegin "Reloading PostgreSQL configuration"
192 su -l ${PGUSER} \
193 -c "env PGDATA=\"${PGDATA}\" /usr/lib/postgresql-8.4/bin/pg_ctl reload"
194 eend $?
195 }
196
197
198
199 1.1 dev-db/postgresql-server/files/postgresql.conf-8.4
200
201 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql.conf-8.4?rev=1.1&view=markup
202 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql.conf-8.4?rev=1.1&content-type=text/plain
203
204 Index: postgresql.conf-8.4
205 ===================================================================
206 # PostgreSQL's Database Directory
207 PGDATA="/var/lib/postgresql/8.4/data"
208
209 # PostgreSQL User
210 PGUSER="postgres"
211
212 # PostgreSQL Group
213 PGGROUP="postgres"
214
215 # Extra options to run postmaster with, e.g.:
216 # -N is the maximal number of client connections
217 # -B is the number of shared buffers and has to be at least 2x the value for -N
218 # Please read the man-page to postmaster for more options. Many of these options
219 # can be set directly in the configuration-file.
220 #PGOPTS="-N 512 -B 1024"
221
222
223 # SERVER SHUTDOWN:
224 # The server will receive 3 signals in the worst case:
225 # 1. SIGTERM
226 # This signals the server to ignore new connections and to
227 # wait for all clients to end their transactions before shutting down.
228 # Use WAIT_FOR_DISCONNECT to control how much time the clients
229 # should have until the next signal is being sent.
230 # 2. SIGINT
231 # Tell the server to forcefully disconnect all clients.
232 # Terminating a client results in a rollback of the open transactions for this client.
233 # Use WAIT_FOR_CLEANUP to determine how much time the server has
234 # for cleanup.
235 # 3. SIGQUIT
236 # This will terminate the server immediately and results in a recovery run for the next start.
237
238 # Wait for clients to disconnect
239 WAIT_FOR_DISCONNECT=30
240
241 # Time the server has to clean up
242 WAIT_FOR_CLEANUP=60
243
244 # Time the server has to quit (with a recover-run on next startup)
245 # Set to 0 to deactivate it
246 WAIT_FOR_QUIT=60
247
248 # Comment this out if you don't want to wait for the server to
249 # startup before continuing. For example, if this server is a
250 # PITR log shipping based replication standby
251 WAIT_FOR_START="-w"
252
253 # If you have to export environment variables for the database process,
254 # this can be done here.
255 #
256 # Example:
257 # export R_HOME="/usr/lib/R"
258
259
260
261 1.1 dev-db/postgresql-server/files/postgresql-8.4-server.patch
262
263 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql-8.4-server.patch?rev=1.1&view=markup
264 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-server/files/postgresql-8.4-server.patch?rev=1.1&content-type=text/plain
265
266 Index: postgresql-8.4-server.patch
267 ===================================================================
268 diff -Naur postgresql-8.4.0.orig/contrib/adminpack/Makefile postgresql-8.4.0/contrib/adminpack/Makefile
269 --- postgresql-8.4.0.orig/contrib/adminpack/Makefile 2007-11-11 00:59:50.000000000 +0100
270 +++ postgresql-8.4.0/contrib/adminpack/Makefile 2009-07-09 18:10:56.000000000 +0200
271 @@ -1,7 +1,7 @@
272 # $PostgreSQL: pgsql/contrib/adminpack/Makefile,v 1.6 2007/11/10 23:59:50 momjian Exp $
273
274 MODULE_big = adminpack
275 -PG_CPPFLAGS = -I$(libpq_srcdir)
276 +PG_CPPFLAGS = -I$(libpq_srcdir) -I../../src/include/
277 DATA_built = adminpack.sql
278 DATA = uninstall_adminpack.sql
279 OBJS = adminpack.o
280 diff -Naur postgresql-8.4.0.orig/contrib/dblink/Makefile postgresql-8.4.0/contrib/dblink/Makefile
281 --- postgresql-8.4.0.orig/contrib/dblink/Makefile 2007-11-11 00:59:50.000000000 +0100
282 +++ postgresql-8.4.0/contrib/dblink/Makefile 2009-07-09 22:22:02.000000000 +0200
283 @@ -1,7 +1,7 @@
284 # $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.15 2007/11/10 23:59:50 momjian Exp $
285
286 MODULE_big = dblink
287 -PG_CPPFLAGS = -I$(libpq_srcdir)
288 +PG_CPPFLAGS = -I$(libpq_srcdir) -I../../src/include/
289 OBJS = dblink.o
290 SHLIB_LINK = $(libpq)
291
292 diff -Naur postgresql-8.4.0.orig/contrib/Makefile postgresql-8.4.0/contrib/Makefile
293 --- postgresql-8.4.0.orig/contrib/Makefile 2009-03-26 00:20:01.000000000 +0100
294 +++ postgresql-8.4.0/contrib/Makefile 2009-07-09 18:13:23.000000000 +0200
295 @@ -23,23 +23,20 @@
296 isn \
297 lo \
298 ltree \
299 - oid2name \
300 pageinspect \
301 pg_buffercache \
302 pg_freespacemap \
303 pg_standby \
304 pg_stat_statements \
305 pg_trgm \
306 - pgbench \
307 pgcrypto \
308 pgrowlocks \
309 pgstattuple \
310 seg \
311 spi \
312 tablefunc \
313 - test_parser \
314 tsearch2 \
315 - vacuumlo
316 + test_parser
317
318 ifeq ($(with_openssl),yes)
319 WANTED_DIRS += sslinfo
320 diff -Naur postgresql-8.4.0.orig/contrib/uuid-ossp/Makefile postgresql-8.4.0/contrib/uuid-ossp/Makefile
321 --- postgresql-8.4.0.orig/contrib/uuid-ossp/Makefile 2007-11-13 01:13:19.000000000 +0100
322 +++ postgresql-8.4.0/contrib/uuid-ossp/Makefile 2009-07-09 19:12:44.000000000 +0200
323 @@ -1,11 +1,13 @@
324 # $PostgreSQL: pgsql/contrib/uuid-ossp/Makefile,v 1.4 2007/11/13 00:13:19 tgl Exp $
325
326 +PG_CPPFLAGS += "-DHAVE_OSSP_UUID_H"
327 +
328 MODULE_big = uuid-ossp
329 OBJS = uuid-ossp.o
330 DATA_built = uuid-ossp.sql
331 DATA = uninstall_uuid-ossp.sql
332
333 -SHLIB_LINK += $(OSSP_UUID_LIBS)
334 +SHLIB_LINK += -lossp-uuid
335
336 ifdef USE_PGXS
337 PG_CONFIG = pg_config
338 diff -Naur postgresql-8.4.0.orig/contrib/xml2/Makefile postgresql-8.4.0/contrib/xml2/Makefile
339 --- postgresql-8.4.0.orig/contrib/xml2/Makefile 2008-05-08 18:49:37.000000000 +0200
340 +++ postgresql-8.4.0/contrib/xml2/Makefile 2009-07-09 19:14:32.000000000 +0200
341 @@ -4,7 +4,8 @@
342
343 OBJS = $(if $(filter -lxslt, $(LIBS)), xpath.o xslt_proc.o, xpath.o)
344
345 -SHLIB_LINK += $(filter -lxslt, $(LIBS)) $(filter -lxml2, $(LIBS))
346 +PG_CPPFLAGS = $(shell xml2-config --cflags)
347 +SHLIB_LINK += $(shell xml2-config --libs) $(shell xslt-config --libs)
348
349 DATA_built = pgxml.sql
350 DATA = uninstall_pgxml.sql
351 diff -Naur postgresql-8.4.0.orig/GNUmakefile.in postgresql-8.4.0/GNUmakefile.in
352 --- postgresql-8.4.0.orig/GNUmakefile.in 2009-01-15 02:53:49.000000000 +0100
353 +++ postgresql-8.4.0/GNUmakefile.in 2009-07-09 19:16:19.000000000 +0200
354 @@ -11,19 +11,16 @@
355 all:
356 $(MAKE) -C doc all
357 $(MAKE) -C src all
358 - $(MAKE) -C config all
359 @echo "All of PostgreSQL successfully made. Ready to install."
360
361 install:
362 $(MAKE) -C doc $@
363 $(MAKE) -C src $@
364 - $(MAKE) -C config $@
365 @echo "PostgreSQL installation complete."
366
367 installdirs uninstall:
368 $(MAKE) -C doc $@
369 $(MAKE) -C src $@
370 - $(MAKE) -C config $@
371
372 distprep:
373 $(MAKE) -C doc $@
374 diff -Naur postgresql-8.4.0.orig/src/bin/initdb/Makefile postgresql-8.4.0/src/bin/initdb/Makefile
375 --- postgresql-8.4.0.orig/src/bin/initdb/Makefile 2009-01-01 18:23:53.000000000 +0100
376 +++ postgresql-8.4.0/src/bin/initdb/Makefile 2009-07-09 19:17:40.000000000 +0200
377 @@ -14,7 +14,7 @@
378 top_builddir = ../../..
379 include $(top_builddir)/src/Makefile.global
380
381 -override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
382 +override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/libpq $(CPPFLAGS)
383
384 OBJS= initdb.o encnames.o pqsignal.o $(WIN32RES)
385
386 diff -Naur postgresql-8.4.0.orig/src/bin/Makefile postgresql-8.4.0/src/bin/Makefile
387 --- postgresql-8.4.0.orig/src/bin/Makefile 2009-01-01 18:23:53.000000000 +0100
388 +++ postgresql-8.4.0/src/bin/Makefile 2009-07-09 19:18:21.000000000 +0200
389 @@ -13,8 +13,8 @@
390 top_builddir = ../..
391 include $(top_builddir)/src/Makefile.global
392
393 -DIRS = initdb pg_ctl pg_dump \
394 - psql scripts pg_config pg_controldata pg_resetxlog
395 +DIRS = initdb pg_ctl \
396 + pg_controldata pg_resetxlog
397 ifeq ($(PORTNAME), win32)
398 DIRS+=pgevent
399 endif
400 diff -Naur postgresql-8.4.0.orig/src/include/pg_config_manual.h postgresql-8.4.0/src/include/pg_config_manual.h
401 --- postgresql-8.4.0.orig/src/include/pg_config_manual.h 2009-06-11 16:49:08.000000000 +0200
402 +++ postgresql-8.4.0/src/include/pg_config_manual.h 2009-07-09 19:19:40.000000000 +0200
403 @@ -146,7 +146,7 @@
404 * here's where to twiddle it. You can also override this at runtime
405 * with the postmaster's -k switch.
406 */
407 -#define DEFAULT_PGSOCKET_DIR "/tmp"
408 +#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql"
409
410 /*
411 * The random() function is expected to yield values between 0 and
412 diff -Naur postgresql-8.4.0.orig/src/Makefile postgresql-8.4.0/src/Makefile
413 --- postgresql-8.4.0.orig/src/Makefile 2009-02-24 11:06:32.000000000 +0100
414 +++ postgresql-8.4.0/src/Makefile 2009-07-09 19:20:44.000000000 +0200
415 @@ -19,14 +19,11 @@
416 $(MAKE) -C backend $@
417 $(MAKE) -C backend/utils/mb/conversion_procs $@
418 $(MAKE) -C backend/snowball $@
419 - $(MAKE) -C include $@
420 - $(MAKE) -C interfaces $@
421 $(MAKE) -C bin $@
422 $(MAKE) -C pl $@
423 - $(MAKE) -C makefiles $@
424 $(MAKE) -C test/regress $@
425
426 -install: install-local
427 +install:
428
429 install-local: installdirs-local
430 $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
431 diff -Naur postgresql-8.4.0.orig/src/Makefile.global.in postgresql-8.4.0/src/Makefile.global.in
432 --- postgresql-8.4.0.orig/src/Makefile.global.in 2009-06-23 05:46:00.000000000 +0200
433 +++ postgresql-8.4.0/src/Makefile.global.in 2009-07-09 19:39:46.000000000 +0200
434 @@ -443,6 +441,8 @@
435 LDFLAGS += $(PROFILE)
436 endif
437
438 +CFLAGS += -I${top_srcdir}/src/include
439 +
440
441 ##########################################################################
442 #
443 diff -Naur postgresql-8.4.0.orig/src/port/Makefile postgresql-8.4.0/src/port/Makefile
444 --- postgresql-8.4.0.orig/src/port/Makefile 2008-11-25 19:19:31.000000000 +0100
445 +++ postgresql-8.4.0/src/port/Makefile 2009-07-09 19:24:34.000000000 +0200
446 @@ -39,11 +39,10 @@
447 # foo_srv.o and foo.o are both built from foo.c, but only foo.o has -DFRONTEND
448 OBJS_SRV = $(OBJS:%.o=%_srv.o)
449
450 -all: libpgport.a libpgport_srv.a
451 +all: libpgport_srv.a
452
453 # libpgport is needed by some contrib
454 -install: all installdirs
455 - $(INSTALL_STLIB) libpgport.a '$(DESTDIR)$(libdir)/libpgport.a'
456 +install:
457
458 installdirs:
459 $(mkinstalldirs) '$(DESTDIR)$(libdir)'
460 diff -Naur postgresql-8.4.0.orig/src/test/regress/GNUmakefile postgresql-8.4.0/src/test/regress/GNUmakefile
461 --- postgresql-8.4.0.orig/src/test/regress/GNUmakefile 2009-01-01 18:24:04.000000000 +0100
462 +++ postgresql-8.4.0/src/test/regress/GNUmakefile 2009-07-09 19:28:25.000000000 +0200
463 @@ -141,7 +141,7 @@
464 pg_regress_call = ./pg_regress --inputdir=$(srcdir) --dlpath=. --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
465
466 check: all
467 - $(pg_regress_call) --temp-install=./tmp_check --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(TEMP_CONF)
468 + $(pg_regress_call) --temp-install=./tmp_check --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(TEMP_CONF) --psqldir=/usr/lib/postgresql-${SLOT}/bin/
469
470 installcheck: all
471 $(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule