summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2014-04-05 18:02:15 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2014-04-05 18:02:15 +0000
commitb27bd1918a890ab72c105ccf5548b0168545ed5d (patch)
tree4dfce24b3253a8ebfa1577481db91abc03d42360 /gnome-base/gvfs/files
parentRemove ruby18 target. Remove virtual/ruby-test-unit. (diff)
downloadgentoo-2-b27bd1918a890ab72c105ccf5548b0168545ed5d.tar.gz
gentoo-2-b27bd1918a890ab72c105ccf5548b0168545ed5d.tar.bz2
gentoo-2-b27bd1918a890ab72c105ccf5548b0168545ed5d.zip
Fix another build failure with >=libcdio-0.84, thanks to desultory for noticing.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
Diffstat (limited to 'gnome-base/gvfs/files')
-rw-r--r--gnome-base/gvfs/files/gvfs-1.12.3-libcdio-0.84.patch70
1 files changed, 70 insertions, 0 deletions
diff --git a/gnome-base/gvfs/files/gvfs-1.12.3-libcdio-0.84.patch b/gnome-base/gvfs/files/gvfs-1.12.3-libcdio-0.84.patch
new file mode 100644
index 000000000000..ed0f2a9a85dd
--- /dev/null
+++ b/gnome-base/gvfs/files/gvfs-1.12.3-libcdio-0.84.patch
@@ -0,0 +1,70 @@
+From e5423da4d7ca010fa3c33736445752ff9e549585 Mon Sep 17 00:00:00 2001
+From: Dominique Leuenberger <dimstar@opensuse.org>
+Date: Tue, 7 Aug 2012 18:10:24 +0200
+Subject: [PATCH] cdda: Support libcdio 0.84 with changed API
+
+following CDIO changeset
+http://git.savannah.gnu.org/gitweb/?p=libcdio.git;a=commitdiff;h=abe5b8429573c9ac796c274c7abe7f76ef52dc76
+
+https://bugzilla.gnome.org/show_bug.cgi?id=678257
+
+[Alexandre Rostovtsev <tetromino@gentoo.org> : cherry-pick for 1.12]
+---
+ daemon/gvfsbackendcdda.c | 32 +++++++++++++++++++++++++-------
+ 1 file changed, 25 insertions(+), 7 deletions(-)
+
+diff --git a/daemon/gvfsbackendcdda.c b/daemon/gvfsbackendcdda.c
+index 6f009c7..1ad4251 100644
+--- a/daemon/gvfsbackendcdda.c
++++ b/daemon/gvfsbackendcdda.c
+@@ -169,11 +169,22 @@ fetch_metadata (GVfsBackendCdda *cdda_backend)
+ if (!cdio)
+ return;
+
+- cdtext = cdio_get_cdtext(cdio, 0);
++#if LIBCDIO_VERSION_NUM >= 84
++ cdtext = cdio_get_cdtext (cdio);
++#else
++ cdtext = cdio_get_cdtext (cdio, 0);
++#endif /* LIBCDIO_VERSION_NUM >= 84 */
++
+ if (cdtext) {
+- cdda_backend->album_title = g_strdup (cdtext_get (CDTEXT_TITLE, cdtext));
+- cdda_backend->album_artist = g_strdup (cdtext_get (CDTEXT_PERFORMER, cdtext));
+- cdda_backend->genre = g_strdup (cdtext_get (CDTEXT_GENRE, cdtext));
++#if LIBCDIO_VERSION_NUM >= 84
++ cdda_backend->album_title = g_strdup (cdtext_get_const (cdtext, CDTEXT_FIELD_TITLE, 0));
++ cdda_backend->album_artist = g_strdup (cdtext_get_const (cdtext, CDTEXT_FIELD_PERFORMER, 0));
++ cdda_backend->genre = g_strdup (cdtext_get_const (cdtext, CDTEXT_FIELD_GENRE, 0));
++#else
++ cdda_backend->album_title = g_strdup (cdtext_get_const (CDTEXT_TITLE, cdtext));
++ cdda_backend->album_artist = g_strdup (cdtext_get_const (CDTEXT_PERFORMER, cdtext));
++ cdda_backend->genre = g_strdup (cdtext_get_const (CDTEXT_GENRE, cdtext));
++#endif /* LIBCDIO_VERSION_NUM >= 84 */
+ }
+
+ cdtrack = cdio_get_first_track_num(cdio);
+@@ -182,10 +193,17 @@ fetch_metadata (GVfsBackendCdda *cdda_backend)
+ for ( ; cdtrack < last_cdtrack; cdtrack++ ) {
+ GVfsBackendCddaTrack *track;
+ track = g_new0 (GVfsBackendCddaTrack, 1);
+- cdtext = cdio_get_cdtext(cdio, cdtrack);
++#if LIBCDIO_VERSION_NUM < 84
++ cdtext = cdio_get_cdtext (cdio, cdtrack);
++#endif /* LIBCDIO_VERSION_NUM < 84 */
+ if (cdtext) {
+- track->title = g_strdup (cdtext_get (CDTEXT_TITLE, cdtext));
+- track->artist = g_strdup (cdtext_get (CDTEXT_PERFORMER, cdtext));
++#if LIBCDIO_VERSION_NUM >= 84
++ track->title = g_strdup (cdtext_get_const (cdtext, CDTEXT_FIELD_TITLE, cdtrack));
++ track->artist = g_strdup (cdtext_get_const (cdtext, CDTEXT_FIELD_PERFORMER, cdtrack));
++#else
++ track->title = g_strdup (cdtext_get_const (CDTEXT_TITLE, cdtext));
++ track->artist = g_strdup (cdtext_get_const (CDTEXT_PERFORMER, cdtext);
++#endif /* LIBCDIO_VERSION_NUM >= 84 */
+ }
+ track->duration = cdio_get_track_sec_count (cdio, cdtrack) / CDIO_CD_FRAMES_PER_SEC;
+
+--
+1.9.1
+