* [gentoo-commits] data/gentoo-news:master commit in: 2023-01-28-rap-prefix-sysroot/
@ 2023-01-28 22:14 James Le Cuirot
0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2023-01-28 22:14 UTC (permalink / raw
To: gentoo-commits
commit: 3adad1954b1463ddfe5c9f7d39e308d6b57b2769
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 28 22:10:13 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Jan 28 22:10:32 2023 +0000
URL: https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=3adad195
2023-01-28-rap-prefix-sysroot: Add news item
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
.../2023-01-28-rap-prefix-sysroot.en.txt | 67 ++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt b/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
new file mode 100644
index 0000000..205250b
--- /dev/null
+++ b/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
@@ -0,0 +1,67 @@
+Title: Breaking changes to the RAP Prefix toolchain
+Author: James Le Cuirot <chewi@gentoo.org>
+Posted: 2023-01-28
+Revision: 1
+News-Item-Format: 2.0
+Display-If-Profile: default/linux/amd64/17.0/no-multilib/prefix/*
+Display-If-Profile: default/linux/amd64/17.1/no-multilib/prefix/*
+Display-If-Profile: default/linux/amd64/23.0/no-multilib/prefix/*
+Display-If-Profile: default/linux/amd64/23.0/split-usr/no-multilib/prefix/*
+Display-If-Profile: default/linux/arm/17.0/armv7a/prefix/*
+Display-If-Profile: default/linux/arm/23.0/armv7a/prefix/*
+Display-If-Profile: default/linux/arm/23.0/split-usr/armv7a/prefix/*
+Display-If-Profile: default/linux/arm64/17.0/prefix/*
+Display-If-Profile: default/linux/arm64/23.0/prefix/*
+Display-If-Profile: default/linux/arm64/23.0/split-usr/prefix/*
+Display-If-Profile: default/linux/ppc64le/17.0/prefix/*
+Display-If-Profile: default/linux/riscv/20.0/rv64gc/lp64d/prefix/*
+Display-If-Profile: default/linux/riscv/23.0/rv64/lp64d/prefix/*
+Display-If-Profile: default/linux/riscv/23.0/rv64/split-usr/lp64d/prefix/*
+Display-If-Profile: default/linux/x86/17.0/prefix/*
+Display-If-Profile: default/linux/x86/23.0/prefix/*
+Display-If-Profile: default/linux/x86/23.0/split-usr/prefix/*
+
+We are changing the way the toolchain operates on RAP Prefix systems in order to
+reduce the number of hacks we need to apply and make cross-compiling easier.
+
+If you using a non-RAP "Prefix Guest" or "Prefix Stack" variant (e.g. macOS)
+then this does not apply.
+
+If you're not sure what kind of prefix you have, then check whether the
+prefix-guest USE flag is enabled.
+
+ portageq envvar USE | grep prefix-guest
+
+If you are using a libc other than glibc (e.g. musl) then this *does* apply, but
+your libc will *not* break, so you should not carry out the following procedure.
+The only other package known to be affected is dev-libs/libbsd, which you can
+simply update. If you find another package affected by this, then please file a
+bug report.
+
+WARNING! It is important that you carry out the following procedure, otherwise
+your toolchain will break when you next update your compiler or glibc.
+
+ 1. Run the following to create a temporary symlink:
+
+ EPREFIX=$(portageq envvar EPREFIX)
+ mkdir -p "${EPREFIX}${EPREFIX%/*}"
+ ln -sn "${EPREFIX}" "${EPREFIX}${EPREFIX}"
+
+ 2. Update or rebuild all installed slots of sys-devel/gcc and sys-devel/clang
+ (if any). Feel free to remove any you no longer need.
+
+ 3. Update or rebuild sys-libs/glibc.
+
+ 4. Run the following to remove the symlink:
+
+ EPREFIX=$(portageq envvar EPREFIX)
+ rm "${EPREFIX}${EPREFIX}"
+
+ 5. If dev-libs/libbsd is installed, then update it to 0.11.7-r2 or later.
+
+If you are reading this having updated glibc first and you are no longer able to
+build anything, then don't panic. Simply execute the lines below and then carry
+out the regular procedure above.
+
+ EPREFIX=$(portageq envvar EPREFIX)
+ portageq contents "${EPREFIX}" $(portageq best_version "${EPREFIX}" sys-libs/glibc) | xargs grep -lIF -d skip "GNU ld script" | xargs sed -i -r "s: /(usr|lib): ${EPREFIX}/\1:g"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] data/gentoo-news:master commit in: 2023-01-28-rap-prefix-sysroot/
@ 2023-02-01 23:49 James Le Cuirot
0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2023-02-01 23:49 UTC (permalink / raw
To: gentoo-commits
commit: 08c95ae436163d5da31b9d3340071d8666efa08b
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 1 23:48:31 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Wed Feb 1 23:48:31 2023 +0000
URL: https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=08c95ae4
2023-01-28-rap-prefix-sysroot: Clarify paragraph about checking USE flag
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt b/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
index 205250b..da1f59b 100644
--- a/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
+++ b/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
@@ -1,7 +1,7 @@
Title: Breaking changes to the RAP Prefix toolchain
Author: James Le Cuirot <chewi@gentoo.org>
Posted: 2023-01-28
-Revision: 1
+Revision: 2
News-Item-Format: 2.0
Display-If-Profile: default/linux/amd64/17.0/no-multilib/prefix/*
Display-If-Profile: default/linux/amd64/17.1/no-multilib/prefix/*
@@ -28,7 +28,8 @@ If you using a non-RAP "Prefix Guest" or "Prefix Stack" variant (e.g. macOS)
then this does not apply.
If you're not sure what kind of prefix you have, then check whether the
-prefix-guest USE flag is enabled.
+prefix-guest USE flag is enabled. If the following command returns nothing, then
+you have a RAP prefix and this does apply.
portageq envvar USE | grep prefix-guest
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] data/gentoo-news:master commit in: 2023-01-28-rap-prefix-sysroot/
@ 2023-03-25 22:45 James Le Cuirot
0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2023-03-25 22:45 UTC (permalink / raw
To: gentoo-commits
commit: 4cb5a1b2d4e8140f331bb5fa1bb2136db9c4bd54
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 25 22:45:04 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 25 22:45:04 2023 +0000
URL: https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=4cb5a1b2
2023-01-28-rap-prefix-sysroot: Add step to update binutils
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
.../2023-01-28-rap-prefix-sysroot.en.txt | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt b/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
index da1f59b..9c6f3d4 100644
--- a/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
+++ b/2023-01-28-rap-prefix-sysroot/2023-01-28-rap-prefix-sysroot.en.txt
@@ -1,7 +1,7 @@
Title: Breaking changes to the RAP Prefix toolchain
Author: James Le Cuirot <chewi@gentoo.org>
Posted: 2023-01-28
-Revision: 2
+Revision: 3
News-Item-Format: 2.0
Display-If-Profile: default/linux/amd64/17.0/no-multilib/prefix/*
Display-If-Profile: default/linux/amd64/17.1/no-multilib/prefix/*
@@ -53,12 +53,15 @@ your toolchain will break when you next update your compiler or glibc.
3. Update or rebuild sys-libs/glibc.
- 4. Run the following to remove the symlink:
+ 4. Update sys-devel/binutils to at least 2.40-r2. This package is slotted, so
+ ensure at least this version is selected with binutils-config.
+
+ 5. Run the following to remove the symlink:
EPREFIX=$(portageq envvar EPREFIX)
rm "${EPREFIX}${EPREFIX}"
- 5. If dev-libs/libbsd is installed, then update it to 0.11.7-r2 or later.
+ 6. If dev-libs/libbsd is installed, then update it to 0.11.7-r2 or later.
If you are reading this having updated glibc first and you are no longer able to
build anything, then don't panic. Simply execute the lines below and then carry
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-25 22:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-25 22:45 [gentoo-commits] data/gentoo-news:master commit in: 2023-01-28-rap-prefix-sysroot/ James Le Cuirot
-- strict thread matches above, loose matches on Subject: below --
2023-02-01 23:49 James Le Cuirot
2023-01-28 22:14 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