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

Bug#672142: transition: allegro4.4



On 19/05/12 15:27, Tobias Hansen wrote:
> Done. The package on mentors.debian.net is replaced:
> http://mentors.debian.net/debian/pool/main/a/allegro4.4/allegro4.4_4.4.2-1.dsc

Hi Tobias,

I tried building your package on kfreebsd-i386 but it fails because
ESTRPIPE is only defined for Linux.  allegro4.2 is built for kfreebsd-*,
so I guess this might be a problem for the transition.

Something very similar happened with ecasound (#627192) and upstream
chose to define it themselves:

http://anonscm.debian.org/gitweb/?p=pkg-multimedia/ecasound.git;a=blob;f=libecasound/plugins/audioio_alsa.cpp;h=c47e5a3350104e0ca18600d3f990dc44800a7640;hb=HEAD

You may like to apply my attached patch, then it builds okay for me.

Thanks!
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
Description: fix to build on non-Linux arches
 Define ESTRPIPE on non-Linux systems that don't have it.
Author: Steven Chamberlain <steven@pyro.eu.org>

--- allegro4.4-4.4.2.orig/src/unix/alsa9.c	2012-05-20 00:18:28.000000000 +0100
+++ allegro4.4-4.4.2/src/unix/alsa9.c	2012-05-20 00:18:40.968365839 +0100
@@ -36,6 +36,10 @@
    #include <math.h>
 #endif
 
+/* Linux-kernel specific errnos */
+#ifndef ESTRPIPE
+#define ESTRPIPE 86
+#endif
 
 #ifndef SND_PCM_FORMAT_S16_NE
    #ifdef ALLEGRO_BIG_ENDIAN

Reply to: