Created attachment 335374 [details] emerge --info On a machine with dbus installed but not running, evince will immediately segfault when launched without a pdf and will terminate without a segfault when trying to open a pdf. If evince is built with ./configure --disable-dbus, it can then run successfully, therefore a use flag should be added so users aren't forced to run the dbus daemon in order to use evince.
Created attachment 335376 [details, diff] Adds a dbus use flag (default on) to the ebuild
Please see the following changelog entry for evince and the related bug report: 27 Dec 2012; Alexandre Rostovtsev <tetromino@gentoo.org> evince-3.6.1.ebuild: Add missing gdbus-codegen dependency; remove dbus USE flag, which is now pointless since >=gtk+-3.6[X] always requires dbus (bug #448804, thanks to Florian Faber). basically, evince-3.6 and its direct dependencies make it almost unavoidable to have dbus installed so we now default to have it always on. Also please note that dbus ebuild explicitely states: elog "Some applications require a session bus in addition to the system" elog "bus. Please see \`man dbus-launch\` for more information." elog Having evince segfault due to missing running dbus is not nice, but I think we would rather fix that than make it optional again.
Created attachment 335420 [details, diff] Fix segfault and have evince fall back on normal file loading without running dbus Here's a patch that fixes the segfault when evince is compiled with dbus support. Unfortunately I also had to add some logic to the document open function so it falls back on the load function that doesn't use dbus, otherwise the open menu simply does nothing. Let me know if there is something else I should do.
Well it looks like a small enough patch that upstream could integrate it. Could you please open a bug report at bugzilla.gnome.org and attach your patch there, then paste the URL here ?
Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=691672
Resolved upstream.
fixed in 3.8