Hi!

On 17/03/13 19:35, Adam Borowski wrote:
> On systems that don't have OSS installed and configured, pressing any
> button that has an attached sound, causes a crash.

Another option might be to disable sound on Linux, then at least we'd
keep something that works.

There is a configure test which checks for presence of sys/soundcard.h
or soundcard.h and it will automatically enable-sound due to that.

On Linux we could override it with --enable-sound=no (assuming it is too
difficult to get it working with OSS4 or aoss in the Wheezy timeframe).
 I've attached a patch for this but am still trying to test it.


> [...] the package still works on kfreebsd, but these are
> quite fringe cases.  (Hey, you can ask for RM on linux-any hurd-any :) ).

That also sounds good.  We could market this on the "why kFreeBSD?" Wiki
page!

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org
--- lletters-0.1.95+gtk2.orig/debian/rules	2013-03-18 14:42:35.000000000 +0000
+++ lletters-0.1.95+gtk2/debian/rules	2013-03-18 14:45:24.000000000 +0000
@@ -7,6 +7,7 @@
 #export DH_VERBOSE=1
 package=lletters
 
+export DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
@@ -17,6 +18,10 @@
   confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 endif
 
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+  confflags += --enable-sound=no
+endif
+
 config.status:
 #	libtoolize --automake --force --copy
 #	aclocal-1.9

Reply via email to