lsb 3.0-14 Debian release.
authorChris Lawrence <lawrencc@debian.org>
Mon, 9 Jan 2006 01:09:52 +0000 (20:09 -0500)
committerDidier Raboud <odyx@debian.org>
Mon, 9 Jan 2006 01:09:52 +0000 (20:09 -0500)
debian/changelog
debian/control
debian/rules

index 8bd0bb274908c8eca56c27a8138002d9e2a4087d..9094c992487b7805d86dc0e93bd8df6d1daea681 100644 (file)
@@ -1,3 +1,9 @@
+lsb (3.0-14) unstable; urgency=low
+
+  * Allow lsb-base to be built on sarge.  (Closes: #345984)
+
+ -- Chris Lawrence <lawrencc@debian.org>  Sun,  8 Jan 2006 20:09:52 -0500
+
 lsb (3.0-13) unstable; urgency=medium
 
   * The "answer all the questions in the changelog" release.
index c8f2e5e1a1956553d2443fd7d3b79cf20778011a..4bc0054c46541defe2dc395795c841a981064385 100644 (file)
@@ -2,7 +2,7 @@ Source: lsb
 Section: misc
 Priority: extra
 Maintainer: Chris Lawrence <lawrencc@debian.org>
-Build-Depends: debhelper (>= 4.1.13), po-debconf (>= 0.5.0), dpkg-dev (>= 1.13.2)
+Build-Depends: debhelper (>= 4.1.13), po-debconf (>= 0.5.0), dpkg-dev (>= 1.13.5)
 Standards-Version: 3.6.2
 
 Package: lsb-core
index cbecbf7f44bc709aa99dea81699d36dc279c17b9..4902e012c200a7f3bb26bd97307d857918d8b8c1 100755 (executable)
@@ -9,7 +9,15 @@
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_BUILD_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
+DEB_BUILD_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null)
+
+# Take account of old dpkg-architecture output.
+ifeq ($(DEB_BUILD_ARCH_CPU),)
+  DEB_BUILD_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
+  ifeq ($(DEB_BUILD_ARCH_CPU),x86_64)
+    DEB_BUILD_ARCH_CPU := amd64
+  endif
+endif
 
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -g
@@ -128,7 +136,7 @@ binary-arch: build install
        @echo >> debian/lsb-core.substvars "provides=lsb-core-${lsbarch}"
        @echo >> debian/lsb-cxx.substvars "provides=lsb-cxx-${lsbarch}"
        @echo >> debian/lsb-graphics.substvars "provides=lsb-graphics-${lsbarch}"
-       @[ ${DEB_BUILD_ARCH} = 'amd64' ] && echo >> debian/lsb-core.substvars "depends=ia32-libs" || true
+       @[ ${DEB_BUILD_ARCH_CPU} = 'amd64' ] && echo >> debian/lsb-core.substvars "depends=ia32-libs" || true
        dh_link -a
        dh_strip -a
        dh_compress -a