adt-run fails when fakeroot not installed in testbed and build is needed

Bug #1241456 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Debian)
Fix Released
Unknown
autopkgtest (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Build phase fails if fakeroot is not installed in the testbed.

TEST CASE:
1. Create an lxc-container with the command
  $ sudo lxc-create -n saucy-amd64 -t ubuntu-cloud -- -r saucy -a amd64

2. Download a dsc for a package and run a test with:
  $ adt-run -d ../autopkgtest_2.3.7.dsc --- adt-virt-lxc --ephemeral saucy-amd64

ACTUAL RESULT:
If fails with
+ TMPDIR=/tmp/adt-downtmp/dsc0-build/tmpdir
+ rm -rf -- /tmp/adt-downtmp/dsc0-build/tmpdir
+ export TMPDIR
+ su ubuntu -c mkdir -m 1777 -- "$TMPDIR"
+ cd /tmp/adt-downtmp/dsc0-build/autopkgtest-2.3.7/.
+ su ubuntu -c fakeroot debian/rules binary
bash: fakeroot: command not found
blame: arg:../autopkgtest_2.3.7.dsc dsc:autopkgtest
badpkg: rules binary failed with exit code 127
adt-run: erroneous package: rules binary failed with exit code 127

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: autopkgtest (not installed)
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
Date: Fri Oct 18 10:59:28 2013
MarkForUpload: True
SourcePackage: autopkgtest
UpgradeStatus: Upgraded to saucy on 2012-01-31 (625 days ago)

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
summary: - adt-run fails without fakeroot installed in the testbed
+ adt-run fails when fakeroot not installed in testbed and build is needed
tags: added: packaging
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
tags: removed: packaging
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in Debian packaging git. Thanks!

Changed in autopkgtest (Ubuntu):
status: New → Fix Committed
Changed in autopkgtest (Debian):
status: Unknown → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 2.4

---------------
autopkgtest (2.4) unstable; urgency=low

  * Add adt-virt-lxc test runner, many thanks to Robie Basak for this! This
    runner provides "revert" and "revert-full-system" capabilities which is
    useful for packages which have the "breaks-testbed" restriction and
    multiple tests. For the time being this only works with the ubuntu-cloud
    template; support for general debian/ubuntu containers requires an
    lxc-wait mechanism ("did the container finish booting?") and getting along
    with the different user setups (debian using "root", ubuntu using an
    "ubuntu" user with sudo capabilities).
  * Add tests for adt-virt-lxc.
  * Code cleanup to slightly improve readability:
    - Drop two-letter aliases for methods.
    - Consistent usage of quotes.
    - Drop orphaned/unnecessary globals.
    - Consistent logging methods/object names, add some docstrings.
  * Install fakeroot into testbed for "build-needed". Thanks Jean-Baptiste
    Lallement! (Closes: #726714, LP: #1241456)
  * Create testtmp directory with 0755 permissions to fix failure with tight
    umasks. Thanks Arthur de Jong! (Closes: #728057)
  * Allow test control Depends: to have a trailing comma. Thanks Jean-Baptiste
    Lallement for the patch!
  * Make test stdout re-appear in --log-file file for realtime output.

 -- Martin Pitt <email address hidden> Mon, 28 Oct 2013 11:25:30 +0100

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
Changed in autopkgtest (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.