[Pkg-shadow-devel] Bug#317264: login: Current su breaks pbuilder

Daniel Schepler Daniel Schepler <schepler@math.berkeley.edu>, 317264@bugs.debian.org
Thu, 07 Jul 2005 01:05:19 -0700


Package: login
Version: 1:4.0.3-36
Severity: important

Whenever I try to use pbuilder to build a package after upgrading the
chroot today, I get:

...
Copying source file
    -> copying [gphoto2_2.1.6-1.dsc]
    -> copying [./gphoto2_2.1.6.orig.tar.gz]
    -> copying [./gphoto2_2.1.6-1.diff.gz]
Extracting source
/usr/bin/dpkg-source: line 3: my: command not found
/usr/bin/dpkg-source: line 4: my: command not found
/usr/bin/dpkg-source: line 6: my: command not found
/usr/bin/dpkg-source: line 7: my: command not found
/usr/bin/dpkg-source: line 8: my: command not found
/usr/bin/dpkg-source: line 9: my: command not found
/usr/bin/dpkg-source: line 11: =: command not found
/usr/bin/dpkg-source: line 13: =: command not found
/usr/bin/dpkg-source: line 14: =: command not found
/usr/bin/dpkg-source: line 15: =: command not found
/usr/bin/dpkg-source: line 16: =: command not found
/usr/bin/dpkg-source: line 18: use: command not found
/usr/bin/dpkg-source: line 19: syntax error near unexpected token `('
/usr/bin/dpkg-source: line 19: `use POSIX qw (:errno_h :signal_h);'

Running the pbuilder-buildpackage backend using sh -x, the command
which is failing is:

+ chroot /var/cache/pbuilder/build//7737 /bin/bash -c '( cd tmp/buildd; chown pbuilder:pbuilder ../buildd *; su -p pbuilder --  /usr/bin/dpkg-source -x gphoto2_2.1.6-1.dsc )'

And in fact, setting up a directory with proper permissions and a test
source package, I can also reproduce this outside pbuilder:

frobnitz:/tmp/kdenetwork# su -p daniel -- dpkg-source -x kdenetwork_3.3.2-6.dsc
/usr/bin/dpkg-source: line 3: my: command not found
/usr/bin/dpkg-source: line 4: my: command not found
...

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=en, LC_CTYPE=en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)

Versions of packages login depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libpam-modules              0.76-22      Pluggable Authentication Modules f
ii  libpam-runtime              0.76-22      Runtime support for the PAM librar
ii  libpam0g                    0.76-22      Pluggable Authentication Modules l

login recommends no packages.

-- no debconf information

-- 
Daniel Schepler              "Please don't disillusion me.  I
schepler@math.berkeley.edu    haven't had breakfast yet."
                                 -- Orson Scott Card