Clang/Desktop profile
Some users may wish to use LLVM as a desktop system, because of bug #913225 it is currently not possible to officialy support these in Gentoo, however it is still possible to create them locally using the follow steps.
Create a local repository
A local repository is needed for the custom profile to be created.
First, install app-eselect/eselect-repository:
root #
emerge --ask app-eselect/eselect-repository
Create a local repository:
root #
eselect repository create local
Set up the repository layout
It's recommended to make use of a Portage extension for the repository as it simplifies configuration:
masters = gentoo
thin-manifests = true
# Needed for profiles parent with repo syntax
profile-formats = portage-2
Create the profile
profiles.desc
profiles.desc provides a list of profiles for eselect profile list to consume:
# Adjust the list below as needed, no need to make them all
amd64 llvm-desktop exp
amd64 llvm-plasma-systemd exp
amd64 llvm-plasma-split-usr exp
The profile itself
Create the following directories (adjust as needed):
- /var/db/repos/local/profiles/llvm-desktop
- /var/db/repos/local/profiles/llvm-plasma-systemd
- /var/db/repos/local/profiles/llvm-plasma-split-usr
Use the following command:
root #
mkdir -p /var/db/repos/local/profiles/llvm-desktop
llvm-desktop
Create the following files:
8
gentoo:default/linux/amd64/23.0/llvm
gentoo:targets/desktop
llvm-plasma-systemd
Create the following files:
8
gentoo:default/linux/amd64/23.0/llvm
gentoo:targets/desktop/plasma
gentoo:targets/systemd
llvm-plasma-split-usr
Create the following files:
8
gentoo:default/linux/amd64/23.0/llvm
gentoo:features/split-usr
gentoo:targets/desktop/plasma
Selecting the profile
The new profiles should now appear in eselect profile list. Enjoy!
TODO
Add more profiles