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

Bug#598935: live-build3 a4 exits with an error message when "binary-pool true" has been used



Subject: live-build3 a4 exits with an error message when "binary-pool true" has been used
Package: live-build
Version: 3.0~a4+20101002.083849
Severity: normal

*** Please type your report below this line ***

# Used live-packages
# ---
ii  live-boot                                3.0~a8+20101002.081637            Debian Live - System Boot Scripts
ii  live-boot-initramfs-tools                3.0~a8+20101002.081637            Debian Live - System Boot Scripts (initramfs-tools back
ii  live-build                               3.0~a4+20101002.083849            Debian Live - System Build Scripts
ii  live-config                              3.0~a9+20101002.084242            Debian Live - System Configuration Scripts
ii  live-config-sysvinit                     3.0~a9+20101002.084242            Debian Live - System Configuration Scripts (sysvinit ba
# ---

# Some important lines from the build.log
# ---
P: Deconfiguring file /etc/apt/sources.list
D: Executing: apt-key add -
OK
D: Executing: apt-get --yes update
Ign file: sid Release.gpg
Ign file:/live/image/debian/ sid/main Translation-en
Ign file:/root/local-packages/ ./ Translation-en
Ign file: sid Release
Ign file: sid/main Sources
Ign file: sid/main i386 Packages
Ign file: sid/main Sources
Ign file: sid/main i386 Packages
Err file: sid/main Sources
  File not found
Err file: sid/main i386 Packages
  File not found
Get:1 file: ./ Release.gpg [316B]
Get:2 file: ./ Release [754B]
Ign file: ./ Packages
Ign file: ./ Packages
Get:3 http://live.debian.net sid-snapshots Release.gpg [489B]
Ign http://live.debian.net/ sid-snapshots/main Translation-en
Get:4 http://live.debian.net sid-snapshots Release [50.2kB]
Get:5 http://live.debian.net sid-snapshots/main Sources [2688B]
Get:6 http://live.debian.net sid-snapshots/main i386 Packages [3724B]
Get:7 http://cdn.debian.net sid Release.gpg [835B]
Ign http://cdn.debian.net/debian/ sid/main Translation-en
Get:8 http://cdn.debian.net sid Release [104kB]
Get:9 http://cdn.debian.net sid/main Sources [3984kB]
Get:10 http://cdn.debian.net sid/main i386 Packages [6832kB]
Fetched 11.0MB in 19s (567kB/s)
W: Failed to fetch file:/live/image/debian/dists/sid/main/source/Sources.gz  File not found

W: Failed to fetch file:/live/image/debian/dists/sid/main/binary-i386/Packages.gz  File not found

E: Some index files failed to download, they have been ignored, or old ones used instead.
LH='1'
P: Begin unmounting filesystems...
# ---

# Tested workaround patches.
The live-media.list file will be changed when running "apt-get update" during the "lb build" run as the local repo doesn't exist at this time
# ---
http://www.it-infrastrukturen.com/fileadmin/linux/debian-live/patch-lb3-binary-pool_lb_chroot_sources.diff
http://www.it-infrastrukturen.com/fileadmin/linux/debian-live/patch-lb3-binary-pool_lb_binary_rootfs.diff
# ---

-- Package-specific info:

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (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.17-11    GNU Internationalization utilities
pn  gnu-fdisk<none>      (no description available)

Versions of packages live-build suggests:
ii  dosfstools                    3.0.9-1    utilities for making and checking
ii  fakeroot                      1.14.4-1   Gives a fake root environment
ii  genisoimage                   9:1.1.10-1 Creates ISO-9660 CD-ROM filesystem
pn  memtest86+ | memtest86<none>      (no description available)
pn  mtools<none>      (no description available)
ii  parted                        2.3-1      The GNU Parted disk partition resi
pn  squashfs-tools | genext2fs |<none>      (no description available)
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

regards,
Mark

--
IT-Infrastrukturen.ORG

ms@it-infrastrukturen.org


+++ Free infrastructure software for all. +++

--- lb_chroot_sources_ORIG	2010-09-27 14:46:25.000000000 +0200
+++ lb_chroot_sources	2010-09-28 01:05:14.000000000 +0200
@@ -230,6 +230,10 @@
 
 			if Find_files chroot/root/local-packages/*.deb
 			then
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				# If we bootstrapped a minimal chroot, we need
 				# to install apt-utils before we have have
 				# completed all the indices.
@@ -239,6 +243,11 @@
 						;;
 				esac
 
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+				fi
+
 				# Check depends
 				Check_package chroot/usr/bin/apt-ftparchive apt-utils
 
@@ -411,11 +420,28 @@
 			# Installing aptitude
 			if [ "${LB_APT}" = "aptitude" ] && [ ! -x /usr/bin/aptitude ]
 			then
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				Chroot chroot "apt-get ${APT_OPTIONS} update"
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
 			fi
 
+			if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+			then
+				sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+			fi
 			Apt update
+			if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+			then
+				sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+			fi
+
 			Apt upgrade
 			Apt dist-upgrade
 
@@ -423,7 +449,16 @@
 			if [ -n "${LB_KEYRING_PACKAGES}" ]
 			then
 				Chroot chroot "apt-get --yes --force-yes install ${LB_KEYRING_PACKAGES}"
+
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				Apt update
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 			fi
 
 			if [ "${LB_CACHE_INDICES}" = "true" ]
@@ -641,7 +676,15 @@
 		fi
 
 		# Updating indices
+		if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+		then
+			sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+		fi
 		Apt update
+		if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+		then
+			sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+		fi
 
 		# Cleaning apt package cache
 		rm -rf chroot/var/cache/apt
--- lb_binary_rootfs_ORIG	2010-09-28 01:09:41.000000000 +0200
+++ lb_binary_rootfs	2010-09-27 20:25:21.000000000 +0200
@@ -413,7 +413,7 @@
 		;;
 esac
 
-rm -f chroot/etc/apt/sources.list.d/live-media.list
+#rm -f chroot/etc/apt/sources.list.d/live-media.list
 
 for STAGE in ${LB_CACHE_STAGES}
 do

Reply to: