[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#667530: FTBFS on kfreebsd-amd64



Package: busybox
Version: 1.19.3-5
Severity: serious
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

busybox fails to build on kfreebsd-amd64 with recent kfreebsd-kernel-headers
because since 9.0-1 <sys/mount.h> no longer provides MNT_NODEV macro.

In fact this macro was previously defined to 0 because this option is not
supported by kFreeBSD since 6.0 era.  More details on this:

  http://www.freebsd.org/cgi/query-pr.cgi?pr=79715

Therefore solution is to define it as 0 in xmount.h.  Patch attached.

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/patches/swaponoff-FreeBSD-support.patch'
--- debian/patches/swaponoff-FreeBSD-support.patch	2012-04-04 14:24:26 +0000
+++ debian/patches/swaponoff-FreeBSD-support.patch	2012-04-04 14:39:51 +0000
@@ -85,7 +85,7 @@ Signed-off-by: Jeremie Koenig <jk@jk.fr.
  # include <sys/mount.h>
 +# include <sys/swap.h>
  # define MS_NOSUID      MNT_NOSUID
- # define MS_NODEV       MNT_NODEV
+ # define MS_NODEV       0
  # define MS_NOEXEC      MNT_NOEXEC
 @@ -82,16 +84,18 @@
  #endif

=== modified file 'debian/patches/u-mount-FreeBSD-support.patch'
--- debian/patches/u-mount-FreeBSD-support.patch	2012-04-04 14:24:26 +0000
+++ debian/patches/u-mount-FreeBSD-support.patch	2012-04-04 14:39:34 +0000
@@ -279,7 +279,7 @@ Signed-off-by: Jeremie Koenig <jk@jk.fr.
 +#elif defined(__FreeBSD_kernel__)
 +# include <sys/mount.h>
 +# define MS_NOSUID      MNT_NOSUID
-+# define MS_NODEV       MNT_NODEV
++# define MS_NODEV       0
 +# define MS_NOEXEC      MNT_NOEXEC
 +# define MS_SYNCHRONOUS MNT_SYNCHRONOUS
 +# define MS_DIRSYNC     0

Reply to: