libgphoto2 uses the deprecated (and removed in dbus-0.90) dbus_connection_disconnect in libgphoto2_port/disk/disk.c This causes gphoto2 to fail when it dlopens this part of libgphoto2, leading to no photo acquiring being possible. Removing the dbus_connection_disconnect call fixes the issue. Yes, I know dbus_connection_close is the replacement, but see upstream changes: http://svn.sourceforge.net/viewvc/gphoto/trunk/libgphoto2/libgphoto2_port/disk/disk.c?r1=8834&r2=9149 changes dbus_connection_disconnect to dbus_connection_close http://svn.sourceforge.net/viewvc/gphoto/trunk/libgphoto2/libgphoto2_port/disk/disk.c?r1=9149&r2=9150 Removes the dbus_connection_close with the commit message "no close() ... or we close the wrong bus". The summary of these changes is to remove the dbus_connect_disconnect call, as seen on the reference URL. I have tested it locally through step-by-step ebuild command, and it works good without dbus_connection_disconnect, to the extent that gphoto2 is able to fetch photos instead of giving a symbol lookup error - I have no idea if the complete removal done by upstream is the correct fix.
Created attachment 98459 [details, diff] change from dbus_connection_disconnect to dbus_connection_close
Created attachment 98460 [details, diff] remove dbus_connection_disconnect
Created attachment 98461 [details, diff] remove dbus_connection_disconnect
Created attachment 98463 [details, diff] diff libgphoto2-2.2.1-r1.ebuild libgphoto2-2.2.1-r2.ebuild libgphoto2-2.2.1-r2 = with the dbus patch
(In reply to comment #4) > Created an attachment (id=98463) [edit] > diff libgphoto2-2.2.1-r1.ebuild libgphoto2-2.2.1-r2.ebuild > > libgphoto2-2.2.1-r2 = with the dbus patch > When is -r2 available in portage ? The diff refers to another .patch file /usr/portage/media-libs/libgphoto2/files/libgphoto2-2.1.6-dbus-connection.patch that's not in portage.
*** Bug 153899 has been marked as a duplicate of this bug. ***
liquidx, gnome-herd: mind if I commit this? Asked upstream, patch should be okay and not break old versions.
hanno, go ahead, thanks.
Please commit this soon Hanno, D-Bus 0.95 will be unleashed on the ~arch tree soon enough.
fixed