After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 310017 - iPod source doesn't compile with newer hal (>= 0.5)
iPod source doesn't compile with newer hal (>= 0.5)
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: general
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-11 12:19 UTC by James "Doc" Livingston
Modified: 2005-08-28 13:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch from merge branch (1.41 KB, patch)
2005-07-11 12:19 UTC, James "Doc" Livingston
none Details | Review
update (1.88 KB, patch)
2005-08-20 19:26 UTC, Ronald Bultje
none Details | Review
oops (2.16 KB, patch)
2005-08-20 19:44 UTC, Ronald Bultje
none Details | Review
whee (2.82 KB, patch)
2005-08-20 19:55 UTC, Ronald Bultje
none Details | Review

Description James "Doc" Livingston 2005-07-11 12:19:23 UTC
The current ipod code in cvs won't compile with versions of hal >= 0.5. I'm
attching the patch from the merge arch branch which will make it use hal >= 0.5
- however this makes it require the higher version. It's probably better to
check and compile against either version.
Comment 1 James "Doc" Livingston 2005-07-11 12:19:46 UTC
Created attachment 48948 [details] [review]
patch from merge branch
Comment 2 Ronald Bultje 2005-08-20 19:26:59 UTC
Created attachment 51030 [details] [review]
update

This patch works with hal 0.5.3-4 and dbus 0.35.2-1 (rawhide). It
initializes/frees the dbuserror and uses init_direct() so that a context is
assigned. Without those two, it crashes on initialization.
Comment 3 Ronald Bultje 2005-08-20 19:44:18 UTC
Created attachment 51031 [details] [review]
oops

Bla - only works if a connection already exists, and it does not... This patch
fixes my previous one.
Comment 4 Ronald Bultje 2005-08-20 19:55:42 UTC
Created attachment 51032 [details] [review]
whee

Bla - this prefixes paths with file:// so I can play songs from my ipod
(playbin demands valid VFS URIs). Without it, my terminal is stuffed with
"/media/ipod/... is not a valid URI" warnings from GStreamer's playbin element.
Other sources work fine.
Comment 5 James "Doc" Livingston 2005-08-21 14:08:15 UTC
Current CVS does not compile with --with-dbus, with DBUS  >= 0.30, because the
code in rb-dbus-remote needs updating to the newer API. Also you patch drop
support for HAL < 0.5 which would be good to keep, because some Gnome 2.10
desktops (which is the lowest environment we're currently targetting) don't have
the newer version of HAL. I guess we could make parts of the code coditional on
the HAL version.

Apart from version issues, your patch looks good to me.
Comment 6 Colin Walters 2005-08-22 15:43:29 UTC
I'm working on updating the core D-BUS remoting support, so that shouldn't be a
concern.
Comment 7 Colin Walters 2005-08-28 13:47:23 UTC
I merged this change, but attempted to preserve the old HAL support too.