Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] data/gentoo-news:master commit in: 2018-09-07-arm-17-profile-migration/
Date: Fri, 07 Sep 2018 21:23:20
Message-Id: 1536355161.eb934b1aed6fe6ed4a7e7cec36422c6e2a083c2a.chewi@gentoo
1 commit: eb934b1aed6fe6ed4a7e7cec36422c6e2a083c2a
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 7 21:02:06 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 7 21:19:21 2018 +0000
6 URL: https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=eb934b1a
7
8 2018-09-07-arm-17-profile-migration: Add news item
9
10 Bug: https://bugs.gentoo.org/602440
11
12 .../2018-09-07-arm-17-profile-migration.en.txt | 59 ++++++++++++++++++++++
13 1 file changed, 59 insertions(+)
14
15 diff --git a/2018-09-07-arm-17-profile-migration/2018-09-07-arm-17-profile-migration.en.txt b/2018-09-07-arm-17-profile-migration/2018-09-07-arm-17-profile-migration.en.txt
16 new file mode 100644
17 index 0000000..69de60a
18 --- /dev/null
19 +++ b/2018-09-07-arm-17-profile-migration/2018-09-07-arm-17-profile-migration.en.txt
20 @@ -0,0 +1,59 @@
21 +Title: ARM 17.0 profile migration with CHOST change
22 +Author: James Le Cuirot <chewi@g.o>
23 +Content-Type: text/plain
24 +Posted: 2018-09-07
25 +Revision: 1
26 +News-Item-Format: 1.0
27 +Display-If-Keyword: arm
28 +Display-If-Keyword: arm-linux
29 +
30 +The new 17.0 profiles for ARM are now officially available. This not
31 +only features the PIE migration previously announced for other
32 +architectures but also a tuple (CHOST) change for hardfloat systems.
33 +
34 +In short, the tuple will change from armv7a-hardfloat-linux-gnueabi to
35 +armv7a-unknown-linux-gnueabihf or similar. This is to fall in line with
36 +what the rest of the Linux community are now using. If the vendor (2nd)
37 +part of your tuple is different or missing then you may keep it as it
38 +is. The hf ending is what matters.
39 +
40 +If you are using an unversioned alternative profile such as
41 +hardened/linux/arm/armv7a then the default CHOST will have changed for
42 +you already. Hopefully, you were shielded from the change by having
43 +CHOST explicitly set in your make.conf. In this case, a migration is
44 +still required.
45 +
46 +Changing CHOST is never simple and does carry some risk. We encourage
47 +users to migrate but if you do not have sys-devel/llvm on your system
48 +and you do not cross-compile for ARM then you may choose to keep your
49 +existing CHOST. We will continue to support this to some degree
50 +although we cannot promise that other packages will not be affected in
51 +future.
52 +
53 +If you choose not to migrate or your system is not hardfloat then you
54 +must ensure that CHOST is explicitly set in make.conf and then proceed
55 +with a regular 17.0 migration to deal with PIE as detailed here:
56 +
57 +https://www.gentoo.org/support/news-items/2017-11-30-new-17-profiles.html
58 +
59 +Otherwise, if you do wish to migrate then we have written a script to
60 +do the necessary steps for you:
61 +
62 +https://gist.github.com/chewi/1601684ad8f3cf8de0b786c00fa09b3c
63 +
64 +It takes a minimal backup of the existing toolchain with quickpkg
65 +before changing anything but we strongly recommend that you take a
66 +full backup first. The script echos each command as it goes along so
67 +that you can keep an eye on what it's doing. You are, of course,
68 +welcome to tinker with the script or perform the migration manually if
69 +you think you know your own system better. It is heavily commented for
70 +this reason.
71 +
72 +If the script fails then you can take remedial action before running
73 +it again and it should skip any time-consuming builds that it has
74 +already done. If the migration doesn't go to plan then please do seek
75 +help in #gentoo-arm.
76 +
77 +A migration of this kind can justify rebuilding @world but with ARM
78 +typically being very slow, the script does just the minimum
79 +necessary. You are free to rebuild @world yourself after running it.