Package: python-cddb Severity: important Tags: patch Hi,
python-cddb fails to build on GNU/kFreeBSD due to missing support. Please find attached a patch to fix that. Could you please add it in the next upload? Don't hesitate to contact me if you need more information. Thanks in advance, Aurelien -- System Information: Debian Release: testing/unstable Architecture: kfreebsd-i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: GNU/kFreeBSD 5.4-1-686 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Author: aurel32 Status: in BTS --- python-cddb-1.4.orig/unix/cdrommodule.c +++ python-cddb-1.4/unix/cdrommodule.c @@ -28,7 +28,7 @@ #include <linux/cdrom.h> #endif -#if defined(sun) || defined(__FreeBSD__) || defined(__OpenBSD__) +#if defined(sun) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) #include <sys/cdio.h> #endif @@ -38,7 +38,7 @@ * so that we don't have to repeat the code. */ -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #define CDDB_TOC_HEADER_STRUCT ioc_toc_header #define CDDB_STARTING_TRACK_FIELD starting_track @@ -92,7 +92,7 @@ #define CDDB_DEFAULT_CDROM_FLAGS O_RDONLY | O_NONBLOCK -#endif /* __FreeBSD__ */ +#endif /* __FreeBSD__ || __FreeBSD_kernel__ */ static PyObject *cdrom_error;

