OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

514 lines
15 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../xdelta/glib2.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- xdelta-1.1.3/libedsio/edsio.c.glib2 2001-09-24 08:48:52.000000000 +0200
  17. +++ xdelta-1.1.3/libedsio/edsio.c 2005-09-09 11:01:35.000000000 +0200
  18. @@ -179,9 +179,9 @@
  19. }
  20. }
  21. - while (g_queue_get_size (queued) > 0)
  22. + while (g_queue_get_length (queued) > 0)
  23. {
  24. - DelayedEvent* de = g_queue_pop (queued);
  25. + DelayedEvent* de = g_queue_pop_head (queued);
  26. for (i = 0; i < all_event_watchers->len; i += 1)
  27. {
  28. @@ -211,7 +211,7 @@
  29. de->def = def;
  30. de->msg = out->str;
  31. - g_queue_push (queued, de);
  32. + g_queue_push_tail (queued, de);
  33. g_ptr_array_add (free_strings, out);
  34. }
  35. @@ -1481,130 +1481,3 @@
  36. g_free (source);
  37. }
  38. -
  39. -/* Missing glib stuff
  40. - */
  41. -
  42. -GQueue *
  43. -g_queue_new (void)
  44. -{
  45. - GQueue *q = g_new (GQueue, 1);
  46. -
  47. - q->list = q->list_end = NULL;
  48. - q->list_size = 0;
  49. -
  50. - return q;
  51. -}
  52. -
  53. -
  54. -void
  55. -g_queue_free (GQueue *q)
  56. -{
  57. - if (q)
  58. - {
  59. - if (q->list)
  60. - g_list_free (q->list);
  61. - g_free (q);
  62. - }
  63. -}
  64. -
  65. -
  66. -guint
  67. -g_queue_get_size (GQueue *q)
  68. -{
  69. - return (q == NULL) ? 0 : q->list_size;
  70. -}
  71. -
  72. -
  73. -void
  74. -g_queue_push_front (GQueue *q, gpointer data)
  75. -{
  76. - if (q)
  77. - {
  78. - q->list = g_list_prepend (q->list, data);
  79. -
  80. - if (q->list_end == NULL)
  81. - q->list_end = q->list;
  82. -
  83. - q->list_size++;
  84. - }
  85. -}
  86. -
  87. -
  88. -void
  89. -g_queue_push_back (GQueue *q, gpointer data)
  90. -{
  91. - if (q)
  92. - {
  93. - q->list_end = g_list_append (q->list_end, data);
  94. -
  95. - if (! q->list)
  96. - q->list = q->list_end;
  97. - else
  98. - q->list_end = q->list_end->next;
  99. -
  100. - q->list_size++;
  101. - }
  102. -}
  103. -
  104. -
  105. -gpointer
  106. -g_queue_pop_front (GQueue *q)
  107. -{
  108. - gpointer data = NULL;
  109. -
  110. - if ((q) && (q->list))
  111. - {
  112. - GList *node;
  113. -
  114. - node = q->list;
  115. - data = node->data;
  116. -
  117. - if (! node->next)
  118. - {
  119. - q->list = q->list_end = NULL;
  120. - q->list_size = 0;
  121. - }
  122. - else
  123. - {
  124. - q->list = node->next;
  125. - q->list->prev = NULL;
  126. - q->list_size--;
  127. - }
  128. -
  129. - g_list_free_1 (node);
  130. - }
  131. -
  132. - return data;
  133. -}
  134. -
  135. -
  136. -gpointer
  137. -g_queue_pop_back (GQueue *q)
  138. -{
  139. - gpointer data = NULL;
  140. -
  141. - if ((q) && (q->list))
  142. - {
  143. - GList *node;
  144. -
  145. - node = q->list_end;
  146. - data = node->data;
  147. -
  148. - if (! node->prev)
  149. - {
  150. - q->list = q->list_end = NULL;
  151. - q->list_size = 0;
  152. - }
  153. - else
  154. - {
  155. - q->list_end = node->prev;
  156. - q->list_end->next = NULL;
  157. - q->list_size--;
  158. - }
  159. -
  160. - g_list_free_1 (node);
  161. - }
  162. -
  163. - return data;
  164. -}
  165. --- xdelta-1.1.3/libedsio/edsio.h.glib2 2001-06-12 05:16:41.000000000 +0200
  166. +++ xdelta-1.1.3/libedsio/edsio.h 2005-09-09 10:55:56.000000000 +0200
  167. @@ -480,49 +480,6 @@
  168. #endif
  169. -/* Missing glib stuff
  170. - */
  171. -
  172. -typedef struct _GQueue GQueue;
  173. -
  174. -struct _GQueue
  175. -{
  176. - GList *list;
  177. - GList *list_end;
  178. - guint list_size;
  179. -};
  180. -
  181. -/* Queues
  182. - */
  183. -
  184. -GQueue * g_queue_new (void);
  185. -void g_queue_free (GQueue *q);
  186. -guint g_queue_get_size (GQueue *q);
  187. -void g_queue_push_front (GQueue *q, gpointer data);
  188. -void g_queue_push_back (GQueue *q, gpointer data);
  189. -gpointer g_queue_pop_front (GQueue *q);
  190. -gpointer g_queue_pop_back (GQueue *q);
  191. -
  192. -#define g_queue_empty(queue) \
  193. - ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? FALSE : TRUE)
  194. -
  195. -#define g_queue_peek_front(queue) \
  196. - ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \
  197. - ((GQueue *)(queue))->list->data : NULL)
  198. -
  199. -#define g_queue_peek_back(queue) \
  200. - ((((GQueue *)(queue)) && ((GQueue *)(queue))->list_end) ? \
  201. - ((GQueue *)(queue))->list_end->data : NULL)
  202. -
  203. -#define g_queue_index(queue,ptr) \
  204. - ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \
  205. - g_list_index (((GQueue *)(queue))->list, (ptr)) : -1)
  206. -
  207. -#define g_queue_push g_queue_push_back
  208. -#define g_queue_pop g_queue_pop_front
  209. -#define g_queue_peek g_queue_peek_front
  210. -
  211. -
  212. #ifdef __cplusplus
  213. }
  214. #endif
  215. --- xdelta-1.1.3/configure.glib2 2001-09-24 08:59:20.000000000 +0200
  216. +++ xdelta-1.1.3/configure 2005-09-09 10:55:56.000000000 +0200
  217. @@ -142,12 +142,6 @@
  218. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  219. ac_help="$ac_help
  220. --disable-libtool-lock avoid locking (might break parallel builds)"
  221. -ac_help="$ac_help
  222. - --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
  223. -ac_help="$ac_help
  224. - --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
  225. -ac_help="$ac_help
  226. - --disable-glibtest Do not try to compile and run a test GLIB program"
  227. # Initialize some variables set by options.
  228. # The variables have the same names as the options, with
  229. @@ -2024,276 +2018,6 @@
  230. top_srcdir_absolute=`cd $srcdir; pwd`
  231. -# Check whether --with-glib-prefix or --without-glib-prefix was given.
  232. -if test "${with_glib_prefix+set}" = set; then
  233. - withval="$with_glib_prefix"
  234. - glib_config_prefix="$withval"
  235. -else
  236. - glib_config_prefix=""
  237. -fi
  238. -
  239. -# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
  240. -if test "${with_glib_exec_prefix+set}" = set; then
  241. - withval="$with_glib_exec_prefix"
  242. - glib_config_exec_prefix="$withval"
  243. -else
  244. - glib_config_exec_prefix=""
  245. -fi
  246. -
  247. -# Check whether --enable-glibtest or --disable-glibtest was given.
  248. -if test "${enable_glibtest+set}" = set; then
  249. - enableval="$enable_glibtest"
  250. - :
  251. -else
  252. - enable_glibtest=yes
  253. -fi
  254. -
  255. -
  256. - if test x$glib_config_exec_prefix != x ; then
  257. - glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
  258. - if test x${GLIB_CONFIG+set} != xset ; then
  259. - GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
  260. - fi
  261. - fi
  262. - if test x$glib_config_prefix != x ; then
  263. - glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
  264. - if test x${GLIB_CONFIG+set} != xset ; then
  265. - GLIB_CONFIG=$glib_config_prefix/bin/glib-config
  266. - fi
  267. - fi
  268. -
  269. - for module in .
  270. - do
  271. - case "$module" in
  272. - gmodule)
  273. - glib_config_args="$glib_config_args gmodule"
  274. - ;;
  275. - gthread)
  276. - glib_config_args="$glib_config_args gthread"
  277. - ;;
  278. - esac
  279. - done
  280. -
  281. - # Extract the first word of "glib-config", so it can be a program name with args.
  282. -set dummy glib-config; ac_word=$2
  283. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  284. -echo "configure:2081: checking for $ac_word" >&5
  285. -if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
  286. - echo $ac_n "(cached) $ac_c" 1>&6
  287. -else
  288. - case "$GLIB_CONFIG" in
  289. - /*)
  290. - ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
  291. - ;;
  292. - ?:/*)
  293. - ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
  294. - ;;
  295. - *)
  296. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  297. - ac_dummy="$PATH"
  298. - for ac_dir in $ac_dummy; do
  299. - test -z "$ac_dir" && ac_dir=.
  300. - if test -f $ac_dir/$ac_word; then
  301. - ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
  302. - break
  303. - fi
  304. - done
  305. - IFS="$ac_save_ifs"
  306. - test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
  307. - ;;
  308. -esac
  309. -fi
  310. -GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
  311. -if test -n "$GLIB_CONFIG"; then
  312. - echo "$ac_t""$GLIB_CONFIG" 1>&6
  313. -else
  314. - echo "$ac_t""no" 1>&6
  315. -fi
  316. -
  317. - min_glib_version=1.2.8
  318. - echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
  319. -echo "configure:2116: checking for GLIB - version >= $min_glib_version" >&5
  320. - no_glib=""
  321. - if test "$GLIB_CONFIG" = "no" ; then
  322. - no_glib=yes
  323. - else
  324. - GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
  325. - GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
  326. - glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
  327. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  328. - glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
  329. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  330. - glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
  331. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  332. - if test "x$enable_glibtest" = "xyes" ; then
  333. - ac_save_CFLAGS="$CFLAGS"
  334. - ac_save_LIBS="$LIBS"
  335. - CFLAGS="$CFLAGS $GLIB_CFLAGS"
  336. - LIBS="$GLIB_LIBS $LIBS"
  337. - rm -f conf.glibtest
  338. - if test "$cross_compiling" = yes; then
  339. - echo $ac_n "cross compiling; assumed OK... $ac_c"
  340. -else
  341. - cat > conftest.$ac_ext <<EOF
  342. -#line 2139 "configure"
  343. -#include "confdefs.h"
  344. -
  345. -#include <glib.h>
  346. -#include <stdio.h>
  347. -#include <stdlib.h>
  348. -
  349. -int
  350. -main ()
  351. -{
  352. - int major, minor, micro;
  353. - char *tmp_version;
  354. -
  355. - system ("touch conf.glibtest");
  356. -
  357. - /* HP/UX 9 (%@#!) writes to sscanf strings */
  358. - tmp_version = g_strdup("$min_glib_version");
  359. - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  360. - printf("%s, bad version string\n", "$min_glib_version");
  361. - exit(1);
  362. - }
  363. -
  364. - if ((glib_major_version != $glib_config_major_version) ||
  365. - (glib_minor_version != $glib_config_minor_version) ||
  366. - (glib_micro_version != $glib_config_micro_version))
  367. - {
  368. - printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
  369. - $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
  370. - glib_major_version, glib_minor_version, glib_micro_version);
  371. - printf ("*** was found! If glib-config was correct, then it is best\n");
  372. - printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
  373. - printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  374. - printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  375. - printf("*** required on your system.\n");
  376. - printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
  377. - printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
  378. - printf("*** before re-running configure\n");
  379. - }
  380. - else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
  381. - (glib_minor_version != GLIB_MINOR_VERSION) ||
  382. - (glib_micro_version != GLIB_MICRO_VERSION))
  383. - {
  384. - printf("*** GLIB header files (version %d.%d.%d) do not match\n",
  385. - GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
  386. - printf("*** library (version %d.%d.%d)\n",
  387. - glib_major_version, glib_minor_version, glib_micro_version);
  388. - }
  389. - else
  390. - {
  391. - if ((glib_major_version > major) ||
  392. - ((glib_major_version == major) && (glib_minor_version > minor)) ||
  393. - ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
  394. - {
  395. - return 0;
  396. - }
  397. - else
  398. - {
  399. - printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
  400. - glib_major_version, glib_minor_version, glib_micro_version);
  401. - printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
  402. - major, minor, micro);
  403. - printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
  404. - printf("***\n");
  405. - printf("*** If you have already installed a sufficiently new version, this error\n");
  406. - printf("*** probably means that the wrong copy of the glib-config shell script is\n");
  407. - printf("*** being found. The easiest way to fix this is to remove the old version\n");
  408. - printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
  409. - printf("*** correct copy of glib-config. (In this case, you will have to\n");
  410. - printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  411. - printf("*** so that the correct libraries are found at run-time))\n");
  412. - }
  413. - }
  414. - return 1;
  415. -}
  416. -
  417. -EOF
  418. -if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  419. -then
  420. - :
  421. -else
  422. - echo "configure: failed program was:" >&5
  423. - cat conftest.$ac_ext >&5
  424. - rm -fr conftest*
  425. - no_glib=yes
  426. -fi
  427. -rm -fr conftest*
  428. -fi
  429. -
  430. - CFLAGS="$ac_save_CFLAGS"
  431. - LIBS="$ac_save_LIBS"
  432. - fi
  433. - fi
  434. - if test "x$no_glib" = x ; then
  435. - echo "$ac_t""yes" 1>&6
  436. - :
  437. - else
  438. - echo "$ac_t""no" 1>&6
  439. - if test "$GLIB_CONFIG" = "no" ; then
  440. - echo "*** The glib-config script installed by GLIB could not be found"
  441. - echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
  442. - echo "*** your path, or set the GLIB_CONFIG environment variable to the"
  443. - echo "*** full path to glib-config."
  444. - else
  445. - if test -f conf.glibtest ; then
  446. - :
  447. - else
  448. - echo "*** Could not run GLIB test program, checking why..."
  449. - CFLAGS="$CFLAGS $GLIB_CFLAGS"
  450. - LIBS="$LIBS $GLIB_LIBS"
  451. - cat > conftest.$ac_ext <<EOF
  452. -#line 2249 "configure"
  453. -#include "confdefs.h"
  454. -
  455. -#include <glib.h>
  456. -#include <stdio.h>
  457. -
  458. -int main() {
  459. - return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
  460. -; return 0; }
  461. -EOF
  462. -if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  463. - rm -rf conftest*
  464. - echo "*** The test program compiled, but did not run. This usually means"
  465. - echo "*** that the run-time linker is not finding GLIB or finding the wrong"
  466. - echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
  467. - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  468. - echo "*** to the installed location Also, make sure you have run ldconfig if that"
  469. - echo "*** is required on your system"
  470. - echo "***"
  471. - echo "*** If you have an old version installed, it is best to remove it, although"
  472. - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  473. - echo "***"
  474. - echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  475. - echo "*** came with the system with the command"
  476. - echo "***"
  477. - echo "*** rpm --erase --nodeps gtk gtk-devel"
  478. -else
  479. - echo "configure: failed program was:" >&5
  480. - cat conftest.$ac_ext >&5
  481. - rm -rf conftest*
  482. - echo "*** The test program failed to compile or link. See the file config.log for the"
  483. - echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
  484. - echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
  485. - echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
  486. -fi
  487. -rm -f conftest*
  488. - CFLAGS="$ac_save_CFLAGS"
  489. - LIBS="$ac_save_LIBS"
  490. - fi
  491. - fi
  492. - GLIB_CFLAGS=""
  493. - GLIB_LIBS=""
  494. - { echo "configure: error: Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/" 1>&2; exit 1; }
  495. - fi
  496. -
  497. -
  498. - rm -f conf.glibtest
  499. -
  500. -
  501. echo $ac_n "checking for gzsetparams in -lz""... $ac_c" 1>&6
  502. echo "configure:2299: checking for gzsetparams in -lz" >&5
  503. ac_lib_var=`echo z'_'gzsetparams | sed 'y%./+-%__p_%'`