From 17d48c2b4d0948b355f62a83be7a3d7e7da4e04e Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 13 Mar 2017 14:36:52 +0100 Subject: debootstrap: generate apt caches Some packages seemingly rely on apt-cache (with populated caches) being available during build. This seems an ugly assumption, but it does work on the Debian buildd infrastructure so make it work on OBS as well. Signed-off-by: Sjoerd Simons --- build-recipe-debootstrap | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build-recipe-debootstrap') diff --git a/build-recipe-debootstrap b/build-recipe-debootstrap index c1ef4ad..b8d4ee9 100644 --- a/build-recipe-debootstrap +++ b/build-recipe-debootstrap @@ -72,6 +72,8 @@ recipe_build_debootstrap() { mkdir -p $BUILD_ROOT/$myroot/dev/shm mount -n -ttmpfs none $BUILD_ROOT/$myroot/dev/shm + chroot $BUILD_ROOT/$myroot apt-cache gencaches + # move topdir over mv "$BUILD_ROOT/$TOPDIR" "$BUILD_ROOT/$myroot/${TOPDIR%/*}" -- cgit v1.2.3