toolchain.eclass

Name

toolchain.eclass -- Common code for sys-devel/gcc ebuilds

Supported EAPIs

7 8

Exported Phases

  • pkg_setup

  • pkg_postrm

  • pkg_postinst

  • src_unpack

  • src_compile

  • src_test

  • src_install

  • src_prepare

  • src_configure

  • pkg_pretend

Functions

tc_version_is_at_least ver1 [ver2]

General purpose version check. Without a second argument, matches up to minor version (x.x.x).

tc_version_is_between ver1 ver2

General purpose version range check. Note that it matches up to but NOT including the second version

Variables

TOOLCHAIN_GCC_PV

Used to override GCC version. Useful for e.g. live ebuilds or snapshots. Defaults to ${PV}.

TOOLCHAIN_USE_GIT_PATCHES

Used to force fetching patches from git. Useful for non-released versions of GCC where we don't want to keep creating patchset tarballs for a new release series (e.g. suppose 12.0 just got released, then adding snapshots for 13.0, we don't want to create new patchsets for every single 13.0 snapshot, so just grab patches from git each time if this variable is set).

TOOLCHAIN_PATCH_DEV

Indicate the developer who hosts the patchset for an ebuild.

TOOLCHAIN_PATCH_SUFFIX

Used to override compression used for for patchsets. Default is xz for EAPI 8+ and bz2 for older EAPIs.

TOOLCHAIN_SET_S ?= yes

Used to override value of S for snapshots and such. Mainly useful if needing to set GCC_TARBALL_SRC_URI.

Maintainers

Toolchain Ninjas <toolchain@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/