Package: gvfs
Version: 1.2.3-1
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

obex* are only built on Linux, please only try to install them on those
architectures. To avoid the burden of having separate .install.os files,
I'm proposing a conditional in debian/rules, see attached patch.

It's not as important as gnome-vfs for GNU/kFreeBSD, but that's the next
blocker, for the xulrunner/libgnomeui loop.

AFAICT, that didn't change the contents of the gvfs-backends package on
amd64, checked with cowbuilder.

Thanks for considering.

Mraw,
KiBi.
diff -u gvfs-1.2.3/debian/rules gvfs-1.2.3/debian/rules
--- gvfs-1.2.3/debian/rules
+++ gvfs-1.2.3/debian/rules
@@ -14,7 +14,15 @@
 DEB_DH_STRIP_ARGS := --dbg-package=gvfs-dbg
 DEB_DH_MAKESHLIBS_ARGS_ALL := -Xlib/gio -Xlib/gvfs
+DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
 FUSE_ARCHES := $(shell type-handling any linux,kfreebsd)
 
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+install/gvfs-backends::
+	# Those are only available on Linux:
+	dh_install -pgvfs-backends debian/tmp/usr/lib/gvfs/gvfsd-obexftp
+	dh_install -pgvfs-backends debian/tmp/usr/share/gvfs/mounts/obexftp.mount
+endif
+
 clean::
 	sed -i 's/@FUSE_ARCHES@/$(FUSE_ARCHES)/' debian/control
diff -u gvfs-1.2.3/debian/gvfs-backends.install gvfs-1.2.3/debian/gvfs-backends.install
--- gvfs-1.2.3/debian/gvfs-backends.install
+++ gvfs-1.2.3/debian/gvfs-backends.install
@@ -6,7 +6,8 @@
 debian/tmp/usr/lib/gvfs/gvfsd-gphoto2
 debian/tmp/usr/lib/gvfs/gvfsd-http
 debian/tmp/usr/lib/gvfs/gvfsd-network
-debian/tmp/usr/lib/gvfs/gvfsd-obexftp
+# Now installed from debian/rules:
+# debian/tmp/usr/lib/gvfs/gvfsd-obexftp
 debian/tmp/usr/lib/gvfs/gvfsd-sftp
 debian/tmp/usr/lib/gvfs/gvfsd-smb
 debian/tmp/usr/lib/gvfs/gvfsd-smb-browse
@@ -22,7 +23,8 @@
 debian/tmp/usr/share/gvfs/mounts/gphoto2.mount
 debian/tmp/usr/share/gvfs/mounts/http.mount
 debian/tmp/usr/share/gvfs/mounts/network.mount
-debian/tmp/usr/share/gvfs/mounts/obexftp.mount
+# Now installed from debian/rules:
+# debian/tmp/usr/share/gvfs/mounts/obexftp.mount
 debian/tmp/usr/share/gvfs/mounts/sftp.mount
 debian/tmp/usr/share/gvfs/mounts/smb-browse.mount
 debian/tmp/usr/share/gvfs/mounts/smb.mount

Reply via email to