Bug 18410 - пересборка с libmtp.so.8
Summary: пересборка с libmtp.so.8
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: audacious-plugins (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-31 06:12 MSK by Dmitriy Khanzhin
Modified: 2008-12-31 11:04 MSK (History)
1 user (show)

See Also:


Attachments
патч (606 bytes, patch)
2008-12-31 06:14 MSK, Dmitriy Khanzhin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Khanzhin 2008-12-31 06:12:59 MSK
У libmtp сменился API.
Судя по
http://libmtp.cvs.sourceforge.net/viewvc/libmtp/libmtp/examples/sendtr.c?r1=1.23&r2=1.24

и по http://sisyphus.ru/srpm/Sisyphus/amarok/patches/0

патч выглядит так:

--- audacious-plugins-1.5.1/src/mtp_up/mtp.c.orig       2008-05-24 02:44:20 +0400
+++ audacious-plugins-1.5.1/src/mtp_up/mtp.c    2008-12-31 05:39:30 +0300
@@ -197,7 +197,8 @@ gint upload_file(Tuple *from_tuple)
 #if DEBUG
     g_print("Uploading track '%s'\n",filename);
 #endif
-    ret = LIBMTP_Send_Track_From_File(mtp_device, filename , gentrack, NULL , NULL, parent_id);
+    gentrack->parent_id = 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");

К сожалению, проверить сейчас не могу, но чтобы не забылось.
Comment 1 Dmitriy Khanzhin 2008-12-31 06:14:23 MSK
Created attachment 3175 [details]
патч
Comment 2 Vitaly Lipatov 2008-12-31 09:37:26 MSK
Спасибо, я уже починил в
audacious-plugins-1.5.1-alt6.src.rpm
Comment 3 Dmitriy Khanzhin 2008-12-31 11:04:58 MSK
Ясно, спасибо.