Package: pcmanfm
Severity: important
Version: 0.3.2.1-2
Tags: patch

Hi,

the current version fails to build on GNU/kFreeBSD.

It needs updated debian packaging, see attached patch,
as hal is currently available only on Linux.

It would be nice if it could be included in the next upload.

Thanks in advance

                        Petr


diff -u pcmanfm-0.3.2.1/debian/control pcmanfm-0.3.2.1/debian/control
--- pcmanfm-0.3.2.1/debian/control
+++ pcmanfm-0.3.2.1/debian/control
@@ -3,12 +3,12 @@
 Priority: optional
 Maintainer: Lu, Chao-Ming (Tetralet) <[EMAIL PROTECTED]>
 Uploaders: Andrew Lee <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 5), dpatch, libgtk2.0-dev (>= 2.6.0), 
libgamin-dev, automake1.9, autoconf, pkg-config, libstartup-notification0-dev, 
shared-mime-info, libhal-dev, libdbus-glib-1-dev, libhal-storage-dev
+Build-Depends: debhelper (>= 5), dpatch, libgtk2.0-dev (>= 2.6.0), 
libgamin-dev, automake1.9, autoconf, pkg-config, libstartup-notification0-dev, 
shared-mime-info, libhal-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], 
libdbus-glib-1-dev, libhal-storage-dev [!kfreebsd-i386 !kfreebsd-amd64 
!hurd-i386]
 Build-Conflicts: autoconf2.13, automake1.4
 Standards-Version: 3.7.2.2
 
 Package: pcmanfm
-Architecture: any
+Architecture: linux-any
 Depends: ${shlibs:Depends}, gamin, shared-mime-info
 Recommends: gnome-icon-theme
 Conflicts: pcmanfm-nohal
diff -u pcmanfm-0.3.2.1/debian/rules pcmanfm-0.3.2.1/debian/rules
--- pcmanfm-0.3.2.1/debian/rules
+++ pcmanfm-0.3.2.1/debian/rules
@@ -15,6 +15,7 @@
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
 
 CFLAGS = -Wall -g
@@ -86,6 +87,7 @@
        $(MAKE) install DESTDIR=$(CURDIR)/debian/pcmanfm-nohal
        install -m 644 -D $(CURDIR)/pcmanfm.desktop \
                
$(CURDIR)/debian/pcmanfm-nohal/usr/share/applications/pcmanfm.desktop
+ifeq (linux,$(DEB_HOST_ARCH_OS))
        $(MAKE) distclean
 
        # Make pcmanfm-hal
@@ -94,6 +96,7 @@
        $(MAKE) install DESTDIR=$(CURDIR)/debian/pcmanfm
        install -m 644 -D $(CURDIR)/pcmanfm.desktop \
                $(CURDIR)/debian/pcmanfm/usr/share/applications/pcmanfm.desktop
+endif
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -126,9 +130,9 @@
 #      dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
+       dh_gencontrol -s
+       dh_md5sums -s
+       dh_builddeb -s
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install 

Reply via email to