Make sure we use the right version of debootstrap for the build

This commit is contained in:
Steve McIntyre 2008-07-18 12:38:10 +00:00
parent 84308d6b01
commit 2fa094212a
2 changed files with 10 additions and 1 deletions

View File

@ -63,9 +63,12 @@ BDIR=$(TDIR)/$(CODENAME)
ADIR=$(APTTMP)
DB_DIR=$(BDIR)/debootstrap
export DEBOOTSTRAP_DIR := $(DB_DIR)/usr/lib/debootstrap
export PATH := $(DB_DIR)/usr/sbin:$(PATH)
LATEST_DB := $(shell ls -1tr $(MIRROR)/pool/main/d/debootstrap/debootstrap*all.deb | tail -1)
#LATEST_DB := $(shell ls -1tr $(MIRROR)/pool/main/d/debootstrap/debootstrap*all.deb | tail -1)
LATEST_DB := $(shell zcat $(MIRROR)/dists/$(CODENAME)/main/binary-i386/Packages.gz | awk '/\/debootstrap_.*deb/ {print $$2}')
LATEST_DB := $(MIRROR)/$(LATEST_DB)
## DEBUG STUFF ##
@ -137,6 +140,10 @@ $(BDIR)/DATE:
$(DB_DIR): $(LATEST_DB)
@rm -rf $(DB_DIR)
@dpkg -x $(LATEST_DB) $(DB_DIR)
if [ ! -e $(DEBOOTSTRAP_DIR) ] ; then \
ln -sf share $(DB_DIR)/usr/lib ; \
fi
# Make sure unstable/sid points to testing/etch, as there is no build
# rule for unstable/sid.
unstable-map:

View File

@ -10,6 +10,8 @@ debian-cd (3.0.3) UNRELEASED; urgency=high
for "testing". Used in the etch release, and I'll back it out shortly.
* tools/imagesums: use newer features in latest mkisofs/genisoimage to grab
pre-calculated MD5 and SHA1 checksums directly from the jigdo file.
* Grab correct (Etch) version of debootstrap from the archive to avoid
incompatible changes in debootstrap in Lenny.
-- Steve McIntyre <93sam@debian.org> Wed, 28 Mar 2007 22:57:41 +0100