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

Bug#383710: busybox: missing versioned build-dep on dpkg-dev



Package: busybox
Version: 1:1.1.3-2
Severity: serious

Attempting to build busybox on sarge yields the following during build:


make[1]: Leaving directory `/busybox-1.1.3/debian/build/build-udeb'
cp debian/build/build-udeb/docs/BusyBox.1
debian/build/build-udeb/docs/busybox.1
touch debian/stamps/build-udeb
DEB_HOST_ARCH_OS is not a supported variable name
at /usr/bin/dpkg-architecture line 271.
DEB_HOST_ARCH_CPU is not a supported variable name
at /usr/bin/dpkg-architecture line 271.
DEB_HOST_ARCH_OS is not a supported variable name
at /usr/bin/dpkg-architecture line 271.
mkdir debian/build/build-floppy-udeb
cp '' debian/build/build-floppy-udeb/.config
cp: cannot stat `': No such file or directory
make: *** [debian/stamps/build-floppy-udeb] Error 1
debuild: fatal error at line 765:



According to the dpkg-architecture manpage:


BACKWARD COMPATIBILITY
       The  DEB_HOST_ARCH_CPU  and DEB_HOST_ARCH_OS variables were only
intro
       duced in relatively recent versions of  dpkg-architecture  (since
dpkg
       1.13.2),  before  this debian/rules files tended to check the
values of
       the DEB_HOST_GNU_CPU or DEB_HOST_GNU_TYPE  variables  which  have
been
       subject to change.


busybox needs one of the following: either a Build-Dependency upon
dpkg-dev (>= 1.13.2), or backwards compatibility code of the following
nature:

DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU
2>/dev/null)
ifeq ($(DEB_HOST_ARCH_CPU),)
  DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
  ifeq ($(DEB_HOST_ARCH_CPU),x86_64)
    DEB_HOST_ARCH_CPU := amd64
  endif
endif

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS
2>/dev/null)
ifeq ($(DEB_HOST_ARCH_OS),)
  DEB_HOST_ARCH_OS := $(subst -gnu,,$(shell dpkg-architecture
-qDEB_HOST_GNU_SYSTEM))
  ifeq ($(DEB_HOST_ARCH_OS),gnu)
    DEB_HOST_ARCH_OS := hurd
  endif
endif





Reply to: