Package: audacious-plugins
Version: 1.5.1-2
Severity: serious
Tags: patch
Justification: FTBFS on unstable


The libmtp package version 0.3.6 has been recently uploaded unstable.  This
version had a shlibs bump libmtp7 -> libmtp8.  The API has changed and
audacious-plugins FTBFS against this version of libmtp.

You will find attached below a patch for file src/mtp_up/mtp.c that fixes
the problem.  The package builds fine but I did not test it, though.

Thanks,

Rafael Laboissiere

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
--- audacious-plugins-1.5.1.orig/src/mtp_up/mtp.c
+++ audacious-plugins-1.5.1/src/mtp_up/mtp.c
@@ -182,7 +182,6 @@
 {
     int ret;
     gchar *tmp, *from_path = NULL, *filename;
-    uint32_t parent_id = 0;
     LIBMTP_track_t *gentrack;
     gentrack = track_metadata(from_tuple);
     from_path = g_strdup_printf("%s/%s", aud_tuple_get_string(from_tuple, FIELD_FILE_PATH, NULL), aud_tuple_get_string(from_tuple, FIELD_FILE_NAME, NULL));
@@ -192,12 +191,11 @@
 
     g_free(from_path);
     g_free(tmp);
-    parent_id = mtp_device->default_music_folder;
 
 #if DEBUG
     g_print("Uploading track '%s'\n",filename);
 #endif
-    ret = LIBMTP_Send_Track_From_File(mtp_device, filename , gentrack, NULL , NULL, parent_id);
+    ret = LIBMTP_Send_Track_From_File(mtp_device, filename , gentrack, NULL , NULL);
     LIBMTP_destroy_track_t(gentrack);
     if (ret == 0) 
         g_print("Track upload finished!\n");

Reply via email to