Package: libsdl1.2debian
Version: 1.2.7+1.2.8cvs20041007-5
Severity: normal
Now that dpkg-architecture has changed some of its architecture
strings, libsdl1.2 doesn't build correctly. The test for whether to
build alsa support tests the now-nonexistent DEB_BUILD_GNU_SYSTEM
variable. The attached patch seems to fix it for me, and I believe
that this patch will also work with older versions of dpkg.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libsdl1.2debian depends on:
hi libsdl1.2debian 1.2.7+1.2.8cvs20041007-5 Simple DirectMedia Layer (with X11
libsdl1.2debian recommends no packages.
-- no debconf information
diff -ur libsdl1.2-1.2.7+1.2.8cvs20041007.orig/debian/rules
libsdl1.2-1.2.7+1.2.8cvs20041007/debian/rules
--- libsdl1.2-1.2.7+1.2.8cvs20041007.orig/debian/rules 2005-06-18
18:37:32.000000000 -0400
+++ libsdl1.2-1.2.7+1.2.8cvs20041007/debian/rules 2005-06-18
19:03:02.000000000 -0400
@@ -11,11 +11,16 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_BUILD_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
export DEB_HOST_GNU_TYPE
export DEB_BUILD_GNU_TYPE
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+# Handle dpkg versions << 1.13
+ifeq ($(DEB_HOST_ARCH_OS),)
+ DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
+endif
+
LIBSVGA1-DEV := $(shell \
if [ "`dpkg --print-installation-architecture`" = "i386" ] ;\
then echo -n libsvga1-dev ;\
@@ -32,7 +37,7 @@
SOUNDS=arts esd oss nas
-ifeq ($(DEB_BUILD_GNU_SYSTEM),linux)
+ifeq ($(DEB_HOST_ARCH_OS),linux)
SOUNDS += alsa
libasound = , libasound2-dev
no_libasound =