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

Bug#637891: dkopp: FTBFS (!linux): fatal error: linux/cdrom.h: Datei oder Verzeichnis nicht gefunden



Package: src:dkopp
Version: 5.9.1-1
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd-porting
X-Debbugs-Cc: debian-bsd@lists.debian.org
Justification: fails to build from source (but built successfully in the past)

Hi!

Your package failed to build on kfreebsd but can be fixed with the
appended patch. It seems to start up at least with this modification and
things like ejecting the drive still works. You'll also have to change
the depends on udev to linux-only (`udev [linux-any]`).

--- dkopp-5.9.1.orig/dkopp-5.9.1.cc
+++ dkopp-5.9.1/dkopp-5.9.1.cc
@@ -28,7 +28,9 @@
 #include <dirent.h>
 #include <sys/ioctl.h>
 #include <sys/mount.h>
+#if defined __linux__
 #include <linux/cdrom.h>
+#endif
 #include "zfuncs.h"                                                        //  order important for 64-bit
 
 //  parameters and limits
--- dkopp-5.9.1.orig/zfuncs.h
+++ dkopp-5.9.1/zfuncs.h
@@ -36,7 +36,9 @@
 #include <signal.h>
 #include <execinfo.h>
 #include <locale.h>
+#if defined __linux__
 #include <sys/inotify.h>
+#endif
 
 #define  int8   char                                                       //  number types
 #define  int16  short

Regards

    Christoph

If you have further questions please mail debian-bsd@lists.debian.org

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer



Reply to: