1 |
Feedback welcome... |
2 |
|
3 |
|
4 |
Title: riscv upgrade to 20.0 profiles |
5 |
Author: Andreas K. Hüttel <dilfridge@g.o> |
6 |
Posted: 2021-06-25 |
7 |
Revision: 1 |
8 |
News-Item-Format: 2.0 |
9 |
Display-If-Profile: default/linux/riscv/17.0/rv64gc/lp64d |
10 |
Display-If-Profile: default/linux/riscv/17.0/rv64gc/lp64d/systemd |
11 |
Display-If-Profile: default/linux/riscv/17.0/rv64gc/lp64 |
12 |
Display-If-Profile: default/linux/riscv/17.0/rv64gc/lp64/systemd |
13 |
|
14 |
On RISC-V we are switching from two-level library directories (e.g., |
15 |
/usr/lib64/lp64d) to a more traditional directory architecture. |
16 |
This is done via the profile upgrade from 17.0 to 20.0 profiles. |
17 |
|
18 |
We recommend to re-install from scratch using a 20.0 profile based |
19 |
stage. 17.0 profiles will be deprecated immediately and removed |
20 |
in 6 months. |
21 |
|
22 |
If you want to upgrade an existing installation, the following |
23 |
steps should be taken. Please read all commands carefully first and |
24 |
make sure you understand them, since the procedure is risky. The |
25 |
commands are given for a lp64d profile; in case of a lp64 profile, |
26 |
always replace lp64d with lp64. |
27 |
|
28 |
# cd /usr/local/lib64 |
29 |
# cp -av lp64d/. . |
30 |
# rm -rf lp64d |
31 |
# ln -s . lp64d |
32 |
|
33 |
# cd /usr/lib64 |
34 |
# cp -av lp64d/. . |
35 |
# rm -rf lp64d |
36 |
# ln -s . lp64d |
37 |
|
38 |
# cd /lib64 |
39 |
# cp -av lp64d/. . |
40 |
# rm -rf lp64d |
41 |
# sln . lp64d |
42 |
|
43 |
Note that the last command uses "sln" instead of "ln -s". |
44 |
|
45 |
Then switch from your 17.0 profile to the corresponding 20.0 profile, |
46 |
either by using "eselect profile" or by manually changing the |
47 |
/etc/portage/make.profile symlink. |
48 |
|
49 |
Next, rebuild all packages: |
50 |
|
51 |
# emerge -eav world |
52 |
|
53 |
As last step, check if portage has removed any of the symlinks created |
54 |
above, and if yes, recreate them. |
55 |
|
56 |
|
57 |
|
58 |
|
59 |
-- |
60 |
Andreas K. Hüttel |
61 |
dilfridge@g.o |
62 |
Gentoo Linux developer |
63 |
(council, toolchain, base-system, perl, libreoffice) |