+lsb (3.2-6) unstable; urgency=low
+
+ * Kill old versions of /etc/lsb-release deader. (Closes: #467219)
+ * Fix debian/rules:
+ + Change DEB_BUILD_ARCH_CPU -> DEB_HOST_ARCH_CPU
+ ("host" is what we're building for)
+ + Detect armel using DEB_HOST_GNU_CPU_TYPE=arm-linux-gnueabi
+ * Remove duplicate LSB modules from lsb_release -v output.
+
+ -- Chris Lawrence <lawrencc@debian.org> Sun, 30 Mar 2008 17:36:18 -0500
+
lsb (3.2-5) unstable; urgency=low
* Fix init-functions with set -e. (Closes: #472794)
case "$1" in
configure)
- if dpkg --compare-versions "$2" lt-nl 3.0-8; then
- if [ -e /etc/lsb-release ]; then
- MD5SUM=`md5sum /etc/lsb-release | cut -d" " -f1`
- if [ "$MD5SUM" = "b5bfe10d9b02fb4e4a45337d1c4d88ab" ]; then
- rm -f /etc/lsb-release
- fi
+ if [ -e /etc/lsb-release ]; then
+ MD5SUM=`md5sum /etc/lsb-release | cut -d" " -f1`
+ if [ "$MD5SUM" = "b5bfe10d9b02fb4e4a45337d1c4d88ab" ]; then
+ rm -f /etc/lsb-release
fi
fi
;;
# 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 2>/dev/null)
+DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_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
+ifeq ($(DEB_HOST_ARCH_CPU),)
+ DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
+ ifeq ($(DEB_HOST_ARCH_CPU),x86_64)
+ DEB_HOST_ARCH_CPU := amd64
endif
endif
endif
# Map Debian architectures to LSB architectures
-lsbarch=${DEB_BUILD_ARCH_CPU}
+lsbarch=${DEB_HOST_ARCH_CPU}
ifeq (${lsbarch}, i386)
lsbarch=ia32
endif
# dh_undocumented
dh_installchangelogs -a
@echo >> debian/lsb-core.substvars "glibc=${LIBC}"
- @[ ${DEB_BUILD_ARCH_CPU} != 'armel' ] && echo >> debian/lsb-cxx.substvars "depends=libstdc++5" || true
+ @[ ${DEB_HOST_GNU_TYPE} != 'arm-linux-gnueabi' ] && echo >> debian/lsb-cxx.substvars "depends=libstdc++5" || true
@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}"
@echo >> debian/lsb-multimedia.substvars "provides=lsb-multimedia-${lsbarch}"
@echo >> debian/lsb-languages.substvars "provides=lsb-languages-${lsbarch}"
@echo >> debian/lsb-printing.substvars "provides=lsb-printing-${lsbarch}"
- @[ ${DEB_BUILD_ARCH_CPU} = 'amd64' ] && echo >> debian/lsb-core.substvars "depends=libc6-i386, lib32z1" || true
+ @[ ${DEB_HOST_ARCH_CPU} = 'amd64' ] && echo >> debian/lsb-core.substvars "depends=libc6-i386, lib32z1" || true
dh_link -a
dh_strip -a
dh_compress -a
return [version]
+import sets
+
# This is Debian-specific at present
def check_modules_installed():
# Find which LSB modules are installed on this system
if not output:
return []
- modules = []
+ modules = sets.Set()
for line in output.split(os.linesep):
version, provides = line.split(' ', 1)
version = version.split('-', 1)[0]
# If no versioned provides...
if mgroups.get('version'):
module = '%(module)s-%(version)s-%(arch)s' % mgroups
- modules += [module]
+ modules.add(module)
else:
module = mgroups['module']
for v in valid_lsb_versions(version, module):
mgroups['version'] = v
module = '%(module)s-%(version)s-%(arch)s' % mgroups
- modules += [module]
-
+ modules.add(module)
+
+ modules = list(modules)
+ modules.sort()
return modules
longnames = {'v' : 'version', 'o': 'origin', 'a': 'suite',