Package: csound Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > gcc -DHAVE_CONFIG_H -I. -I. -I. -DXMGDIR=\"/usr/share/csound\" > -DUSE_CSOUND_YIELD -DBUILDING_LIBCSOUND -g -O2 -Wall -falign-loops=4 > -falign-jumps=4 -ffast-math -fomit-frame-pointer -finline-functions > -funroll-loops -MT libcsound_la-mididevice.lo -MD -MP -MF > .deps/libcsound_la-mididevice.Tpo -c mididevice.c -o libcsound_la-mididevice.o > mididevice.c: In function 'OpenMIDIDevice': > mididevice.c:404: error: 'EXTB' undeclared (first use in this function) > mididevice.c:404: error: (Each undeclared identifier is reported only once > mididevice.c:404: error: for each function it appears in.) > mididevice.c: In function 'GetMIDIData': > mididevice.c:498: warning: unused variable 'n' > make[3]: *** [libcsound_la-mididevice.lo] Error 1 > make[3]: Leaving directory `/build/buildd/csound-4.23f13/csound' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/build/buildd/csound-4.23f13/csound' > make[1]: *** [all-recursive] Error 1 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=csound>. Please find attached a patch to enable the detection of GNU/kFreeBSD (and GNU/Hurd, whose status about sound is unknown to me, but it could at least been tested like that, it won't harm anyone), which share the same userland: GNU. A tiny modification is needed so that the correct header gets included. (Note: you have to run 'autoconf' after having patched configure.ac.) With this patch, your package builds fine on GNU/kFreeBSD. Cheers, -- Cyril Brulebois
--- csound-4.23f13/configure.ac 2007-03-11 03:38:29.895905000 +0100 +++ csound-4.23f13/configure.ac 2007-03-11 03:38:45.000000000 +0100 @@ -83,7 +83,7 @@ opsys=netbsd AC_DEFINE([NETBSD], 1, [Define for the NetBSD operating system.]) ;; - linux*) + linux*|kfreebsd*|gnu*) opsys=linux AC_DEFINE([LINUX], 1, [Define for the Linux operating system.]) ;; --- csound-4.23f13/csound/midisend.c 2007-03-11 03:46:57.616038000 +0100 +++ csound-4.23f13/csound/midisend.c 2007-03-11 03:47:20.000000000 +0100 @@ -52,7 +52,7 @@ _seqbuf[_seqbufptr+3] = 0;\ _SEQ_ADVBUF(4);} #else -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) # include <sys/soundcard.h> #else # include <linux/soundcard.h>