switch to gcc-4.5 and symlinks for default versions
Bug #676454 reported by
Marcin Juszkiewicz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.4-armel-cross (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
gcc-4.5-armel-cross (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
gcc-defaults-armel-cross (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Now gcc-4.[
Implementation plan:
1. create gcc-defaults-
2. create gcc-defaults-
3. drop postinst/prerm of gcc-4.[
4. add preinst of gcc-4.[
5. upload newer gcc-4.[
6. add conflicts on gcc-4.[
7. upload gcc-defaults-
Changed in gcc-defaults-armel-cross (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Marcin Juszkiewicz (hrw) |
Changed in gcc-4.5-armel-cross (Ubuntu): | |
assignee: | nobody → Marcin Juszkiewicz (hrw) |
Changed in gcc-4.4-armel-cross (Ubuntu): | |
assignee: | nobody → Marcin Juszkiewicz (hrw) |
Changed in gcc-4.5-armel-cross (Ubuntu): | |
status: | New → Confirmed |
Changed in gcc-4.4-armel-cross (Ubuntu): | |
status: | New → Confirmed |
Changed in gcc-4.5-armel-cross (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in gcc-4.4-armel-cross (Ubuntu): | |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
tags: | added: patch |
description: | updated |
Changed in gcc-4.4-armel-cross (Ubuntu): | |
status: | In Progress → Fix Committed |
description: | updated |
To post a comment you must log in.
This should be done in the preinst instead. Rationale: update-alternatives is part of dpkg, so doesn't require any Pre-Depends; and a dependency (such as the gcc-arm- linux-gnueabi dependency on gcc-4.5- arm-linux- gnueabi) does not prevent one package from being unpacked before the postinst of another package it depends on has been run. So if you do this in the postinst, you get:
- gcc-4.5- arm-linux- gnueabi unpacked (enforced by the Conflicts: from gcc-arm- linux-gnueabi) linux-gnueabi unpacked; overwrites /usr/bin/ arm-linux- gnueabi- gcc symlink arm-linux- gnueabi configured; u-a remove runs, removing the symlink linux-gnueabi configured - but the gcc symlink is now missing
- gcc-arm-
- gcc-4.5-
- gcc-arm-
Otherwise, this looks ok.