public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change
@ 2018-07-24 23:08 James Le Cuirot
  2018-07-25 14:27 ` Alec Warner
  2018-07-27 12:03 ` Alexander Tsoy
  0 siblings, 2 replies; 5+ messages in thread
From: James Le Cuirot @ 2018-07-24 23:08 UTC (permalink / raw
  To: gentoo-dev; +Cc: pr

[-- Attachment #1: Type: text/plain, Size: 3010 bytes --]

Please read my background [arm17] email before reviewing this. This is
my first news item so please be kind! I have deliberately chosen
News-Item-Format 1.0 to include older systems and because I do not need
any 2.0 features.


Title: ARM 17.0 profile migration with CHOST change
Author: James Le Cuirot <chewi@gentoo.org>
Content-Type: text/plain
Posted: 2018-07-24
Revision: 1
News-Item-Format: 1.0
Display-If-Keyword: arm

The new 17.0 profiles for ARM are now officially available. This not
only features the PIE migration previously announced for other
architectures but also a triplet (CHOST) change for hardfloat systems.

In short, the triplet will change from armv7a-hardfloat-linux-gnueabi
to armv7a-unknown-linux-gnueabihf or similar. This is to fall in line
with what the rest of the Linux community are now using. If the vendor
(2nd) part of your triplet is different or missing then you may keep
it as it is. The hf ending is what matters.

If you are using an unversioned alternative profile such as
hardened/linux/arm/armv7a then the default CHOST will have changed for
you already. Hopefully, you were shielded from the change by having
CHOST explicitly set in your make.conf. In this case, a migration is
still required.

Changing CHOST is never simple and does carry some risk. We encourage
users to migrate but if you do not have sys-devel/llvm on your system
and you do not cross-compile for ARM then you may choose to keep your
existing CHOST. We will continue to support this to some degree
although we cannot promise that other packages will not be affected in
future.

If you choose not to migrate or your system is not hardfloat then you
must ensure that CHOST is explicitly set in make.conf and then proceed
with a regular 17.0 migration to deal with PIE as detailed here:

https://www.gentoo.org/support/news-items/2017-11-30-new-17-profiles.html

Otherwise, if you do wish to migrate then we have written a script to
do the necessary steps for you:

https://gist.github.com/chewi/1601684ad8f3cf8de0b786c00fa09b3c

It takes a minimal backup of the existing toolchain with quickpkg
before changing anything but we strongly recommend that you take a
full backup first. The script echos each command as it goes along so
that you can keep an eye on what it's doing. You are, of course,
welcome to tinker with the script or perform the migration manually if
you think you know your own system better. It is heavily commented for
this reason.

If the script fails then you can take remedial action before running
it again and it should skip any time-consuming builds that it has
already done. If the migration doesn't go to plan then please do seek
help in #gentoo-arm.

A migration of this kind can justify rebuilding @world but with ARM
typically being very slow, the script does just the minimum
necessary. You are free to rebuild @world yourself after running it.

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change
  2018-07-24 23:08 [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change James Le Cuirot
@ 2018-07-25 14:27 ` Alec Warner
  2018-07-25 21:39   ` James Le Cuirot
  2018-07-27 12:03 ` Alexander Tsoy
  1 sibling, 1 reply; 5+ messages in thread
From: Alec Warner @ 2018-07-25 14:27 UTC (permalink / raw
  To: Gentoo Dev; +Cc: pr

[-- Attachment #1: Type: text/plain, Size: 3197 bytes --]

On Tue, Jul 24, 2018 at 4:08 PM, James Le Cuirot <chewi@gentoo.org> wrote:

> Please read my background [arm17] email before reviewing this. This is
> my first news item so please be kind! I have deliberately chosen
> News-Item-Format 1.0 to include older systems and because I do not need
> any 2.0 features.
>
>
> Title: ARM 17.0 profile migration with CHOST change
> Author: James Le Cuirot <chewi@gentoo.org>
> Content-Type: text/plain
> Posted: 2018-07-24
> Revision: 1
> News-Item-Format: 1.0
> Display-If-Keyword: arm
>
> The new 17.0 profiles for ARM are now officially available. This not
> only features the PIE migration previously announced for other
> architectures but also a triplet (CHOST) change for hardfloat systems.
>
> In short, the triplet will change from armv7a-hardfloat-linux-gnueabi
> to armv7a-unknown-linux-gnueabihf or similar. This is to fall in line
> with what the rest of the Linux community are now using. If the vendor
> (2nd) part of your triplet is different or missing then you may keep
> it as it is. The hf ending is what matters.
>
> If you are using an unversioned alternative profile such as
> hardened/linux/arm/armv7a then the default CHOST will have changed for
> you already. Hopefully, you were shielded from the change by having
> CHOST explicitly set in your make.conf. In this case, a migration is
> still required.
>
> Changing CHOST is never simple and does carry some risk. We encourage
> users to migrate but if you do not have sys-devel/llvm on your system
> and you do not cross-compile for ARM then you may choose to keep your
> existing CHOST. We will continue to support this to some degree
> although we cannot promise that other packages will not be affected in
> future.
>
> If you choose not to migrate or your system is not hardfloat then you
> must ensure that CHOST is explicitly set in make.conf and then proceed
> with a regular 17.0 migration to deal with PIE as detailed here:
>
> https://www.gentoo.org/support/news-items/2017-11-30-new-17-profiles.html
>
> Otherwise, if you do wish to migrate then we have written a script to
> do the necessary steps for you:
>
> https://gist.github.com/chewi/1601684ad8f3cf8de0b786c00fa09b3c
>
>
Could we check this in someplace? (gentoo/scripts?)


> It takes a minimal backup of the existing toolchain with quickpkg
> before changing anything but we strongly recommend that you take a
> full backup first. The script echos each command as it goes along so
> that you can keep an eye on what it's doing. You are, of course,
> welcome to tinker with the script or perform the migration manually if
> you think you know your own system better. It is heavily commented for
> this reason.
>
> If the script fails then you can take remedial action before running
> it again and it should skip any time-consuming builds that it has
> already done. If the migration doesn't go to plan then please do seek
> help in #gentoo-arm.
>
> A migration of this kind can justify rebuilding @world but with ARM
> typically being very slow, the script does just the minimum
> necessary. You are free to rebuild @world yourself after running it.
>
> --
> James Le Cuirot (chewi)
> Gentoo Linux Developer
>

[-- Attachment #2: Type: text/html, Size: 4220 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change
  2018-07-25 14:27 ` Alec Warner
@ 2018-07-25 21:39   ` James Le Cuirot
  0 siblings, 0 replies; 5+ messages in thread
From: James Le Cuirot @ 2018-07-25 21:39 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

On Wed, 25 Jul 2018 07:27:20 -0700
Alec Warner <antarus@gentoo.org> wrote:

> > Otherwise, if you do wish to migrate then we have written a script to
> > do the necessary steps for you:
> >
> > https://gist.github.com/chewi/1601684ad8f3cf8de0b786c00fa09b3c
> >
> >  
> Could we check this in someplace? (gentoo/scripts?)

I knew someone would ask that! What is this gentoo/scripts you speak
of? I don't feel too strongly about it but Gist is a handy place for
tracking changes to stand-alone scripts. I expect it may need a tweak
or two after some feedback.

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change
  2018-07-24 23:08 [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change James Le Cuirot
  2018-07-25 14:27 ` Alec Warner
@ 2018-07-27 12:03 ` Alexander Tsoy
  2018-07-27 20:42   ` James Le Cuirot
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Tsoy @ 2018-07-27 12:03 UTC (permalink / raw
  To: gentoo-dev; +Cc: pr

В Ср, 25/07/2018 в 00:08 +0100, James Le Cuirot пишет:
------->%--------
> Otherwise, if you do wish to migrate then we have written a script to
> do the necessary steps for you:
> 
> https://gist.github.com/chewi/1601684ad8f3cf8de0b786c00fa09b3c

Please replace "-execdir sh" with "-execdir bash", otherwise looks good
to me.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change
  2018-07-27 12:03 ` Alexander Tsoy
@ 2018-07-27 20:42   ` James Le Cuirot
  0 siblings, 0 replies; 5+ messages in thread
From: James Le Cuirot @ 2018-07-27 20:42 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

On Fri, 27 Jul 2018 15:03:38 +0300
Alexander Tsoy <alexander@tsoy.me> wrote:

> В Ср, 25/07/2018 в 00:08 +0100, James Le Cuirot пишет:
> ------->%--------
> > Otherwise, if you do wish to migrate then we have written a script to
> > do the necessary steps for you:
> > 
> > https://gist.github.com/chewi/1601684ad8f3cf8de0b786c00fa09b3c  
> 
> Please replace "-execdir sh" with "-execdir bash", otherwise looks good
> to me.

I believe those snippets are pure POSIX but best be sure it's not same
totally random shell, I suppose. :)

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-27 20:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-24 23:08 [gentoo-dev] [arm17] [News] ARM 17.0 profile migration with CHOST change James Le Cuirot
2018-07-25 14:27 ` Alec Warner
2018-07-25 21:39   ` James Le Cuirot
2018-07-27 12:03 ` Alexander Tsoy
2018-07-27 20:42   ` James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox