1 |
jer 08/09/04 05:12:14 |
2 |
|
3 |
Added: xdelta-1.1.4-glib2.patch xdelta-1.1.4-m4.patch |
4 |
xdelta-1.1.4-pkgconfig.patch |
5 |
Log: |
6 |
Version bump thanks to Zeev Tarantov (bug #236639). Marked ~hppa too. |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7-JeR i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-util/xdelta/files/xdelta-1.1.4-glib2.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: xdelta-1.1.4-glib2.patch |
16 |
=================================================================== |
17 |
Nicked from http://cvs.fedoraproject.org/viewvc/devel/xdelta/xdelta-1.1.4-glib2.patch |
18 |
|
19 |
|
20 |
--- xdelta-1.1.4pre1/libedsio/edsio.c.glib2 2007-01-29 14:55:10.000000000 +0100 |
21 |
+++ xdelta-1.1.4pre1/libedsio/edsio.c 2007-01-29 14:56:52.000000000 +0100 |
22 |
@@ -179,9 +179,9 @@ |
23 |
} |
24 |
} |
25 |
|
26 |
- while (g_queue_get_size (queued) > 0) |
27 |
+ while (g_queue_get_length (queued) > 0) |
28 |
{ |
29 |
- DelayedEvent* de = g_queue_pop (queued); |
30 |
+ DelayedEvent* de = g_queue_pop_head (queued); |
31 |
|
32 |
for (i = 0; i < all_event_watchers->len; i += 1) |
33 |
{ |
34 |
@@ -211,7 +211,7 @@ |
35 |
de->def = def; |
36 |
de->msg = out->str; |
37 |
|
38 |
- g_queue_push (queued, de); |
39 |
+ g_queue_push_tail (queued, de); |
40 |
|
41 |
g_ptr_array_add (free_strings, out); |
42 |
} |
43 |
@@ -1482,129 +1482,3 @@ |
44 |
g_free (source); |
45 |
} |
46 |
|
47 |
-/* Missing glib stuff |
48 |
- */ |
49 |
- |
50 |
-GQueue * |
51 |
-g_queue_new (void) |
52 |
-{ |
53 |
- GQueue *q = g_new (GQueue, 1); |
54 |
- |
55 |
- q->list = q->list_end = NULL; |
56 |
- q->list_size = 0; |
57 |
- |
58 |
- return q; |
59 |
-} |
60 |
- |
61 |
- |
62 |
-void |
63 |
-g_queue_free (GQueue *q) |
64 |
-{ |
65 |
- if (q) |
66 |
- { |
67 |
- if (q->list) |
68 |
- g_list_free (q->list); |
69 |
- g_free (q); |
70 |
- } |
71 |
-} |
72 |
- |
73 |
- |
74 |
-guint |
75 |
-g_queue_get_size (GQueue *q) |
76 |
-{ |
77 |
- return (q == NULL) ? 0 : q->list_size; |
78 |
-} |
79 |
- |
80 |
- |
81 |
-void |
82 |
-g_queue_push_front (GQueue *q, gpointer data) |
83 |
-{ |
84 |
- if (q) |
85 |
- { |
86 |
- q->list = g_list_prepend (q->list, data); |
87 |
- |
88 |
- if (q->list_end == NULL) |
89 |
- q->list_end = q->list; |
90 |
- |
91 |
- q->list_size++; |
92 |
- } |
93 |
-} |
94 |
- |
95 |
- |
96 |
-void |
97 |
-g_queue_push_back (GQueue *q, gpointer data) |
98 |
-{ |
99 |
- if (q) |
100 |
- { |
101 |
- q->list_end = g_list_append (q->list_end, data); |
102 |
- |
103 |
- if (! q->list) |
104 |
- q->list = q->list_end; |
105 |
- else |
106 |
- q->list_end = q->list_end->next; |
107 |
- |
108 |
- q->list_size++; |
109 |
- } |
110 |
-} |
111 |
- |
112 |
- |
113 |
-gpointer |
114 |
-g_queue_pop_front (GQueue *q) |
115 |
-{ |
116 |
- gpointer data = NULL; |
117 |
- |
118 |
- if ((q) && (q->list)) |
119 |
- { |
120 |
- GList *node; |
121 |
- |
122 |
- node = q->list; |
123 |
- data = node->data; |
124 |
- |
125 |
- if (! node->next) |
126 |
- { |
127 |
- q->list = q->list_end = NULL; |
128 |
- q->list_size = 0; |
129 |
- } |
130 |
- else |
131 |
- { |
132 |
- q->list = node->next; |
133 |
- q->list->prev = NULL; |
134 |
- q->list_size--; |
135 |
- } |
136 |
- |
137 |
- g_list_free_1 (node); |
138 |
- } |
139 |
- |
140 |
- return data; |
141 |
-} |
142 |
- |
143 |
- |
144 |
-gpointer |
145 |
-g_queue_pop_back (GQueue *q) |
146 |
-{ |
147 |
- gpointer data = NULL; |
148 |
- |
149 |
- if ((q) && (q->list)) |
150 |
- { |
151 |
- GList *node; |
152 |
- |
153 |
- node = q->list_end; |
154 |
- data = node->data; |
155 |
- |
156 |
- if (! node->prev) |
157 |
- { |
158 |
- q->list = q->list_end = NULL; |
159 |
- q->list_size = 0; |
160 |
- } |
161 |
- else |
162 |
- { |
163 |
- q->list_end = node->prev; |
164 |
- q->list_end->next = NULL; |
165 |
- q->list_size--; |
166 |
- } |
167 |
- |
168 |
- g_list_free_1 (node); |
169 |
- } |
170 |
- |
171 |
- return data; |
172 |
-} |
173 |
--- xdelta-1.1.4pre1/libedsio/edsio.h.glib2 2007-01-29 14:54:38.000000000 +0100 |
174 |
+++ xdelta-1.1.4pre1/libedsio/edsio.h 2007-01-29 14:55:00.000000000 +0100 |
175 |
@@ -481,49 +481,6 @@ |
176 |
|
177 |
#endif |
178 |
|
179 |
-/* Missing glib stuff |
180 |
- */ |
181 |
- |
182 |
-typedef struct _GQueue GQueue; |
183 |
- |
184 |
-struct _GQueue |
185 |
-{ |
186 |
- GList *list; |
187 |
- GList *list_end; |
188 |
- guint list_size; |
189 |
-}; |
190 |
- |
191 |
-/* Queues |
192 |
- */ |
193 |
- |
194 |
-GQueue * g_queue_new (void); |
195 |
-void g_queue_free (GQueue *q); |
196 |
-guint g_queue_get_size (GQueue *q); |
197 |
-void g_queue_push_front (GQueue *q, gpointer data); |
198 |
-void g_queue_push_back (GQueue *q, gpointer data); |
199 |
-gpointer g_queue_pop_front (GQueue *q); |
200 |
-gpointer g_queue_pop_back (GQueue *q); |
201 |
- |
202 |
-#define g_queue_empty(queue) \ |
203 |
- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? FALSE : TRUE) |
204 |
- |
205 |
-#define g_queue_peek_front(queue) \ |
206 |
- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \ |
207 |
- ((GQueue *)(queue))->list->data : NULL) |
208 |
- |
209 |
-#define g_queue_peek_back(queue) \ |
210 |
- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list_end) ? \ |
211 |
- ((GQueue *)(queue))->list_end->data : NULL) |
212 |
- |
213 |
-#define g_queue_index(queue,ptr) \ |
214 |
- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \ |
215 |
- g_list_index (((GQueue *)(queue))->list, (ptr)) : -1) |
216 |
- |
217 |
-#define g_queue_push g_queue_push_back |
218 |
-#define g_queue_pop g_queue_pop_front |
219 |
-#define g_queue_peek g_queue_peek_front |
220 |
- |
221 |
- |
222 |
#ifdef __cplusplus |
223 |
} |
224 |
#endif |
225 |
--- xdelta-1.1.4pre1/configure.in.glib2 2007-01-29 14:58:06.000000000 +0100 |
226 |
+++ xdelta-1.1.4pre1/configure.in 2007-01-29 14:59:18.000000000 +0100 |
227 |
@@ -71,8 +71,8 @@ |
228 |
top_srcdir_absolute=`cd $srcdir; pwd` |
229 |
AC_SUBST(top_srcdir_absolute) |
230 |
|
231 |
-AM_PATH_GLIB(1.2.8,, |
232 |
- AC_MSG_ERROR(Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/)) |
233 |
+AM_PATH_GLIB_2_0(2.10.0,, |
234 |
+ AC_MSG_ERROR(Test for GLIB2.0 failed. Download it from ftp://ftp.gtk.org/pub/gtk/v2.10/)) |
235 |
|
236 |
dnl AC_CHECK_LIB(z, gzsetparams, */ |
237 |
dnl AC_CHECK_HEADER(zlib.h,, */ |
238 |
|
239 |
|
240 |
|
241 |
1.1 dev-util/xdelta/files/xdelta-1.1.4-m4.patch |
242 |
|
243 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/xdelta/files/xdelta-1.1.4-m4.patch?rev=1.1&view=markup |
244 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/xdelta/files/xdelta-1.1.4-m4.patch?rev=1.1&content-type=text/plain |
245 |
|
246 |
Index: xdelta-1.1.4-m4.patch |
247 |
=================================================================== |
248 |
--- xdelta-1.1.3/xdelta.m4.aclocal 2004-10-20 00:20:47.875648144 +0200 |
249 |
+++ xdelta-1.1.3/xdelta.m4 2004-10-20 00:21:47.205628616 +0200 |
250 |
@@ -4,7 +4,7 @@ |
251 |
dnl AM_PATH_XDELTA([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) |
252 |
dnl Test for XDELTA, and define XDELTA_CFLAGS and XDELTA_LIBS, if "gmodule" or |
253 |
dnl |
254 |
-AC_DEFUN(AM_PATH_XDELTA, |
255 |
+AC_DEFUN([AM_PATH_XDELTA], |
256 |
[dnl |
257 |
dnl Get the cflags and libraries from the xdelta-config script |
258 |
dnl |
259 |
|
260 |
|
261 |
|
262 |
1.1 dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch |
263 |
|
264 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch?rev=1.1&view=markup |
265 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch?rev=1.1&content-type=text/plain |
266 |
|
267 |
Index: xdelta-1.1.4-pkgconfig.patch |
268 |
=================================================================== |
269 |
Nicked from http://cvs.fedoraproject.org/viewvc/devel/xdelta/xdelta-1.1.3-pkgconfig.patch |
270 |
|
271 |
--- /dev/null 2006-05-17 14:47:01.398050000 +0200 |
272 |
+++ xdelta-1.1.3/xdelta.pc.in 2006-05-30 16:00:55.000000000 +0200 |
273 |
@@ -0,0 +1,13 @@ |
274 |
+prefix=@prefix@ |
275 |
+exec_prefix=@exec_prefix@ |
276 |
+libdir=@libdir@ |
277 |
+includedir=@includedir@ |
278 |
+pkgdatadir=@pkgdatadir@ |
279 |
+ |
280 |
+Name: xdelta |
281 |
+Description: A binary file delta generator and an RCS replacement library. |
282 |
+Version: @VERSION@ |
283 |
+Requires: |
284 |
+Libs: -L${libdir} -lxdelta -ledsio |
285 |
+Cflags: -I${includedir} |
286 |
+ |
287 |
--- /dev/null 2006-05-17 14:47:01.398050000 +0200 |
288 |
+++ xdelta-1.1.3/xdelta-config 2006-05-30 16:04:22.000000000 +0200 |
289 |
@@ -0,0 +1,60 @@ |
290 |
+#!/bin/bash |
291 |
+# |
292 |
+# Simple wrapper around pkg-config to replace /usr/bin/<foo>-config scripts |
293 |
+# |
294 |
+# Copyright 2006 Red Hat, Inc. |
295 |
+# Jeremy Katz <katzj@××××××.com> |
296 |
+ |
297 |
+CFGPATH=$(basename $0) |
298 |
+MODULE=${CFGPATH%-config} |
299 |
+ |
300 |
+usage() { |
301 |
+ pkg-config --help |
302 |
+ exit 1 |
303 |
+} |
304 |
+ |
305 |
+if [ $# -lt 1 ]; then |
306 |
+ usage 1>&2 |
307 |
+fi |
308 |
+ |
309 |
+ARGS="" |
310 |
+ |
311 |
+while test $# -gt 0; do |
312 |
+ case $1 in |
313 |
+ --version) |
314 |
+ ARGS="$ARGS --modversion" |
315 |
+ ;; |
316 |
+ --cflags) |
317 |
+ ARGS="$ARGS --cflags" |
318 |
+ ;; |
319 |
+ --libs) |
320 |
+ ARGS="$ARGS --libs" |
321 |
+ ;; |
322 |
+ --libdir*) |
323 |
+ ARGS="$ARGS --libs-only-L" |
324 |
+ ;; |
325 |
+ --includedir*) |
326 |
+ ARGS="$ARGS --cflags-only-I" |
327 |
+ ;; |
328 |
+ --prefix*) |
329 |
+ ARGS="$ARGS --variable=prefix" |
330 |
+ ;; |
331 |
+ --exec-prefix*) |
332 |
+ ARGS="$ARGS --variable=exec_prefix" |
333 |
+ ;; |
334 |
+ --module*) |
335 |
+ if echo $1 | grep -q '=' ; then |
336 |
+ MODULE=`echo $1 | sed 's/^--module=//'` |
337 |
+ else |
338 |
+ MODULE=$2 |
339 |
+ shift |
340 |
+ fi |
341 |
+ ;; |
342 |
+ *) |
343 |
+ usage 1>&2 |
344 |
+ ;; |
345 |
+ esac |
346 |
+ shift |
347 |
+done |
348 |
+ |
349 |
+pkg-config $ARGS $MODULE |
350 |
--- xdelta-1.1.3/Makefile.am.pkgconfig 2006-05-30 16:00:55.000000000 +0200 |
351 |
+++ xdelta-1.1.3/Makefile.am 2006-05-30 16:00:55.000000000 +0200 |
352 |
@@ -27,6 +27,9 @@ |
353 |
m4datadir = $(datadir)/aclocal |
354 |
m4data_DATA = xdelta.m4 |
355 |
|
356 |
+pkgconfigdir = $(libdir)/pkgconfig |
357 |
+pkgconfig_DATA = xdelta.pc |
358 |
+ |
359 |
## $Format: "libxdelta_la_LDFLAGS = -version-info $LibCurrent$:$LibRevision$:$LibAge$" $ |
360 |
libxdelta_la_LDFLAGS = -version-info 2:0:0 |
361 |
|
362 |
--- xdelta-1.1.3/configure.in.pkgconfig 2006-05-30 16:00:55.000000000 +0200 |
363 |
+++ xdelta-1.1.3/configure.in 2006-05-30 16:00:55.000000000 +0200 |
364 |
@@ -63,6 +63,8 @@ |
365 |
AC_HEADER_STDC |
366 |
AC_PROG_MAKE_SET |
367 |
|
368 |
+PKG_PROG_PKG_CONFIG |
369 |
+ |
370 |
AC_CHECK_FUNCS(gettimeofday) |
371 |
AC_HEADER_TIME |
372 |
|
373 |
@@ -83,7 +85,7 @@ |
374 |
doc/Makefile |
375 |
test/Makefile |
376 |
djgpp/Makefile |
377 |
- xdelta-config |
378 |
+ xdelta.pc |
379 |
libedsio/Makefile |
380 |
libedsio/edsio-comp, |