[oe-commits] org.oe.oz354x gnome: Add svn version of gnome-vfs-dbus as earlier versions do not compile with recent dbus packages.Thanks to hrw for tracking this down

coredump commit openembedded-commits at lists.openembedded.org
Sat Oct 21 14:04:02 UTC 2006


gnome: Add svn version of gnome-vfs-dbus as earlier versions do not compile with recent dbus packages.Thanks to hrw for tracking this down

Author: coredump at openembedded.org
Branch: org.openembedded.oz354x
Revision: 18cc8bbfdaddd5a180fc84e97587cb0820357704
ViewMTN: http://monotone.openembedded.org/revision.psp?id=18cc8bbfdaddd5a180fc84e97587cb0820357704
Files:
1
packages/gnome/gnome-vfs-dbus/dbus-api-change.patch
packages/gnome/gnome-vfs-dbus/glib-after-nameser.patch
packages/gnome/gnome-vfs-dbus/gtk-doc.m4
packages/gnome/gnome-vfs-dbus/gtk-doc.make
packages/gnome/gnome-vfs-dbus/werror_compile.patch
packages/gnome/gnome-vfs-dbus_svn.bb
Diffs:

#
# mt diff -r98f6aefadc6189f682c469ea8cb132f93e934d9a -r18cc8bbfdaddd5a180fc84e97587cb0820357704
#
# 
# 
# add_file "packages/gnome/gnome-vfs-dbus/dbus-api-change.patch"
#  content [e542bbe4c146e0e3b964f0890c4b9e2bda5d4b6f]
# 
# add_file "packages/gnome/gnome-vfs-dbus/glib-after-nameser.patch"
#  content [eedcded224ceccc94238a6b531b76895abd47513]
# 
# add_file "packages/gnome/gnome-vfs-dbus/gtk-doc.m4"
#  content [4738c8e91d2d9ae9d017a662d550390ebeba463f]
# 
# add_file "packages/gnome/gnome-vfs-dbus/gtk-doc.make"
#  content [172262324135676996bbbd59eead6ccec45da936]
# 
# add_file "packages/gnome/gnome-vfs-dbus/werror_compile.patch"
#  content [503bc955682e4f41b61813c53767a0e61152a177]
# 
# add_file "packages/gnome/gnome-vfs-dbus_svn.bb"
#  content [87630dc807a6ab4d9cf80392797310f37ed193ee]
# 
============================================================
--- packages/gnome/gnome-vfs-dbus/dbus-api-change.patch	e542bbe4c146e0e3b964f0890c4b9e2bda5d4b6f
+++ packages/gnome/gnome-vfs-dbus/dbus-api-change.patch	e542bbe4c146e0e3b964f0890c4b9e2bda5d4b6f
@@ -0,0 +1,78 @@
+--- trunk/dbus-daemon/vfs-daemon.c.orig	2006-08-09 10:43:26.000000000 +0100
++++ trunk/dbus-daemon/vfs-daemon.c	2006-08-09 10:45:59.000000000 +0100
+@@ -91,7 +91,7 @@
+ 		g_warning ("Failed to acquire vfs-daemon service: %s", error.message);
+ 		dbus_error_free (&error);
+ 
+-		dbus_connection_disconnect (conn);
++		dbus_connection_close (conn);
+ 		dbus_connection_unref (conn);
+ 		conn = NULL;
+ 
+@@ -101,7 +101,7 @@
+ 	if (ret == DBUS_REQUEST_NAME_REPLY_EXISTS) {
+ 		g_printerr ("VFS daemon already running, exiting.\n");
+ 
+-		dbus_connection_disconnect (conn);
++		dbus_connection_close (conn);
+ 		dbus_connection_unref (conn);
+ 		conn = NULL;
+ 
+@@ -111,7 +111,7 @@
+ 	if (ret != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
+ 		g_printerr ("Not primary owner of the service, exiting.\n");
+ 
+-		dbus_connection_disconnect (conn);
++		dbus_connection_close (conn);
+ 		dbus_connection_unref (conn);
+ 		conn = NULL;
+ 
+@@ -124,7 +124,7 @@
+ 						   NULL)) {
+ 		g_printerr ("Failed to register object with D-BUS.\n");
+ 
+-		dbus_connection_disconnect (conn);
++		dbus_connection_close (conn);
+ 		dbus_connection_unref (conn);
+ 		conn = NULL;
+ 
+@@ -152,7 +152,7 @@
+ 		return;
+ 	}
+ 
+-	dbus_connection_disconnect (conn);
++	dbus_connection_close (conn);
+ 	dbus_connection_unref (conn);
+ }
+ 
+--- trunk/dbus-daemon/daemon-connection.c.orig	2006-08-09 10:43:32.000000000 +0100
++++ trunk/dbus-daemon/daemon-connection.c	2006-08-09 10:46:26.000000000 +0100
+@@ -321,7 +321,7 @@
+ 	d(g_print ("Last unref\n"));
+ 
+ 	if (dbus_connection_get_is_connected (conn->conn)) {
+-		dbus_connection_disconnect (conn->conn);
++		dbus_connection_close (conn->conn);
+ 	}
+ 	dbus_connection_unref (conn->conn);
+ 
+--- trunk/dbus-daemon/dbus-method.c.orig	2006-08-09 10:43:38.000000000 +0100
++++ trunk/dbus-daemon/dbus-method.c	2006-08-09 10:46:57.000000000 +0100
+@@ -220,7 +220,7 @@
+ 	if (!dbus_connection_add_filter (dbus_conn, message_handler,
+ 					 NULL, NULL)) {
+ 		g_warning ("Failed to add filter to the connection.");
+-		dbus_connection_disconnect (dbus_conn);
++		dbus_connection_close (dbus_conn);
+ 		dbus_connection_unref (dbus_conn);
+ 
+ 		dbus_conn = NULL;
+@@ -1666,7 +1666,7 @@
+ vfs_module_shutdown (GnomeVFSMethod* method)
+ {
+ 	if (dbus_conn) {
+-		dbus_connection_disconnect (dbus_conn);
++		dbus_connection_close (dbus_conn);
+ 		dbus_connection_unref (dbus_conn);
+ 
+ 		dbus_conn = NULL;
============================================================
--- packages/gnome/gnome-vfs-dbus/glib-after-nameser.patch	eedcded224ceccc94238a6b531b76895abd47513
+++ packages/gnome/gnome-vfs-dbus/glib-after-nameser.patch	eedcded224ceccc94238a6b531b76895abd47513
@@ -0,0 +1,18 @@
+--- trunk/libgnomevfs/gnome-vfs-resolve.c.orig	2006-02-08 19:18:43.000000000 +0100
++++ trunk/libgnomevfs/gnome-vfs-resolve.c	2006-02-08 19:21:42.000000000 +0100
+@@ -23,7 +23,6 @@
+ 
+ #include <errno.h>
+ #include <string.h>
+-#include <glib.h>
+ #ifndef G_OS_WIN32
+ /* Keep <sys/types.h> above the network includes for FreeBSD. */
+ #include <sys/types.h>
+@@ -48,6 +47,7 @@
+ #define RELOAD_TIMEVAL 2
+ #endif
+ 
++#include <glib.h>
+ #include <glib-object.h>
+ 
+ #include <libgnomevfs/gnome-vfs-resolve.h>
============================================================
--- packages/gnome/gnome-vfs-dbus/gtk-doc.m4	4738c8e91d2d9ae9d017a662d550390ebeba463f
+++ packages/gnome/gnome-vfs-dbus/gtk-doc.m4	4738c8e91d2d9ae9d017a662d550390ebeba463f
@@ -0,0 +1,53 @@
+dnl -*- mode: autoconf -*-
+
+# serial 1
+
+dnl Usage:
+dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
+AC_DEFUN([GTK_DOC_CHECK],
+[
+  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+  dnl for overriding the documentation installation directory
+  AC_ARG_WITH(html-dir,
+    AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
+    [with_html_dir='${datadir}/gtk-doc/html'])
+  HTML_DIR="$with_html_dir"
+  AC_SUBST(HTML_DIR)
+
+  dnl enable/disable documentation building
+  AC_ARG_ENABLE(gtk-doc,
+    AC_HELP_STRING([--enable-gtk-doc],
+                   [use gtk-doc to build documentation [default=no]]),,
+    enable_gtk_doc=no)
+
+  have_gtk_doc=no
+  if test -z "$PKG_CONFIG"; then
+    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+  fi
+  if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
+    have_gtk_doc=yes
+  fi
+
+  dnl do we want to do a version check?
+ifelse([$1],[],,
+  [gtk_doc_min_version=$1
+  if test "$have_gtk_doc" = yes; then
+    AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
+    if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
+      AC_MSG_RESULT(yes)
+    else
+      AC_MSG_RESULT(no)
+      have_gtk_doc=no
+    fi
+  fi
+])
+  if test x$enable_gtk_doc = xyes; then
+    if test "$have_gtk_doc" != yes; then
+      enable_gtk_doc=no
+    fi
+  fi
+
+  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
+  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
+])
============================================================
--- packages/gnome/gnome-vfs-dbus/gtk-doc.make	172262324135676996bbbd59eead6ccec45da936
+++ packages/gnome/gnome-vfs-dbus/gtk-doc.make	172262324135676996bbbd59eead6ccec45da936
@@ -0,0 +1,148 @@
+# -*- mode: makefile -*-
+
+####################################
+# Everything below here is generic #
+####################################
+
+if GTK_DOC_USE_LIBTOOL
+GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CFLAGS) $(CFLAGS)
+GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS)
+else
+GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CFLAGS) $(CFLAGS)
+GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS)
+endif
+
+# We set GPATH here; this gives us semantics for GNU make
+# which are more like other make's VPATH, when it comes to
+# whether a source that is a target of one rule is then
+# searched for in VPATH/GPATH.
+#
+GPATH = $(srcdir)
+
+TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
+
+EXTRA_DIST = 				\
+	$(content_files)		\
+	$(HTML_IMAGES)			\
+	$(DOC_MAIN_SGML_FILE)		\
+	$(DOC_MODULE).types		\
+	$(DOC_MODULE)-sections.txt	\
+	$(DOC_MODULE)-overrides.txt
+
+DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
+	   $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
+
+SCANOBJ_FILES = 		 \
+	$(DOC_MODULE).args 	 \
+	$(DOC_MODULE).hierarchy  \
+	$(DOC_MODULE).interfaces \
+	$(DOC_MODULE).prerequisites \
+	$(DOC_MODULE).signals
+
+CLEANFILES = $(SCANOBJ_FILES) $(DOC_MODULE)-scan.o $(DOC_MODULE)-unused.txt $(DOC_STAMPS)
+
+if ENABLE_GTK_DOC
+all-local: html-build.stamp
+
+#### scan ####
+
+scan-build.stamp: $(HFILE_GLOB)
+	@echo '*** Scanning header files ***'
+	@-chmod -R u+w $(srcdir)
+	if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null ; then \
+	    CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
+	else \
+	    cd $(srcdir) ; \
+	    for i in $(SCANOBJ_FILES) ; do \
+               test -f $$i || touch $$i ; \
+	    done \
+	fi
+	cd $(srcdir) && \
+	  gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
+	touch scan-build.stamp
+
+$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): scan-build.stamp
+	@true
+
+#### templates ####
+
+tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
+	@echo '*** Rebuilding template files ***'
+	@-chmod -R u+w $(srcdir)
+	cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
+	touch tmpl-build.stamp
+
+tmpl.stamp: tmpl-build.stamp
+	@true
+
+#### xml ####
+
+sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml
+	@echo '*** Building XML ***'
+	@-chmod -R u+w $(srcdir)
+	cd $(srcdir) && \
+	gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml $(MKDB_OPTIONS)
+	touch sgml-build.stamp
+
+sgml.stamp: sgml-build.stamp
+	@true
+
+#### html ####
+
+html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
+	@echo '*** Building HTML ***'
+	@-chmod -R u+w $(srcdir)
+	rm -rf $(srcdir)/html 
+	mkdir $(srcdir)/html
+	cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+	test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
+	@echo '-- Fixing Crossreferences' 
+	cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
+	touch html-build.stamp
+endif
+
+##############
+
+clean-local:
+	rm -f *~ *.bak
+
+maintainer-clean-local: clean
+	cd $(srcdir) && rm -rf xml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
+	(installfiles=`echo $(srcdir)/html/*`; \
+	if test "$$installfiles" = '$(srcdir)/html/*'; \
+	then echo '-- Nothing to install' ; \
+	else \
+	  for i in $$installfiles; do \
+	    echo '-- Installing '$$i ; \
+	    $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
+	  done; \
+	  echo '-- Installing $(srcdir)/html/index.sgml' ; \
+	  $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
+	fi)
+
+uninstall-local:
+	rm -f $(DESTDIR)$(TARGET_DIR)/*
+
+#
+# Require gtk-doc when making dist
+#
+if ENABLE_GTK_DOC
+dist-check-gtkdoc:
+else
+dist-check-gtkdoc:
+	@echo "*** gtk-doc must be installed and enabled in order to make dist"
+	@false
+endif
+
+dist-hook: dist-check-gtkdoc dist-hook-local
+	mkdir $(distdir)/tmpl
+	mkdir $(distdir)/xml
+	mkdir $(distdir)/html
+	-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
+	-cp $(srcdir)/xml/*.xml $(distdir)/xml
+	-cp $(srcdir)/html/* $(distdir)/html
+
+.PHONY : dist-hook-local
============================================================
--- packages/gnome/gnome-vfs-dbus/werror_compile.patch	503bc955682e4f41b61813c53767a0e61152a177
+++ packages/gnome/gnome-vfs-dbus/werror_compile.patch	503bc955682e4f41b61813c53767a0e61152a177
@@ -0,0 +1,11 @@
+--- gnome-vfs-dbus-2.8.4.4/configure.in.old	2006-01-26 11:56:09.000000000 +0100
++++ gnome-vfs-dbus-2.8.4.4/configure.in	2006-01-26 11:45:02.000000000 +0100
+@@ -279,7 +279,7 @@
+ 
+ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
+ 	echo "enable compile warnings = $set_more_warnings"
+-	VFS_CFLAGS="-Wall -Werror \
++	VFS_CFLAGS="-Wall \
+ 	-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
+ 	-Wnested-externs -Wpointer-arith"
+ 
============================================================
--- packages/gnome/gnome-vfs-dbus_svn.bb	87630dc807a6ab4d9cf80392797310f37ed193ee
+++ packages/gnome/gnome-vfs-dbus_svn.bb	87630dc807a6ab4d9cf80392797310f37ed193ee
@@ -0,0 +1,109 @@
+LICENSE = "GPL"
+SECTION = "x11/gnome"
+PR = "r1"
+PROVIDES = "gnome-vfs"
+RPROVIDES = "gnome-vfs"
+
+PV = "2.8.4.4+svn${SRCDATE}"
+
+inherit gnome pkgconfig
+
+DEPENDS = "gtk-doc-native libxml2 gconf-dbus dbus bzip2 gnome-mime-data zlib samba-3.0.14a"
+RRECOMMENDS = "gnome-vfs-plugin-file shared-mime-info"
+
+SRC_URI = "svn://developer.imendio.com/svn/gnome-vfs-dbus;module=trunk;proto=http \
+           file://gssapi.patch;patch=1;pnum=1 \
+           file://gconftool-lossage.patch;patch=1;pnum=1 \
+           file://glib-after-nameser.patch;patch=1;pnum=1 \
+	   file://gtk-doc.m4 \
+	   file://gtk-doc.make \
+	   file://werror_compile.patch;patch=1;pnum=1 \
+	   file://dbus-api-change.patch;patch=1"
+
+EXTRA_OECONF = "--with-ipc=dbus --disable-gtk-doc"
+S = "${WORKDIR}/trunk"
+
+FILES_${PN} += " ${libdir}/vfs"
+FILES_${PN}-dev += " ${libdir}/gnome-vfs-2.0/modules/*.a ${libdir}/gnome-vfs-2.0/modules/*.la ${libdir}/gnome-vfs-2.0/include"
+#FILES_${PN}-doc += " ${datadir}/gtk-doc"
+
+GNOME_VFS_HEADERS = " \
+gnome-vfs-utils.h \
+gnome-vfs-application-registry.h \
+gnome-vfs-async-ops.h \
+gnome-vfs-ops.h \
+gnome-vfs-uri.h \
+gnome-vfs-standard-callbacks.h \
+gnome-vfs-module-callback.h \
+gnome-vfs-context.h \
+gnome-vfs-file-info.h \
+gnome-vfs-directory.h \
+gnome-vfs-mime-monitor.h \
+gnome-vfs-mime-handlers.h \
+gnome-vfs-mime-deprecated.h \
+gnome-vfs-result.h \
+gnome-vfs-job-limit.h \
+gnome-vfs-file-size.h \
+gnome-vfs-mime-utils.h \
+gnome-vfs-find-directory.h \
+gnome-vfs-init.h \
+gnome-vfs-handle.h \
+gnome-vfs.h \
+gnome-vfs-cancellation.h \
+gnome-vfs-xfer.h \
+gnome-vfs-monitor.h \
+gnome-vfs-types.h \
+gnome-vfs-volume-monitor.h \
+gnome-vfs-drive.h \
+gnome-vfs-volume.h \
+gnome-vfs-enum-types.h \
+gnome-vfs-address.h \
+gnome-vfs-dns-sd.h \
+gnome-vfs-mime-info-cache.h \
+gnome-vfs-resolve.h"
+
+GNOME_VFS_MODULE_HEADERS = " \
+gnome-vfs-mime-info.h \
+gnome-vfs-transform.h \
+gnome-vfs-ssl.h \
+gnome-vfs-inet-connection.h \
+gnome-vfs-socket.h \
+gnome-vfs-parse-ls.h \
+gnome-vfs-method.h \
+gnome-vfs-cancellable-ops.h \
+gnome-vfs-module.h \
+gnome-vfs-module-shared.h \
+gnome-vfs-module-callback-module-api.h \
+gnome-vfs-mime.h \
+gnome-vfs-socket-buffer.h"
+
+do_configure_prepend() {
+	mkdir -p m4
+	install ${WORKDIR}/gtk-doc.m4 ./m4/
+	install ${WORKDIR}/gtk-doc.make ./
+}
+
+do_compile_prepend() {
+    find ${S} -name Makefile | xargs sed -i 's:-Werror::'
+}
+
+do_stage() {
+	oe_libinstall -so -C libgnomevfs libgnomevfs-2 ${STAGING_LIBDIR}
+	install -d ${STAGING_INCDIR}/gnome-vfs-2.0/libgnomevfs
+	for i in ${GNOME_VFS_HEADERS}; do install -m 0644 libgnomevfs/$i ${STAGING_INCDIR}/gnome-vfs-2.0/libgnomevfs/; done
+	install -d ${STAGING_INCDIR}/gnome-vfs-module-2.0/libgnomevfs
+	for i in ${GNOME_VFS_MODULE_HEADERS}; do install -m 0644 libgnomevfs/$i ${STAGING_INCDIR}/gnome-vfs-module-2.0/libgnomevfs/; done
+}
+
+do_install() {
+	oe_runmake ORBIT_IDL="${ORBIT_IDL_SRC}" DESTDIR="${D}" install
+}
+
+PACKAGES_DYNAMIC = "gnome-vfs-plugin-*"
+
+python populate_packages_prepend () {
+	print bb.data.getVar('FILES_gnome-vfs', d, 1)
+
+	plugindir = bb.data.expand('${libdir}/gnome-vfs-2.0/modules/', d)
+	do_split_packages(d, plugindir, '^lib(.*)\.so$', 'gnome-vfs-plugin-%s', 'GNOME VFS plugin for %s')
+}






More information about the Openembedded-commits mailing list