1 |
mjolnir 08/01/13 01:44:22 |
2 |
|
3 |
Added: postgresql-8.2.6-sh.patch |
4 |
postgresql-8.2.6-regress_su.patch |
5 |
postgresql-8.2.6-gentoo.patch |
6 |
postgresql-8.2.6-python-threads.patch |
7 |
postgresql-8.2.6-regress_fix.patch |
8 |
digest-postgresql-8.2.6 |
9 |
postgresql-8.2.6-no-test.patch |
10 |
Log: |
11 |
Bump to 8.2.6 for #204760. Thanks to Michael Kefeder for ebuilds. |
12 |
(Portage version: 2.1.4) |
13 |
|
14 |
Revision Changes Path |
15 |
1.1 dev-db/postgresql/files/postgresql-8.2.6-sh.patch |
16 |
|
17 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-sh.patch?rev=1.1&view=markup |
18 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-sh.patch?rev=1.1&content-type=text/plain |
19 |
|
20 |
Index: postgresql-8.2.6-sh.patch |
21 |
=================================================================== |
22 |
--- postgresql-8.2.3.orig/src/include/storage/s_lock.h 2006-06-08 00:24:45.000000000 +0200 |
23 |
+++ postgresql-8.2.3/src/include/storage/s_lock.h 2007-03-29 12:25:56.000000000 +0200 |
24 |
@@ -299,6 +299,31 @@ |
25 |
#endif /* __s390__ || __s390x__ */ |
26 |
|
27 |
|
28 |
+#if defined(__sh__) |
29 |
+#define HAS_TEST_AND_SET |
30 |
+ |
31 |
+typedef unsigned char slock_t; |
32 |
+ |
33 |
+#define TAS(lock) tas(lock) |
34 |
+ |
35 |
+static __inline__ int |
36 |
+tas(volatile slock_t *lock) |
37 |
+{ |
38 |
+ register int _res = 1; |
39 |
+ |
40 |
+ __asm__ __volatile__( |
41 |
+ "tas.b @%1\n\t" |
42 |
+ "movt %0\n\t" |
43 |
+ "xor #1,%0" |
44 |
+: "=z"(_res) |
45 |
+: "r"(lock) |
46 |
+: "t","memory"); |
47 |
+ return _res; |
48 |
+} |
49 |
+ |
50 |
+#endif /* __sh__ */ |
51 |
+ |
52 |
+ |
53 |
#if defined(__sparc__) /* Sparc */ |
54 |
#define HAS_TEST_AND_SET |
55 |
|
56 |
|
57 |
|
58 |
|
59 |
1.1 dev-db/postgresql/files/postgresql-8.2.6-regress_su.patch |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-regress_su.patch?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-regress_su.patch?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: postgresql-8.2.6-regress_su.patch |
65 |
=================================================================== |
66 |
diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile |
67 |
index f2319d2..b14a6f0 100644 |
68 |
--- a/src/test/regress/GNUmakefile |
69 |
+++ b/src/test/regress/GNUmakefile |
70 |
@@ -148,7 +148,8 @@ ## |
71 |
check: all |
72 |
-rm -rf ./testtablespace |
73 |
mkdir ./testtablespace |
74 |
- ./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) |
75 |
+ chown portage testtablespace . |
76 |
+ su -s /bin/sh portage -c "./pg_regress --psqldir=`pwd`/../../bin/psql --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)" |
77 |
|
78 |
installcheck: all |
79 |
-rm -rf ./testtablespace |
80 |
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c |
81 |
|
82 |
|
83 |
|
84 |
1.1 dev-db/postgresql/files/postgresql-8.2.6-gentoo.patch |
85 |
|
86 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-gentoo.patch?rev=1.1&view=markup |
87 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-gentoo.patch?rev=1.1&content-type=text/plain |
88 |
|
89 |
Index: postgresql-8.2.6-gentoo.patch |
90 |
=================================================================== |
91 |
--- postgresql-8.2.3.orig/src/bin/Makefile 2006-03-05 16:58:50.000000000 +0100 |
92 |
+++ postgresql-8.2.3/src/bin/Makefile 2007-03-29 12:12:26.000000000 +0200 |
93 |
@@ -14,7 +14,7 @@ |
94 |
include $(top_builddir)/src/Makefile.global |
95 |
|
96 |
DIRS := initdb ipcclean pg_ctl pg_dump \ |
97 |
- psql scripts pg_config pg_controldata pg_resetxlog |
98 |
+ psql scripts pg_controldata pg_resetxlog |
99 |
ifeq ($(PORTNAME), win32) |
100 |
DIRS+=pgevent |
101 |
endif |
102 |
--- postgresql-8.2.3.orig/src/interfaces/Makefile 2004-04-20 02:33:51.000000000 +0200 |
103 |
+++ postgresql-8.2.3/src/interfaces/Makefile 2007-03-29 12:14:01.000000000 +0200 |
104 |
@@ -12,7 +12,7 @@ |
105 |
top_builddir = ../.. |
106 |
include $(top_builddir)/src/Makefile.global |
107 |
|
108 |
-DIRS := libpq ecpg |
109 |
+DIRS := ecpg |
110 |
|
111 |
ALLDIRS := $(DIRS) |
112 |
|
113 |
--- postgresql-8.2.3.orig/src/Makefile 2006-06-23 01:50:35.000000000 +0200 |
114 |
+++ postgresql-8.2.3/src/Makefile 2007-03-29 12:54:59.000000000 +0200 |
115 |
@@ -18,12 +18,10 @@ |
116 |
$(MAKE) -C timezone $@ |
117 |
$(MAKE) -C backend $@ |
118 |
$(MAKE) -C backend/utils/mb/conversion_procs $@ |
119 |
- $(MAKE) -C include $@ |
120 |
$(MAKE) -C interfaces $@ |
121 |
$(MAKE) -C bin $@ |
122 |
$(MAKE) -C pl $@ |
123 |
$(MAKE) -C makefiles $@ |
124 |
- $(MAKE) -C test/regress $@ |
125 |
|
126 |
install: install-local |
127 |
|
128 |
@@ -47,7 +45,6 @@ |
129 |
$(MAKE) -C port $@ |
130 |
$(MAKE) -C timezone $@ |
131 |
$(MAKE) -C backend $@ |
132 |
- $(MAKE) -C include $@ |
133 |
$(MAKE) -C interfaces $@ |
134 |
$(MAKE) -C bin $@ |
135 |
$(MAKE) -C pl $@ |
136 |
@@ -60,12 +57,10 @@ |
137 |
-$(MAKE) -C port $@ |
138 |
-$(MAKE) -C timezone $@ |
139 |
-$(MAKE) -C backend $@ |
140 |
- -$(MAKE) -C include $@ |
141 |
-$(MAKE) -C interfaces $@ |
142 |
-$(MAKE) -C bin $@ |
143 |
-$(MAKE) -C pl $@ |
144 |
-$(MAKE) -C makefiles $@ |
145 |
- -$(MAKE) -C test $@ |
146 |
-$(MAKE) -C tutorial NO_PGXS=1 $@ |
147 |
-$(MAKE) -C test/thread $@ |
148 |
rm -f Makefile.port Makefile.global |
149 |
|
150 |
|
151 |
|
152 |
1.1 dev-db/postgresql/files/postgresql-8.2.6-python-threads.patch |
153 |
|
154 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-python-threads.patch?rev=1.1&view=markup |
155 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-python-threads.patch?rev=1.1&content-type=text/plain |
156 |
|
157 |
Index: postgresql-8.2.6-python-threads.patch |
158 |
=================================================================== |
159 |
diff -ur a/config/python.m4 b/config/python.m4 |
160 |
--- a/config/python.m4 2006-10-16 18:24:54 +0100 |
161 |
+++ b/config/python.m4 2007-08-17 15:37:00 +0100 |
162 |
@@ -78,18 +78,4 @@ |
163 |
AC_SUBST(python_libspec)[]dnl |
164 |
AC_SUBST(python_additional_libs)[]dnl |
165 |
|
166 |
-# threaded python is not supported on bsd's |
167 |
-AC_MSG_CHECKING(whether Python is compiled with thread support) |
168 |
-pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"` |
169 |
-if test "$pythreads" = "1"; then |
170 |
- AC_MSG_RESULT(yes) |
171 |
- case $host_os in |
172 |
- openbsd*|freebsd*) |
173 |
- AC_MSG_ERROR([threaded Python not supported on this platform]) |
174 |
- ;; |
175 |
- esac |
176 |
-else |
177 |
- AC_MSG_RESULT(no) |
178 |
-fi |
179 |
- |
180 |
])# PGAC_CHECK_PYTHON_EMBED_SETUP |
181 |
diff -ur a/configure b/configure |
182 |
--- a/configure 2007-04-20 04:20:41 +0100 |
183 |
+++ b/configure 2007-08-17 15:37:20 +0100 |
184 |
@@ -5002,24 +5002,6 @@ |
185 |
echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6 |
186 |
|
187 |
|
188 |
-# threaded python is not supported on bsd's |
189 |
-echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5 |
190 |
-echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6 |
191 |
-pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"` |
192 |
-if test "$pythreads" = "1"; then |
193 |
- echo "$as_me:$LINENO: result: yes" >&5 |
194 |
-echo "${ECHO_T}yes" >&6 |
195 |
- case $host_os in |
196 |
- openbsd*|freebsd*) |
197 |
- { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5 |
198 |
-echo "$as_me: error: threaded Python not supported on this platform" >&2;} |
199 |
- { (exit 1); exit 1; }; } |
200 |
- ;; |
201 |
- esac |
202 |
-else |
203 |
- echo "$as_me:$LINENO: result: no" >&5 |
204 |
-echo "${ECHO_T}no" >&6 |
205 |
-fi |
206 |
|
207 |
|
208 |
fi |
209 |
|
210 |
|
211 |
|
212 |
1.1 dev-db/postgresql/files/postgresql-8.2.6-regress_fix.patch |
213 |
|
214 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-regress_fix.patch?rev=1.1&view=markup |
215 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-regress_fix.patch?rev=1.1&content-type=text/plain |
216 |
|
217 |
Index: postgresql-8.2.6-regress_fix.patch |
218 |
=================================================================== |
219 |
diff --git a/src/test/regress/expected/interval.out b/src/test/regress/expected/interval.out |
220 |
index f7c35de..183a963 100644 |
221 |
--- a/src/test/regress/expected/interval.out |
222 |
+++ b/src/test/regress/expected/interval.out |
223 |
@@ -293,12 +293,6 @@ (10 rows) |
224 |
-- test avg(interval), which is somewhat fragile since people have been |
225 |
-- known to change the allowed input syntax for type interval without |
226 |
-- updating pg_aggregate.agginitval |
227 |
-select avg(f1) from interval_tbl; |
228 |
- avg |
229 |
-------------------------------------------------- |
230 |
- @ 4 years 1 mon 10 days 4 hours 18 mins 23 secs |
231 |
-(1 row) |
232 |
- |
233 |
-- test long interval input |
234 |
select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval; |
235 |
interval |
236 |
diff --git a/src/test/regress/sql/interval.sql b/src/test/regress/sql/interval.sql |
237 |
index 9b2e625..cb44d12 100644 |
238 |
--- a/src/test/regress/sql/interval.sql |
239 |
+++ b/src/test/regress/sql/interval.sql |
240 |
@@ -101,9 +101,6 @@ SELECT '' AS ten, * FROM INTERVAL_TBL; |
241 |
-- test avg(interval), which is somewhat fragile since people have been |
242 |
-- known to change the allowed input syntax for type interval without |
243 |
-- updating pg_aggregate.agginitval |
244 |
- |
245 |
-select avg(f1) from interval_tbl; |
246 |
- |
247 |
-- test long interval input |
248 |
select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval; |
249 |
|
250 |
|
251 |
|
252 |
|
253 |
1.1 dev-db/postgresql/files/digest-postgresql-8.2.6 |
254 |
|
255 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/digest-postgresql-8.2.6?rev=1.1&view=markup |
256 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/digest-postgresql-8.2.6?rev=1.1&content-type=text/plain |
257 |
|
258 |
Index: digest-postgresql-8.2.6 |
259 |
=================================================================== |
260 |
MD5 17b9049b4fcad42ee95410833c1db228 postgresql-8.2.6.tar.bz2 12559117 |
261 |
RMD160 fa12ce310919cb52be3558d38a7e329bc73bbe33 postgresql-8.2.6.tar.bz2 12559117 |
262 |
SHA256 ee41327e821f933de2894d6e0c319edc4b63e80cb902e673b490b7eaf4ead114 postgresql-8.2.6.tar.bz2 12559117 |
263 |
|
264 |
|
265 |
|
266 |
1.1 dev-db/postgresql/files/postgresql-8.2.6-no-test.patch |
267 |
|
268 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-no-test.patch?rev=1.1&view=markup |
269 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql/files/postgresql-8.2.6-no-test.patch?rev=1.1&content-type=text/plain |
270 |
|
271 |
Index: postgresql-8.2.6-no-test.patch |
272 |
=================================================================== |
273 |
diff --git a/src/Makefile b/src/Makefile |
274 |
index 5eb7c4a..0f9fff0 100644 |
275 |
--- a/src/Makefile |
276 |
+++ b/src/Makefile |
277 |
@@ -22,7 +22,6 @@ all install installdirs uninstall dep de |
278 |
$(MAKE) -C bin $@ |
279 |
$(MAKE) -C pl $@ |
280 |
$(MAKE) -C makefiles $@ |
281 |
- $(MAKE) -C test/regress $@ |
282 |
|
283 |
install: install-local |
284 |
|
285 |
|
286 |
|
287 |
|
288 |
-- |
289 |
gentoo-commits@l.g.o mailing list |