[pbuilder-dist] Shouldn't be run with sudo

Bug #691999 reported by Artur Rona
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Wishlist
Stefano Rivera

Bug Description

Binary package hint: ubuntu-dev-tools

$ apt-cache policy ubuntu-dev-tools
ubuntu-dev-tools:
  Zainstalowana: 0.107
  Kandydująca: 0.107
  Tabela wersji:
 *** 0.107 0
        500 http://pl.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

$ sudo pbuilder-dist natty update
W: /root/.pbuilderrc does not exist
E: File /root/pbuilder/natty-base.tgz does not exist

Other options like build also don't work with the same output.

Revision history for this message
Stefano Rivera (stefanor) wrote :

I'm guessing this is due to using sudo. We should detect sudo (via the environment variables it prints), and output an appropriate error.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Fix committed in r848.

summary: - [pbuilder-dist] Does not work on natty
+ [pbuilder-dist] Shouldn't be run with sudo
Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Stefano Rivera (stefanor)
importance: Undecided → Wishlist
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.108

---------------
ubuntu-dev-tools (0.108) experimental; urgency=low

  [ Stefano Rivera ]
  * lp-shell, import-bug-from-debian:
    Use the 'production' LP instance instead of 'edge' (which is going away).
  * pbuilder-dist:
    - Fix typo in local archive support, introduced in 0.107.
    - Warn user if they run sudo pbuilder-dist (LP: #691999).
  * Drop unnecessary debian/pycompat

  [ Benjamin Drung ]
  * pull-lp-source: Unquote URI to get "+" instead of "%2B" in the file name
    (LP: #681114).
  * sponsor-patch: Allow updating the build environment if the build failed.
  * ubuntu-iso: Exit nonzero rather than crash if a wrong parameter is passed
    (LP: #637020).

  [ Colin Watson ]
  * grep-merges: New tool.
  * ubuntu-iso(1): Fix typo.

  [ Evan Broder ]
  * backportpackage: new script for testing backport requests in a PPA.
  * sponsor-patch: Add --update option to make sure build environment is
    up to date (LP: #689605)

  [ Bilal Akhtar ]
  * pbuilder-dist: Override the default build result location if
    --buildresult is specified.
  * sponsor-patch: Support building with pbuilder-dist.
 -- Benjamin Drung <email address hidden> Sun, 19 Dec 2010 00:57:38 +0100

Changed in ubuntu-dev-tools (Ubuntu):
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.