Bug#593186: config/chroot_local-packages/foo.deb cannot be a symlink
Package: live-build
Version: 2.0~a23-1
Severity: minor
chroot_sources uses cp -l to copy packages from
config/chroot_local-packages/ into the chroot. This breaks when
packages are symlinks.
Example:
# ls -l config/chroot_local-packages/*deb
lrwxrwxrwx 1 root disk 46 Aug 16 13:58 config/chroot_local-packages/linux-image-2.6.35_2.6.35-1_amd64.deb -> /usr/src/linux-image-2.6.35_2.6.35-1_amd64.deb
Generates output from "lh build":
# lh build
[...]
P: Configuring file /etc/apt/sources.list
W: Unable to stat ./linux-image-2.6.35_2.6.35-1_amd64.deb
W: Unable to stat ./linux-image-2.6.35_2.6.35-1_amd64.deb
gpg: /root/.gnupg/trustdb.gpg: trustdb created
OK
[...]
P: Begin install linux-image...
cp: cannot stat `chroot/boot/vmlinuz-*': No such file or directory
P: Begin unmounting filesystems...
Perhaps chroot_sources should use CP_OPTIONS=-lL.
-- Package-specific info:
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-build depends on:
ii debootstrap 1.0.23 Bootstrap a basic Debian system
Versions of packages live-build recommends:
ii cpio 2.11-4 GNU cpio -- a program to manage ar
ii gettext-base 0.18.1.1-1 GNU Internationalization utilities
ii gnu-fdisk 1.2.4-3+b1 Linux fdisk replacement based on l
Versions of packages live-build suggests:
pn dosfstools <none> (no description available)
ii fakeroot 1.14.4-1 Gives a fake root environment
pn genisoimage <none> (no description available)
pn memtest86+ | memtest86 <none> (no description available)
pn mtools <none> (no description available)
ii parted 2.3-1 The GNU Parted disk partition resi
ii squashfs-tools 1:4.0-8 Tool to create and append to squas
ii sudo 1.7.2p7-1 Provide limited super user privile
pn syslinux | grub <none> (no description available)
pn uuid-runtime <none> (no description available)
pn win32-loader <none> (no description available)
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/share/live/build/scripts/build/bootstrap_debootstrap (from live-build package)
Reply to: