[Pbuilder-maint] Is bug #359347 back?

Matt Kraai kraai at ftbfs.org
Thu Jun 22 02:17:14 UTC 2006


On Wed, Jun 21, 2006 at 01:28:43PM -0300, Nelson A. de Oliveira wrote:
> On 6/21/06, Matt Kraai <kraai at ftbfs.org> wrote:
> >> So, with bash there, it was supposed to bash run it, instead dash. Or 
> >not?
> >
> >When you run a script by passing it as an argument to a shell, it
> >ignores the first line.  By asking you to use sh instead of bash, I
> >introduced the parenthesis error.  Would you please try to reproduce
> >the original problem using the command Junichi suggested:
> 
> But my doubt is when running just "pdebuild --help", without calling a
> shell first.
> Should not bash interpret it? (because it?s saying on the first line
> that bash should run it)

When you run "pdebuild --help", it's equivalent to running the first
the command specified after the #! on the first line followed by the
path to the script and arguments you gave, in this case

 /bin/bash /usr/bin/pdebuild --help

By running

 bash -x /usr/bin/pdebuild --help

you're basically running the same command, except you're also passing
-x which causes the shell to print out each command as it executes it.

> > bash -x /usr/bin/pdebuild --help
> 
> This is the output:
> 
> + set -e
> + export PBCURRENTCOMMANDLINEOPERATION=pdebuild
> + PBCURRENTCOMMANDLINEOPERATION=pdebuild
> + . /usr/lib/pbuilder/pdebuild-checkparams
> ++ . /usr/lib/pbuilder/pbuilder-loadconfig
> +++ for RCFILE in /usr/share/pbuilder/pbuilderrc /etc/pbuilderrc
> '${HOME}/.pbuilderrc'
> +++ '[' -f /usr/share/pbuilder/pbuilderrc ']'
> +++ . /usr/share/pbuilder/pbuilderrc
> ++++ BASETGZ=/var/cache/pbuilder/base.tgz
> ++++ BUILDPLACE=/var/cache/pbuilder/build/
> ++++ MIRRORSITE=http://ftp.jp.debian.org/debian
> ++++ USEPROC=yes
> ++++ USEDEVPTS=yes
> ++++ USEDEVFS=no
> ++++ BUILDRESULT=/var/cache/pbuilder/result/
> ++++ APTCACHE=/var/cache/pbuilder/aptcache/
> ++++ APTCACHEHARDLINK=yes
> ++++ REMOVEPACKAGES=lilo
> ++++ HOOKDIR=
> ++++ export DEBIAN_FRONTEND=noninteractive
> ++++ DEBIAN_FRONTEND=noninteractive
> ++++ DEBEMAIL=
> ++++ BUILDSOURCEROOTCMD=fakeroot
> ++++ PBUILDERROOTCMD=sudo
> ++++ DEBBUILDOPTS=
> ++++ APTCONFDIR=
> ++++ BUILDUSERID=1234
> ++++ BUILDUSERNAME=pbuilder
> ++++ BINDMOUNTS=
> ++++ unset DEBOOTSTRAPOPTS
> ++++ export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
> ++++ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
> ++++ export SHELL=/bin/bash
> ++++ SHELL=/bin/bash
> ++++ DEBOOTSTRAP=cdebootstrap
> +++++ dpkg --print-architecture
> ++++ PKGNAME_LOGFILE_EXTENTION=_i386.build
> +++ for RCFILE in /usr/share/pbuilder/pbuilderrc /etc/pbuilderrc
> '${HOME}/.pbuilderrc'
> +++ '[' -f /etc/pbuilderrc ']'
> +++ . /etc/pbuilderrc
> ++++ BASETGZ=/var/cache/pbuilder/base.tgz
> ++++ BUILDPLACE=/var/cache/pbuilder/build/
> ++++ MIRRORSITE=ftp://ftp.debian.org/debian
> ++++ USEPROC=yes
> ++++ USEDEVPTS=yes
> ++++ USEDEVFS=no
> ++++ BUILDRESULT=/var/cache/pbuilder/result/
> ++++ APTCACHE=/var/cache/pbuilder/aptcache/
> ++++ APTCACHEHARDLINK=yes
> ++++ REMOVEPACKAGES=lilo
> ++++ HOOKDIR=
> ++++ export DEBIAN_FRONTEND=noninteractive
> ++++ DEBIAN_FRONTEND=noninteractive
> ++++ DEBEMAIL=
> ++++ BUILDSOURCEROOTCMD=fakeroot
> ++++ PBUILDERROOTCMD=sudo
> ++++ DEBBUILDOPTS=
> ++++ APTCONFDIR=
> ++++ BUILDUSERID=1234
> ++++ BUILDUSERNAME=pbuilder
> ++++ BINDMOUNTS=
> ++++ unset DEBOOTSTRAPOPTS
> ++++ export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
> ++++ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
> ++++ export SHELL=/bin/bash
> ++++ SHELL=/bin/bash
> ++++ DEBOOTSTRAP=cdebootstrap
> +++ for RCFILE in /usr/share/pbuilder/pbuilderrc /etc/pbuilderrc
> '${HOME}/.pbuilderrc'
> +++ '[' -f /home/naoliv/.pbuilderrc ']'
> +++ echo 'W: /home/naoliv/.pbuilderrc does not exist'
> ++ . /usr/lib/pbuilder/pbuilder-modules
> +++ export LANG=C
> +++ LANG=C
> +++ export LC_ALL=C
> +++ LC_ALL=C
> ++ '[' -n --help ']'
> ++ case "$1" in
> ++ showhelp
> ++ cat
> ++ exit 1

Hmm, this looks the same as the trace on my system, except that it
prints out the help information just before calling exit.  Do you have
the standard output redirected somewhere weird?

-- 
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20060621/4e1379b0/attachment.pgp


More information about the Pbuilder-maint mailing list