Package: libgpod
Version: 0.7.2-1.1
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweaks, see attached patch.
Thanks in advance
Petrdiff -u libgpod-0.7.2/debian/control libgpod-0.7.2/debian/control
--- libgpod-0.7.2/debian/control
+++ libgpod-0.7.2/debian/control
@@ -5,7 +5,7 @@
Uploaders: Frank Lichtenheld <[email protected]>
Build-Depends: debhelper (>= 6.07), autotools-dev, dpatch, intltool, pkg-config,
libglib2.0-dev (>= 2.16), libgtk2.0-dev, libxml2-dev,
- libhal-dev [!kfreebsd-i386 !kfreebsd-amd64], libsgutils2-dev,
+ libhal-dev [!hurd-i386], libsgutils2-dev,
swig, python (>= 2.3.5-7), python-all-dev, python-central (>= 0.5), python-mutagen, python-gobject-dev,
xsltproc, docbook-xml, gtk-doc-tools
Homepage: http://www.gtkpod.org/libgpod.html
diff -u libgpod-0.7.2/debian/rules libgpod-0.7.2/debian/rules
--- libgpod-0.7.2/debian/rules
+++ libgpod-0.7.2/debian/rules
@@ -19,7 +19,7 @@
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif
with_hal = yes
-ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+ifeq ($(DEB_HOST_ARCH_OS),hurd)
with_hal = no
confflags += --without-hal
endif
only in patch2:
unchanged:
--- libgpod-0.7.2.orig/tools/hal-callout.c
+++ libgpod-0.7.2/tools/hal-callout.c
@@ -43,6 +43,7 @@
static char *mount_ipod (const char *dev_path)
{
+#ifdef __linux__
char *filename;
char *tmpname;
const char *fstype;
@@ -70,6 +71,10 @@
}
return tmpname;
+#else
+#warning mount wrapper for your OS is missing
+ return NULL;
+#endif
}
static gboolean write_sysinfo_extended (const char *mountpoint,