]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Imported Debian patch 1.1.1-3 debian/1%1.1.1-3
authorAnibal Monsalve Salazar <anibal@debian.org>
Mon, 22 Oct 2007 09:16:49 +0000 (19:16 +1000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 14 Jul 2010 01:59:17 +0000 (02:59 +0100)
debian/changelog
debian/major.patch [new file with mode: 0644]
debian/rules

index eeb9aa28cc96b574a45e0d36a81e651703e7fd3e..30644af801307e81435c3de5879f8c67bb4c9248 100644 (file)
@@ -1,3 +1,10 @@
+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
diff --git a/debian/major.patch b/debian/major.patch
new file mode 100644 (file)
index 0000000..f9aca07
--- /dev/null
@@ -0,0 +1,19 @@
+--- 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,
index ca1225783a4a61882b8430c0eed03fac4b2a616c..81659a45170c0006cb3d3e9acb77c579459f8dbf 100755 (executable)
@@ -2,12 +2,17 @@
 
 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 \