[Bug 1206215] [NEW] pbuilder forces use of fakeroot

Jim Wright jwright at puaa.net
Mon Jul 29 18:08:01 UTC 2013


Public bug reported:

The file /usr/lib/pbuilder/pbuilder-buildpackage parses options and
builds the command line for debuild. It includes the line:

    DEBBUILDOPTS="${DEBBUILDOPTS:+$DEBBUILDOPTS }-rfakeroot"

Note that it unequivocally appends "-rfakeroot" to the debuild command
line. In turn, debuild parses the command line such that the last
instance of the -r option is used. So even if you set DEBBUILDOPTS to
have an alternative -r option, it will have no effect.

This can be worked around by making "-rfakeroot" appear at the
beginning, so any user-supplied -r option appears last and will take
effect. But this depends on behavior coded into debuild. A better
solution would be to check of DEBBUILDOPTS contains a -r or --rootcmd
option, and only force the inclusion of -rfakeroot if not provided.

Description:	Ubuntu 12.04.2 LTS
Release:	12.04

pbuilder:
  Installed: 0.208ubuntu1
  Candidate: 0.208ubuntu1
  Version table:
 *** 0.208ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: pbuilder (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: debuild fakeroot pbuilder

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pbuilder in Ubuntu.
https://bugs.launchpad.net/bugs/1206215

Title:
  pbuilder forces use of fakeroot

Status in “pbuilder” package in Ubuntu:
  New

Bug description:
  The file /usr/lib/pbuilder/pbuilder-buildpackage parses options and
  builds the command line for debuild. It includes the line:

      DEBBUILDOPTS="${DEBBUILDOPTS:+$DEBBUILDOPTS }-rfakeroot"

  Note that it unequivocally appends "-rfakeroot" to the debuild command
  line. In turn, debuild parses the command line such that the last
  instance of the -r option is used. So even if you set DEBBUILDOPTS to
  have an alternative -r option, it will have no effect.

  This can be worked around by making "-rfakeroot" appear at the
  beginning, so any user-supplied -r option appears last and will take
  effect. But this depends on behavior coded into debuild. A better
  solution would be to check of DEBBUILDOPTS contains a -r or --rootcmd
  option, and only force the inclusion of -rfakeroot if not provided.

  Description:	Ubuntu 12.04.2 LTS
  Release:	12.04

  pbuilder:
    Installed: 0.208ubuntu1
    Candidate: 0.208ubuntu1
    Version table:
   *** 0.208ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pbuilder/+bug/1206215/+subscriptions




More information about the foundations-bugs mailing list