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

Bug#646807: live-build: lb build: don't build source image when SOURCE="false"



On jeu., 2011-10-27 at 18:15 +0200, Daniel Baumann wrote:
> On 10/27/2011 02:53 PM, Yves-Alexis Perez wrote:
> > I don't need the source image [...] so the default LB_SOURCE="false" is fine for me. But even with this, calling
> > lb build will finally run lb source, which will try to build a source archive.
> 
> i can't reproduce that. for me, if LB_SOURCE=false, lb_source_* just 
> don't do anything.
> 
What I do:

lb config -d sid
sudo lb bootstrap
sudo lb chroot
grep '^LB_SOURCE=' config/source
LB_SOURCE="false"
sudo lb source
P: Setting up cleanup function
P: Configuring file /etc/hosts
P: Configuring file /etc/resolv.conf
P: Configuring file /etc/hostname
P: Configuring file /bin/hostname
P: Configuring file /etc/apt/sources.list
Get:1 http://ftp.de.debian.org sid InRelease [146 kB]
Get:2 http://ftp.de.debian.org sid/main TranslationIndex [2045 B]
Get:3 http://ftp.de.debian.org sid/main Sources [7384 kB]
31% [3 Sources 2241 kB/7384 kB 30%]

Any idea on how to debug that a bit more?

sudo bash -x lb source attached.

Regards,
-- 
Yves-Alexis
+ set -e
+ . /usr/share/live/build/scripts/build.sh
++ '[' -e local/live-build ']'
++ LB_BASE=/usr/share/live/build
++ export LB_BASE
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/aliases.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/architectures.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/arguments.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/breakpoints.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/cache.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/chroot.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/color.sh
+++ NO_COLOR='\033[0m'
+++ UNDERSCORE='\033[4m'
+++ BLINK='\033[5m'
+++ BLACK='\033[0;30m'
+++ DARK_GRAY='\033[1;30m'
+++ RED='\033[0;31m'
+++ LIGHT_RED='\033[1;31m'
+++ GREEN='\033[0;32m'
+++ LIGHT_GREEN='\033[1;32m'
+++ BROWN='\033[0;33m'
+++ YELLOW='\033[1;33m'
+++ BLUE='\033[0;34m'
+++ LIGHT_BLUE='\033[1;34m'
+++ PURPLE='\033[0;35m'
+++ LIGHT_PURPLE='\033[1;35m'
+++ CYAN='\033[0;36m'
+++ LIGHT_CYAN='\033[1;36m'
+++ GRAY='\033[0;37m'
+++ WHITE='\033[1;37m'
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/common.sh
+++ PROGRAM=live-build
++++ cat /usr/share/live/build/VERSION
+++ VERSION=3.0~a37-1
++++ echo 3.0~a37-1
++++ awk -F- '{ print $1 }'
+++ CONFIG_VERSION=3.0~a37
+++ PATH=/home/yaperez/tmp/auto/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/conffile.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/cursor.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/defaults.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/echo.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/exit.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/help.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/l10n.sh
++++ which gettext.sh
+++ '[' -x /usr/bin/gettext.sh ']'
+++ Find_files /usr/share/locale/es_AR/LC_MESSAGES/.mo /usr/share/locale/es_ES/LC_MESSAGES/.mo
+++ _L10N=true
+++ TEXTDOMAIN=
+++ export TEXTDOMAIN
+++ TEXTDOMAINDIR=/usr/share/locale
+++ export TEXTDOMAINDIR
+++ . gettext.sh
++++ test 'X\t' = 'X\t'
++++ echo=echo
++++ test -z ''
++++ case "$0" in
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/lockfile.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/losetup.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/man.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/packagelists.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/packages.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/releases.sh
+++ RELEASE_squeeze=6.0.3
+++ RELEASE_wheezy=7
+++ RELEASE_sid=unstable
+++ RELEASE_artax=1.0
+++ RELEASE_baureo=unstable
+++ RELEASE_hardy=8.04
+++ RELEASE_lucid=10.04
+++ RELEASE_maverick=10.10
+++ RELEASE_natty=11.04
+++ RELEASE_oneiric=11.10
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/stagefile.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/templates.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/usage.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/version.sh
++ for FUNCTION in '"${LB_BASE}"/functions/*.sh'
++ . /usr/share/live/build/functions/wrapper.sh
++ ls 'auto/functions/*'
++ Echo 'utility to build Debian Live systems'
++ STRING='utility to build Debian Live systems'
++ shift
++ '[' true = false ']'
+++ eval_gettext 'utility to build Debian Live systems'
+++ gettext 'utility to build Debian Live systems'
++++ envsubst --variables 'utility to build Debian Live systems'
+++ export PATH
+++ envsubst 'utility to build Debian Live systems'
++ printf 'utility to build Debian Live systems'
++ echo
+ DESCRIPTION='utility to build Debian Live systems'
+ HELP=FIXME
+ USAGE=FIXME
+ case "${1}" in
+ COMMAND=lb_source
+ shift
+ '[' -x /usr/share/live/build/scripts/build/lb_source ']'
+ LB=1
+ exec /usr/share/live/build/scripts/build/lb_source
P: Setting up cleanup function
P: Configuring file /etc/hosts
P: Configuring file /etc/resolv.conf
P: Configuring file /etc/hostname
P: Configuring file /bin/hostname
P: Configuring file /etc/apt/sources.list
W: skipping chroot_archives, already done
P: Deconfiguring file /etc/apt/sources.list
Get:1 http://cdn.debian.net sid InRelease [146 kB]
Get:2 http://cdn.debian.net sid/main TranslationIndex [2045 B]
Get:3 http://cdn.debian.net sid/main Sources [7396 kB]
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...
P: Deconfiguring file /etc/hostname
P: Deconfiguring file /bin/hostname
P: Deconfiguring file /etc/resolv.conf
P: Deconfiguring file /etc/hosts
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...

Reply to: