Package: mydumper
Version: 0.5.1-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu quantal ubuntu-patch
mydumper uses deprecated glib functions in combination with Werror
this means the build breaks when stuff gets deprecated.
Ubuntu applied attached patch to remove the deprecated functions
Thanks for considering the patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers quantal-updates
APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500,
'quantal-proposed'), (500, 'quantal'), (100, 'quantal-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.5.0-16-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru mydumper-0.5.1/debian/changelog mydumper-0.5.1/debian/changelog
diff -Nru mydumper-0.5.1/debian/patches/0007-deprecated-glib.patch mydumper-0.5.1/debian/patches/0007-deprecated-glib.patch
--- mydumper-0.5.1/debian/patches/0007-deprecated-glib.patch 1970-01-01 01:00:00.000000000 +0100
+++ mydumper-0.5.1/debian/patches/0007-deprecated-glib.patch 2012-10-05 11:10:37.000000000 +0200
@@ -0,0 +1,66 @@
+Index: mydumper-0.5.1/mydumper.c
+===================================================================
+--- mydumper-0.5.1.orig/mydumper.c 2011-08-12 12:26:38.000000000 -0400
++++ mydumper-0.5.1/mydumper.c 2012-01-15 16:24:16.000000000 -0500
+@@ -453,10 +453,6 @@
+ GError *error = NULL;
+ GOptionContext *context;
+
+- g_thread_init(NULL);
+-
+- init_mutex = g_mutex_new();
+-
+ context = g_option_context_new("multi-threaded MySQL dumping");
+ GOptionGroup *main_group= g_option_group_new("main", "Main Options", "Main Options", NULL, NULL);
+ g_option_group_add_entries(main_group, entries);
+@@ -525,7 +521,7 @@
+ if (daemon_mode) {
+ GError* terror;
+
+- GThread *bthread= g_thread_create(binlog_thread, GINT_TO_POINTER(1), FALSE, &terror);
++ GThread *bthread= g_thread_try_new("binlog", binlog_thread, GINT_TO_POINTER(1), &terror);
+ if (bthread == NULL) {
+ g_critical("Could not create binlog thread: %s", terror->message);
+ g_error_free(terror);
+@@ -533,7 +529,7 @@
+ }
+
+ start_scheduled_dump= g_async_queue_new();
+- GThread *ethread= g_thread_create(exec_thread, GINT_TO_POINTER(1), FALSE, &terror);
++ GThread *ethread= g_thread_try_new("exec", exec_thread, GINT_TO_POINTER(1), &terror);
+ if (ethread == NULL) {
+ g_critical("Could not create exec thread: %s", terror->message);
+ g_error_free(terror);
+@@ -777,7 +773,7 @@
+ for (n=0; n<num_threads; n++) {
+ td[n].conf= &conf;
+ td[n].thread_id= n+1;
+- threads[n] = g_thread_create((GThreadFunc)process_queue,&td[n],TRUE,NULL);
++ threads[n] = g_thread_try_new("processqueue",(GThreadFunc)process_queue,&td[n],NULL);
+ g_async_queue_pop(conf.ready);
+ }
+ g_async_queue_unref(conf.ready);
+Index: mydumper-0.5.1/myloader.c
+===================================================================
+--- mydumper-0.5.1.orig/myloader.c 2012-01-15 15:35:59.000000000 -0500
++++ mydumper-0.5.1/myloader.c 2012-01-15 17:23:29.000000000 -0500
+@@ -89,10 +89,6 @@
+ GError *error= NULL;
+ GOptionContext *context;
+
+- g_thread_init(NULL);
+-
+- init_mutex= g_mutex_new();
+-
+ context= g_option_context_new("multi-threaded MySQL loader");
+ GOptionGroup *main_group= g_option_group_new("main", "Main Options", "Main Options", NULL, NULL);
+ g_option_group_add_entries(main_group, entries);
+@@ -143,7 +139,7 @@
+ for (n= 0; n < num_threads; n++) {
+ td[n].conf= &conf;
+ td[n].thread_id= n+1;
+- threads[n]= g_thread_create((GThreadFunc)process_queue, &td[n], TRUE, NULL);
++ threads[n]= g_thread_try_new("processqueue", (GThreadFunc)process_queue, &td[n], NULL);
+ g_async_queue_pop(conf.ready);
+ }
+ g_async_queue_unref(conf.ready);
diff -Nru mydumper-0.5.1/debian/patches/series mydumper-0.5.1/debian/patches/series
--- mydumper-0.5.1/debian/patches/series 2012-05-21 15:22:43.000000000 +0200
+++ mydumper-0.5.1/debian/patches/series 2012-10-05 11:11:04.000000000 +0200
@@ -4,3 +4,4 @@
0004-typo-fix-in-myloader.patch
0005-zlib-file-type-change-fixes.patch
0006-fix-runaway-regexp-in-in-cmake.patch
+0007-deprecated-glib.patch