Merge gcc packaging changes and patches back into Ubuntu

Registered by Marcin Juszkiewicz on 2011-11-10

I made many changes for gcc-4.6/ubuntu and not every is merged back. Some of them are related to standard cross toolchain, some to gcc-linaro native, other to gcc-linaro cross.

Whiteboard

[rsalveti, 2011-11-10] Shouldn't this be part of the linaro-ubuntu project and targeted for 11.11?
[fboudra, 2011-11-10] re-target to linaro-ubuntu/11.11 to get it visible under Developer Platform status.
[hrw 2011.11.16] gnat/cross is not possible - probably same with gcj - cross gcc is built instead
[dzin 2011-11-17] Please add a headline and acceptance criteria
[dzin 2011-11-23] This is a work list for hrw only, and as such it is moved to the backlog
[dzin 2011-11-29] Moved to trunk
[hrw 2001-12-20] All usable changes were merged. Rest can stay where it is.

Headline:
All changes to gcc packaging got merged back into Debian/Ubuntu gcc packages.

Acceptance:
gcc-4.6, gcc-snapshot and gcc-linaro build natively out of box with minimal set (or none) of patches applied to packaging. gcc-4.6 and gcc-linaro build as cross compiler.

Code present here: https://code.launchpad.net/~hrw/ubuntu/precise/gcc-4.6/cross-fixes
Builds are in my PPA: https://launchpad.net/~hrw/+archive/my-own-packages/
Merge request: https://code.launchpad.net/~hrw/ubuntu/precise/gcc-4.6/cross-fixes/+merge/82269

SOURCE_BUILD_DEP changes needs checks with gnat/gcj

(?)

Work Items

Work items for 11.11:
branch lp:ubuntu/gcc-4.6: DONE
merge patches from bug raports: DONE
add option to unify gcc-snapshot and gcc-linaro: DONE
make native build of gcc-4.6 with all patches: DONE
make native build of gcc-snapshot with all patches: DONE
make native build of gcc-linaro with all patches: DONE
make native build of gnat with all patches: DONE
disable Ada, D, Go, Java in gcc-linaro native: DONE
make cross build of gcc-4.6 with all patches: DONE
make native recipe build of gcc-linaro: DONE

Work items:
merge patches for gcc-{snapshot,linaro} cross: DONE
make cross build of gcc-snapshot with all patches: BLOCKED
make cross build of gcc-linaro with all patches: DONE
integrate changes from CI builds (where src/ is not removed as it comes from bzr recipe): DONE
change amount of patches for native CI build (many not apply): DONE
make cross recipe build of gcc-linaro: DONE
switch gcc-linaro native/cross to use /usr/lib/gcc-linaro/TARGET_GNU_TYPE/ dir: DONE

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.