WD-40
WD-40 is a pun name for a feature in Gentoo profiles to disable Rust being built on the system. Some profiles include this by default, such as default/linux/x86/23.0/i486 and default/linux/m68k/23.0 where Rust isn't supported upstream currently.
Disabling Rust on any profile
Some users may wish to mask Rust on their profile of choice, this can be done by following the sections below.
This example will use default/linux/amd64/23.0/desktop but any profile can be substituted based on the user's wishes.
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 wd40-desktop stable
The profile itself
Create the following directories (adjust as needed):
- /var/db/repos/local/profiles/wd40-desktop
Use the following command:
root #
mkdir -p /var/db/repos/local/profiles/wd40-desktop
wd40-desktop
Create the following files:
8
gentoo:default/linux/amd64/23.0/desktop
gentoo:features/wd40