add a changelog entry
[debian/amanda] / debian / patches / glib-2.32.patch
1 Description: Remove g_queue_free_full() since it conflicts with glib 2.32
2  glib 2.32 introduce g_queue_free_full() which conflicts with the
3  amanda-internal version of this function. As it doesn't seem to
4  be used, simply remove it.
5 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665675
6
7 Index: amanda-3.3.1/common-src/glib-util.c
8 ===================================================================
9 --- amanda-3.3.1.orig/common-src/glib-util.c    2012-02-21 12:36:51.000000000 +0100
10 +++ amanda-3.3.1/common-src/glib-util.c 2012-03-31 01:33:21.177134297 +0200
11 @@ -120,15 +120,6 @@
12  }
13  #endif
14  
15 -void g_queue_free_full(GQueue * queue) {
16 -    while (!g_queue_is_empty(queue)) {
17 -        gpointer data;
18 -        data = g_queue_pop_head(queue);
19 -        amfree(data);
20 -    }
21 -    g_queue_free(queue);
22 -}
23 -
24  void g_ptr_array_free_full(GPtrArray * array) {
25      size_t i;
26  
27 Index: amanda-3.3.1/common-src/glib-util.h
28 ===================================================================
29 --- amanda-3.3.1.orig/common-src/glib-util.h    2012-02-21 12:36:51.000000000 +0100
30 +++ amanda-3.3.1/common-src/glib-util.h 2012-03-31 01:33:29.013134019 +0200
31 @@ -72,7 +72,6 @@
32  
33  /* These functions all take a GLib container, and call free() on all the
34   * pointers in the container before free()ing the container itself. */
35 -void g_queue_free_full(GQueue * queue);
36  void g_ptr_array_free_full(GPtrArray * array);
37  
38  /* g_value_compare() does what you expect. It returns TRUE if and