diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-10-02 10:55:23 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-10-02 10:55:23 +0100 |
commit | 6d4a0ec6caa5a1f1f1a73a7a8bd061889cf06299 (patch) | |
tree | 6a0928e1aadf2527e16d2ead1a571bfa7da19c71 /strata/build-essential/stage2-reset-specs.morph | |
parent | d107a96317a05ec3238ff7bce94cd6cbf12398bf (diff) | |
parent | e9dbfdc623101442370d51525e8cdbe3867eab02 (diff) | |
download | definitions-6d4a0ec6caa5a1f1f1a73a7a8bd061889cf06299.tar.gz |
Merge branch 'baserock/sam/build-essential-comments'
Reviewed-By: Pedro Alvarez <pedro.alvarez@codethink.co.uk>
Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
Diffstat (limited to 'strata/build-essential/stage2-reset-specs.morph')
-rw-r--r-- | strata/build-essential/stage2-reset-specs.morph | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/strata/build-essential/stage2-reset-specs.morph b/strata/build-essential/stage2-reset-specs.morph index 6495909c..8892f67c 100644 --- a/strata/build-essential/stage2-reset-specs.morph +++ b/strata/build-essential/stage2-reset-specs.morph @@ -1,5 +1,17 @@ name: stage2-reset-specs kind: chunk + +# Nasty hack to get around being unable to reliably add configuration to gcc, +# hence the gcc specs are modified, combined with Baserock's rootfs protection +# preventing specs being modified before builds. +# The limitation is overcome by installing files as part of a chunk, which +# overwrites previous files. +# New specs were added for the bootstrap builds, but after stage2 we start +# having chrooted builds, so the old specs need to be replaced. +# Unfortunately we can't just replace the specs with the ones gcc produces, +# since gcc behaves differently without specs to with specs it produces! +# So we use a **NASTY HACK** to replace the specs symlink with one that +# points to a file that doesn't exist. install-commands: - | STAGE2_SYSROOT="$(dirname "$(pwd)")" |