[buildd-tools-devel] Bug#833390: sbuild: cannot set *_root_args so as to not try to run the command as root

Sean Whitton spwhitton at spwhitton.name
Wed Aug 3 19:11:57 UTC 2016


Package: sbuild
Version: 0.70.0-1
Severity: normal

Dear maintainer,

It should be possible to instruct sbuild not to run autopkgtest or
piuparts as root.  If using a schroot backend for autopkgtest, root is
not required, and hopefully this will soon be true for piuparts too
(#708663).

At present, the only way to stop sbuild from prepending sudo to the
autopkgtest command is something like this:

    $autopkgtest_root_args = ["env"];

That's because setting

    $autopkgtest_root_args = [];

implies

    $autopkgtest_root_args = ["sudo", "--"];

There should be a better, documented way to not run the commands as
root.

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.5.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser         3.115
ii  apt-utils       1.3~pre2
ii  libsbuild-perl  0.70.0-1
pn  perl:any        <none>

Versions of packages sbuild recommends:
ii  debootstrap  1.0.81
ii  fakeroot     1.21-1

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  wget       1.18-2

-- no debconf information

-- 
Sean Whitton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160803/6b5bcb84/attachment.sig>


More information about the Buildd-tools-devel mailing list