util-linux: fix build failure with newer kernel headers, patch from debian
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 29 Apr 2007 14:41:44 +0000 (14:41 +0000)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 29 Apr 2007 14:41:44 +0000 (14:41 +0000)
packages/util-linux/files/glibc-umount2.patch [new file with mode: 0644]
packages/util-linux/util-linux_2.12r.bb

diff --git a/packages/util-linux/files/glibc-umount2.patch b/packages/util-linux/files/glibc-umount2.patch
new file mode 100644 (file)
index 0000000..3da3a85
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10sparcumount.dpatch by Jeff Bailey <jbailey@ubuntu.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Sparc and Arm have umount2 in glibc.
+
+@DPATCH@
+--- util-linux/mount/umount.c  2005-05-20 11:39:07.000000000 +0000
++++ util-linux/mount/umount.c  2005-05-20 11:39:15.000000000 +0000
+@@ -31,7 +31,7 @@
+ #include <arpa/inet.h>
+ #endif
+-#if defined(MNT_FORCE) && !defined(__sparc__) && !defined(__arm__)
++#if defined(MNT_FORCE) 
+ /* Interesting ... it seems libc knows about MNT_FORCE and presumably
+    about umount2 as well -- need not do anything */
+ #else /* MNT_FORCE */
index 32cbada..0409f61 100644 (file)
@@ -2,5 +2,6 @@ require util-linux.inc
 
 SRC_URI += "file://util-linux_2.12r-12.diff.gz;patch=1"
 SRC_URI += "file://glibc-fix.patch;patch=1"
+SRC_URI += "file://glibc-umount2.patch;patch=1"
 
-PR = "r10"
+PR = "r11"