Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149473 - media-sound/amarok - adding songs to iPOD database broken with media-libs/libgpod-0.4.0
Summary: media-sound/amarok - adding songs to iPOD database broken with media-libs/lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Olivier Crete (RETIRED)
URL:
Whiteboard:
Keywords:
: 150134 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-28 18:56 UTC by Stelian Ionescu
Modified: 2008-06-29 23:23 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix the Makefile.am in test/ (libgpod-0.4.0-build.patch,383 bytes, patch)
2006-09-30 16:26 UTC, David Philippi
Details | Diff
Modified ebuild (libgpod-0.4.0.ebuild,1.13 KB, text/plain)
2006-09-30 16:33 UTC, David Philippi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stelian Ionescu 2006-09-28 18:56:30 UTC
having updated media-libs/libgpod from 0.3.2-r1 to 0.4.0 I noticed that the iPOD refused to play songs newly added with Amarok(perhaps because libgpod inserts wrong paths into the database). when reverting to 0.3.2-r1 adding songs works fine

is it possible that libgpod changed API and amarok doesn't work with the new API ?


Portage 2.1.1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-suspend2 i686)
=================================================================
System uname: 2.6.18-suspend2 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.4
Last Sync: Wed, 27 Sep 2006 08:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -g -march=pentium-m -funit-at-a-time -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev"
CXXFLAGS="-O2 -g -march=pentium-m -funit-at-a-time -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy collision-protect digest distcc distlocks metadata-transfer parallel-fetch prelink sandbox severe sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="		http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources 		http://mirror.switch.ch/ftp/mirror/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en it"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from /etc/portage/rsync_excludes --human-readable --progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/e17 /usr/local/overlays/sunrise-reviewed /usr/local/overlays/bmg-main /usr/local/overlays/fluidportage /usr/local/overlays/xgl-coffee /usr/local/overlays/ste"
SYNC="rsync://rsync1.it.gentoo.org/gentoo-portage"
USE="x86 3dnow 7zip GAPING_SECURITY_HOLE X a52 aac aalib acl acpi adns aim alsa amr apache apache2 ares atk bash-completion bcmath berkdb bitmap-fonts bluetooth bonobo browserplugin bzip2 cairo caps cdda cddb cdparanoia cdr cli cpdflib crypt css ctype cups curl curlwrappers daap dba dbus dga divx4linux dlloader dmalloc dpms dri dts dv dvb dvd dvdr dvi eds elibc_glibc emacs emboss encode ethereal exif expat fam fbcon ffmpeg fftw figlet firefox flac fortran ftp galago gd gdbm geoip gif gimp gimpprint glitz gmp gnome gnomedb gnustep gphoto2 gpm gprof gps graphviz gs gsl gtk gtkhtml gtkspell guile hal iconv icq idn ieee1394 imagemagick imap imlib imlib2 inotify input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_penmount input_devices_ps2mouse input_devices_synaptics ipod ipv6 irc irda isdnlog jabber javascript jpeg jpeg2k kdeenablefinal kdehiddenvisibility kernel_linux latex lcms leim lesstif libcaca libg++ libnotify linguas_en linguas_it live m17n-lib mad maildir matroska mime mmap mmx mng mono motif moznocompose moznoirc moznomail mozsvg mp3 mpeg msn multicall musepack musicbrainz mysql nautilus ncurses net network nfs nls nntp nptl nptlonly nsplugin ocaml offensive ogg openexr opengl pam pango pcmcia pcre pdf perl pic png pnp posix ppds pppd profile python qdbm qt3 quicktime readline reflection rss ruby samba sasl scanner sdl session shared silc skey slang slp smartcard smime smtp sockets socks5 speex spell spl sqlite sse sse2 ssl startup-notification svg swig sysfs syslog taglib tetex theora threads tidy tiff tokenizer truetype truetype-fonts trusted type1-fonts udev uim unicode urandom usb userland_GNU v4l v4l2 vcd vhosts video_cards_ati video_cards_radeon video_cards_vesa vorbis widescreen win32codecs wmf x264 xgetdefault xine xml xml2 xmlrpc xorg xpm xrandr xscreensaver xsl xv xvid xvmc yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-29 01:16:23 UTC
Make sure that you revdep-rebuild (or simply rebuild amarok) after libgpod update, or the plugin will stop working correctly.
Comment 2 Stelian Ionescu 2006-09-30 07:36:57 UTC
rebuilding amarok solved the problem but revdep-rebuild didn't catch it becuse both 0.3.2 and 0.4.0 install libgpod.so.0(which is a link to libgpod.so.0.302.0 or libgpod.so.0.400.0 respectively) so I suggest that a warning be added to libgpod's pkg_postinst() telling to rebuild everything that depends on it
Comment 3 David Philippi 2006-09-30 16:26:41 UTC
Created attachment 98481 [details, diff]
Patch to fix the Makefile.am in test/
Comment 4 David Philippi 2006-09-30 16:33:18 UTC
Created attachment 98482 [details]
Modified ebuild

I can't use eautoreconf because that one is still missing the -I m4 on the call to aclocal which is required here to get automake working.
Comment 5 David Philippi 2006-09-30 16:35:29 UTC
Comment on attachment 98481 [details, diff]
Patch to fix the Makefile.am in test/

Sorry for the noise, I hate bugzilla moving to the next bug automatically!
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-30 16:38:38 UTC
This is for joem to handle, but anyway, you *need* to use eautoreconf, NOT the autotools by hand. Please refer to http://www.gentoo.org/proj/en/qa/autofailure.xml .
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 06:54:04 UTC
*** Bug 150134 has been marked as a duplicate of this bug. ***
Comment 8 Dariusz Dworznik 2006-10-13 15:18:24 UTC
amarok works just fine with libgpod-0.4.0 when there is new firmware on the iPOD (firmwares released in September with iTunes 7.) I have 5G iPOD with latest firmware 1.2, amarok compiled with libgpod-0.3.X crashes while accessing iPOD. 
Comment 9 Tom Lloyd 2006-10-14 12:28:47 UTC
I had this problem (Amarok would transfer the files but the iPod wouldn't play them) - but I just remerged it and now it plays nicely with the new libgpod.

By the way, I've got a Nano, and I haven't updated the firmware in months.

Is there any good reason why the Amarok ebuild tries to downgrade libgpod to 0.3x?
Comment 10 Joe McCann (RETIRED) gentoo-dev 2006-10-16 12:36:59 UTC
tester added this and should be listed as maintainer
Comment 11 Olivier Crete (RETIRED) gentoo-dev 2006-10-16 13:22:32 UTC
@flameeyes: as you seem to be maintaining amarok, if amarok works with libgpod 0.4.0
If you want, I can add a "if has_version media-sound/amarok; then elog "remerge amarok" ; done" to the libgpod ebuild
Comment 12 Michael Gisbers 2006-10-19 05:08:32 UTC
amarok-1.4.3-r1 runs fine using libgpod-0.4.0 using a iPod nano 8GB with recent firmware (iTunes7).
Comment 13 Olivier Crete (RETIRED) gentoo-dev 2006-11-22 20:20:06 UTC
so what's the bug here ? do you want a pkg_postinst message if amarok is present ? I'll be pushing libgpod to stable, so please let me know asap.
Comment 14 Tom Lloyd 2006-11-23 02:33:26 UTC
Something I hadn't noticed at the time of my previous comment is that Amarok + libgpod-0.4 seems to be unable to transfer album art.  I eventually downgraded back to 0.3 and the album art started appearing again on newly tranferred music.
Comment 15 Stelian Ionescu 2006-11-23 03:05:58 UTC
I was thinking more of something like this(copied from a gettext ebuild):

ewarn "Any package that linked against the previous version"
ewarn "of libgpod will have to be rebuilt."
ewarn "Please 'emerge gentoolkit' and run:"
ewarn "revdep-rebuild --library libgpod.so.0"

as you can see here: http://gentoo-portage.com/media-libs/libgpod/RDep#ptabs
amarok is not the only package that may have problems with a libgpod changing API/ABI
Comment 16 David Bergstein 2006-12-30 10:50:02 UTC
(In reply to comment #15)
> I was thinking more of something like this(copied from a gettext ebuild):
> 
> ewarn "Any package that linked against the previous version"
> ewarn "of libgpod will have to be rebuilt."
> ewarn "Please 'emerge gentoolkit' and run:"
> ewarn "revdep-rebuild --library libgpod.so.0"
> 
> as you can see here: http://gentoo-portage.com/media-libs/libgpod/RDep#ptabs
> amarok is not the only package that may have problems with a libgpod changing
> API/ABI
> 

I ran into this issue with my iPod Photo - and confirmed that the problems initially encountered with adding new tunes to the iTunes DB was fixed after following the instructions above for revdep-rebuild.  In addition, album art, which never worked for me under libgpod 0.30, is now also functional under libgpod v0.40 and amarok-1.4.3-r1.
Comment 17 Tomasz Mon 2007-01-15 21:51:10 UTC
it happens with iPod mini 2g (iPod refuses to play files)

I had masked 0.4.0 and used 0.3.2-r1, but 0.3.2-r1 was removed recently from the tree, any chance to get it back ?
Comment 18 Tomasz Mon 2007-01-21 21:26:35 UTC
media-libs/libgpod-0.4.2 fixes it

just emerge it and rebuild amarok
Comment 19 Wulf Krueger (RETIRED) gentoo-dev 2007-06-17 21:24:49 UTC
How do we finally get this fixed? I don't use either product concerned so I can't do much about this myself.
Comment 20 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-17 21:33:55 UTC
I have no ipod so I can't really help much about this; Dan is this supposedly fixed on Amarok side? 1.4.6_rc2 is now in tree so if it was fixed in SVN it's now fixed in Gentoo.
Comment 21 Dan 2007-06-18 02:43:19 UTC
I believe so.  
Comment 22 Wulf Krueger (RETIRED) gentoo-dev 2007-07-07 14:01:48 UTC
Has someone here tested >=media-sound/amarok-1.4.6 to see if this is fixed now?
Comment 23 juantxorena@gmail.com 2007-09-09 16:14:43 UTC
I'm using amarok-1.4.6-r1 and libgpod-0.4.2 and I haven't got this problems. Maybe this should be closed.
Comment 24 Jean-Francis Roy 2008-06-29 23:11:28 UTC
This version of libgpod isn't even in Portage anymore. This bug should be closed.
Comment 25 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-29 23:23:27 UTC
Closing per above.