+nfs-utils (1:1.1.1-3) unstable; urgency=low
+
+ * Fixed "FTBFS: error: called object 'major' is not a function" by
+ defining the missing called objects only on arm. Closes: #447578.
+
+ -- Anibal Monsalve Salazar <anibal@debian.org> Mon, 22 Oct 2007 19:16:49 +1000
+
nfs-utils (1:1.1.1-2) unstable; urgency=low
* 07-amd64-logging-segfault.patch: New patch from Steve Langasek, fixes
--- /dev/null
+--- utils/mountd/cache.c 2007-10-19 13:07:28.000000000 +1000
++++ utils/mountd/cache.c 2007-10-22 19:24:07.274232106 +1000
+@@ -36,6 +36,16 @@
+ #include "blkid/blkid.h"
+ #endif
+
++#ifdef major /* Might be defined in sys/types.h. */
++#define HAVE_MAJOR
++#endif
++
++#ifndef HAVE_MAJOR
++#define major(dev) (((dev) >> 8) & 0xff)
++#define minor(dev) ((dev) & 0xff)
++#define makedev(maj, min) (((maj) << 8) | (min))
++#endif
++#undef HAVE_MAJOR
+
+ enum nfsd_fsid {
+ FSID_DEV = 0,
include /usr/share/quilt/quilt.make
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
# Temporary root
DEBTMP := $(CURDIR)/debian/tmp
build: patch build-stamp
build-stamp:
dh_testdir
+ifeq ($(DEB_HOST_ARCH),arm)
+ patch -p0 -i debian/major.patch
+endif
CFLAGS="-g -O2 -Wall" ./configure \
--mandir='$${prefix}/share/man' \
--enable-secure-statd \