Package: motor Severity: important Version: 2:3.4.0-6 Tags: patch
Hi, the current version fails to build on GNU/kFreeBSD. It needs to exclude linux specific package in Build-Depends and small tweak. Please find attached patch with both changes. It would also be nice if you can ask upstream to include change in motordebugger.cc. Thanks in advance Petr
diff -u motor-3.4.0/debian/control motor-3.4.0/debian/control --- motor-3.4.0/debian/control +++ motor-3.4.0/debian/control @@ -3,7 +3,7 @@ Priority: optional Maintainer: Krzysztof Krzyzaniak (eloy) <[EMAIL PROTECTED]> Build-Conflicts: libstdc++5-dev (<= 3.2.3) -Build-Depends: debhelper (>= 4.1.37), dpatch, libgpmg1-dev, libncurses5-dev | libncurses-dev, gettext, libfribidi-dev (>= 0.10.4-4) +Build-Depends: debhelper (>= 4.1.37), dpatch, libgpmg1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libncurses5-dev | libncurses-dev, gettext, libfribidi-dev (>= 0.10.4-4) Standards-Version: 3.7.2 Package: motor-common only in patch2: unchanged: --- motor-3.4.0.orig/src/debugger/motordebugger.cc +++ motor-3.4.0/src/debugger/motordebugger.cc @@ -14,7 +14,7 @@ #include <sys/wait.h> #include <signal.h> -#ifdef __FreeBSD__ +#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) #include <sys/consio.h> #elif __OpenBSD__ #include <dev/wscons/wsdisplay_usl_io.h> @@ -41,7 +41,7 @@ motordebugger::~motordebugger() { } -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined (__FreeBSD_kernel__) #define TTY_PREFIX "/dev/ttyv" #define TTY_NUMBER hex << vt-1