Image Creator doesn't install some packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Moblin Image Creator |
Fix Released
|
Medium
|
Praj |
Bug Description
We ran into a case where Image Creator suddenly started leaving the xserver-
It turns out the problem was caused by a bad interaction between Image Creator and apt. Image Creator creates a set of packages to be installed by apt. The set is unordered, so there is no guarantee of the order in which packages are installed. This is bad in the following case:
The xorg package has a dependency on input drivers that can be fulfilled by either the xserver-
So, this does the right thing:
apt-get install xorg xserver-
This doesn't do the right thing:
apt-get install xserver-
Because Image Creator uses a set to hold the list of packages - rather than an ordered data structure like a list - the list of packages passed to apt-get install can be in any order. If python happens to place xserver-
--
I think there are a couple solutions:
1) Explicitly include the xserver-
2) Fix Image Creator to use an ordered data structure for the list of packages. This would force Image Creator to install packages in the order specified in the fset, which would result in the correct behavior for the above example.
Changed in moblin-image-creator: | |
assignee: | nobody → prajwal-linux |
importance: | Undecided → Medium |
status: | New → In Progress |
I found another case in which the Image Creator behavior is a problem. Sometimes our builds include epiphany-browser and its required packages, even though we don't want it there. We have 2 packages - postr and totem-mozilla - that depend on the <www-browser> virtual package. midbrowser provides www-browser, and since midbrowser is installed by the ubuntu-mobile package we should never need epiphany-browser. However, it totem-mozilla or postr come before ubuntu-mobile in the list of packages passed to apt-get install, we'll wind up with both midbrowser and epiphany-browser.