EXTRAPACKAGES not installed

Bug #1307909 reported by Rolf Leggewie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pbuilder (Ubuntu)
Fix Released
Undecided
Mattia Rizzolo
ubuntu-dev-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

man 5 pbuilderrc says

       EXTRAPACKAGES="ccache lintian XXX"
              Specifies extra packages which the system should install in the chroot on pbuilder create. This is a space-delimited list.
              Also this is installed on pbuilder build

In reality EXTRAPACKAGES are not installed for the build target. There are two ways to remedy the situation. 1) update the man page to reflect the true state of things. 2) change the behaviour of the pbuilder to be in line with the man page.

Tags: trusty

Related branches

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I just realized that I routinely use the pbuilder-dist wrapper from ubuntu-dev-tools for my compilation needs and thus it might be a bug in that package and not necessarily in plain pbuilder.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I'm using a D type hook target now to install EXTRAPACKAGES in the meantime. For anyone else who experiences this issue and would be interested in the same fix, have a look into the pbuilder manpage under --hookdir

$ cat ~/pbuilder/private-hooks/D95install_EXTRAPACKAGES
#!/bin/bash
set -e
install_packages() {
    apt-get -y "${APTGETOPT[@]}" install "$@"
}
install_packages initscripts

You still need to make sure the hooks are actually called.

Revision history for this message
Thorsten Glaser (mirabilos) wrote : Re: [Bug 1307909] Re: EXTRAPACKAGES not installed

Rolf Leggewie dixit:

>I'm using a D type hook target now to install EXTRAPACKAGES in the

You can just run --update immediately after creation.
Worse is the way REMOVEPACKAGES works… (it breaks things,
better to use EXTRAPACKAGES="foo-" to remove a package)

bye,
//mirabilos
--
Support mksh as /bin/sh and RoQA dash NOW!
‣ src:bash (281 (304) bugs: 0 RC, 198 (214) I&N, 83 (90) M&W, 0 F&P)
‣ src:dash (89 (106) bugs: 2 RC, 43 (49) I&N, 44 (55) M&W, 0 F&P)
‣ src:mksh (2 bugs: 0 RC, 0 I&N, 2 M&W, 0 F&P, 1 gift)
http://qa.debian.org/data/bts/graphs/d/dash.png is pretty red, innit?

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

I claim this is a bug in the pbuilderrc manpage and "fixed" it in the VCS:

http://anonscm.debian.org/cgit/pbuilder/pbuilder.git/commit/?id=062a28a59ed97c3921234e8eab995218367840bb

Changed in pbuilder (Ubuntu):
status: New → Fix Committed
assignee: nobody → Mattia Rizzolo (mapreri)
Changed in ubuntu-dev-tools (Ubuntu):
status: New → Invalid
Rolf Leggewie (r0lf)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pbuilder - 0.221ubuntu2

---------------
pbuilder (0.221ubuntu2) xenial; urgency=medium

  [ Gianfranco Costamagna ]
  * Remove XS-* prefix from debian control file, useless after dpkg 1.17.10.

  [ Mattia Rizzolo ]
  * cherry-pick change from Debian VCS to update pbuilder-apt-config and fix
    autopkgtest.

 -- Mattia Rizzolo <email address hidden> Wed, 25 Nov 2015 01:36:53 +0000

Changed in pbuilder (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.