GNOME Bugzilla – Bug 615127
Uses dbus-glib but doesn't check for it
Last modified: 2010-04-08 08:08:17 UTC
Hi, dlg-package-installer.c unconditionally includes dbus/dbus-glib.h, but configure.ac only checks for dbus-glib-1 if packagekit support is requested. It should check for it always, to avoid build failures like this: cc -DHAVE_CONFIG_H -I. -I.. -I../copy-n-paste/ -I.. -I.. -DFR_PREFIX=\"/usr\" -DFR_SYSCONFDIR=\"/etc\" -DFR_DATADIR=\"/usr/share\" -DPRIVDATADIR=\"/usr/share/file-roller/\" -DUI_DIR=\"/usr/share/file-roller/ui\" -DFR_LIBDIR=\"/usr/lib\" -DPKG_DATA_DIR=\"/usr/share/file-roller\" -DPIXMAPSDIR=\""/usr/share/pixmaps"\" -DGLADEDIR=\"""\" -DPRIVEXECDIR=\"/usr/lib/file-roller/file-roller/\" -DSHDIR=\"/usr/lib/file-roller/file-roller/\" -pthread -D_REENTRANT -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -g -Wall -O2 -c dlg-package-installer.c dlg-package-installer.c:28:28: error: dbus/dbus-glib.h: No such file or directory
Created attachment 158176 [details] [review] Fix build when dbus-glib is not available It is just missing a pair of #ifdef’s.
patch applied, thanks.