summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* toolchain.eclass: start work on eclassdocsSam James2022-05-131-6/+54
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: followup style tweaksSam James2022-05-131-6/+12
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: style cleanupsSam James2022-05-131-216/+278
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: filter -fsanitize=*Sam James2022-05-121-0/+2
| | | | | | Doesn't make any sense for building GCC. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: tweak .xz versions for 12Sam James2022-04-251-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/gcc: add 11.3.0, rename 11.2.1_pre9999 -> 11.3.1_pre9999Sam James2022-04-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: fix S definitionSam James2022-04-191-1/+3
| | | | | | | S isn't _blank_ by default. Fixes: 5a7ea1cef34c3c3026a999d566bc4badc1dccc9c Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: allow overriding S in ebuildsSam James2022-04-191-10/+12
| | | | | | Useful for RCs-but-we-pretend-they're-not-RCs. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: default to .xz for newer patch tarballsSam James2022-04-191-7/+15
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: fix zstd RDEPEND for USE=zstd on gccSam James2022-04-191-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: support GCC pre-releases for new branchesSam James2022-04-191-3/+6
| | | | | | Needed for GCC 12. Signed-off-by: Sam James <sam@gentoo.org>
* Revert "toolchain.eclass: handle RCs correctly"Sam James2022-04-151-13/+3
| | | | | | | | The install paths are still mixed with 11.2.1/11.3.0. Bleh. This reverts commit 0768e37e87fd7b73566a4f1b658f941b575bca12. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: handle RCs correctlySam James2022-04-151-3/+13
| | | | | | The base GCC-VER file doesn't get updated until the final release. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: Use UID 0 instead of rootUlrich Müller2022-03-281-1/+1
| | | | | Bug: https://bugs.gentoo.org/595908 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: canonical variable orderingDavid Seifert2022-02-011-9/+14
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: remove EAPI 5 and 6David Seifert2022-02-011-70/+40
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: remove freebsd-libcDavid Seifert2022-01-021-6/+0
| | | | | Closes: https://github.com/gentoo/gentoo/pull/23628 Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: remove uclibcDavid Seifert2022-01-021-37/+3
| | | | | Closes: https://bugs.gentoo.org/820905 Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: use HTTPS for snapshotsSam James2021-12-281-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add myself to GCC patches sourcesDavid Seifert2021-11-281-5/+9
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: enable CET by default on hardened for >= gcc 11.2.1Sam James2021-11-271-0/+5
| | | | | | | | | | 11.2.1 will include a patch to enable CET by default if: - USE=cet is enabled, and - USE=hardened is enabled, and - building for x86_64. See: https://github.com/gentoo/gentoo/pull/21588 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add USE=cet supportDave Hughes2021-11-271-0/+5
| | | | | | | See: https://github.com/gentoo/gentoo/pull/21588 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Dave Hughes <davidhughes205@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: switch snapshot prefix _alpha → _pDavid Seifert2021-11-241-3/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: handle empty musl 'nocross' patches dirSam James2021-11-211-0/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/gcc: import musl mechanisms prepared by sam_ from ::musl overlayAndreas K. Hüttel2021-11-211-1/+17
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* toolchain.eclass: add sam to distfilesSam James2021-10-131-1/+1
| | | | | | | | slyfox has retired but I've got his distfiles mirrored in my devspace. Closes: https://bugs.gentoo.org/812278 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: Add minimal eclassdoc to enable parsingMichał Górny2021-09-211-1/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: pull virtual/libcrypt as a dependency for USE=sanitizeSergei Trofimovich2021-07-171-1/+8
| | | | | Closes: https://bugs.gentoo.org/802648 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: disable USE=vtv by defaultSergei Trofimovich2021-07-171-9/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: drop pre-gcc-4.2 support codeSergei Trofimovich2021-07-171-167/+104
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: drop no-op IUSE=altivec flagSergei Trofimovich2021-07-171-6/+0
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: add an assert for minimum supported gccSergei Trofimovich2021-07-171-0/+5
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: add EAPI=8 supportSergei Trofimovich2021-07-171-13/+14
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: leave (unused) 'eutils' inherit only for EAPI=5|6|7Sergei Trofimovich2021-07-171-5/+3
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: support only EAPI=5 out of all 5*Sergei Trofimovich2021-07-171-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: standardize unsupported EAPI error messageSergei Trofimovich2021-07-151-2/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: add TODO to audit inheritsSam James2021-06-201-1/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add -march=znver3 manglingSergei Trofimovich2021-06-011-0/+1
| | | | | | Noticed as a gcc-9 build failure as it does not support -march=znver3. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/toolchain.eclass: disable USE=vtv on gcc-10 and aboveSergei Trofimovich2021-02-221-1/+10
| | | | | | | | | | USE=vtv has a few problems: - it's build system has a few quirks: bug #767706, bug #582524 - it's developed in gcc for a while Bug: https://bugs.gentoo.org/582524 Bug: https://bugs.gentoo.org/767706 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass: [QA] Revert multiple meaningless doc changesMichał Górny2020-12-281-7/+1
| | | | | | | | | | | Revert multiple meaningless eclass documentation changes, notably adding a lot of placeholders and documenting implementation details. These changes were aimed at silencing (valid) documentation warnings without actually providing valuable documentation to the end users. While some of these changes were beneficial, it would take a lot of effort to review them all and the author is unwilling to fix his mistakes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/toolchain: fix double @MAINTAINERAaron Bauman2020-12-161-1/+1
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* eclass/toolchain: fixup documentationAaron Bauman2020-12-151-1/+7
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* toolchain.eclass: add USE=custom-cflags for gcc-11Sergei Trofimovich2020-11-081-6/+13
| | | | | | | | | | | | | Sometimes it's useful to build gcc quickly with CFLAGS=-O0 as a smoke test for sanity. CFLAGS=-O3 should also generally work as a code generation stres test. But not in general case. Some options like -flto would probably not work as is. Let's allow users to experiment with gcc flags if they really want to. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eutils.eclass: Deprecate use_if_iuse().Ulrich Müller2020-09-121-34/+43
| | | | | | | | The function is not called from any ebuilds in the gentoo repository. Inline it as "in_iuse foo && use foo" in other eclasses, or define it as a local function when it is called multiple times. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: add rv32 abi namesAndreas K. Hüttel2020-09-021-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* toolchain.eclass: fix relocation of libgccjitSergei Trofimovich2020-08-241-0/+6
| | | | | | | | | | | | | | | | | Before the change libgccjit.so was installed to /usr/lib. Relocation code in toolchain.eclass:gcc_movelibs() only handles /usr/$(get_libdir) -> $LIBDIR location. As a result gcc did not relocate libraries to version-speciifc firectory: caused collisions and installed library into wrong LIBDIR. The change handles libgccjit special case by relocating it explicitly. Reported-by: Michał Górny Bug: https://bugs.gentoo.org/583010 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: always enable --with-long-double-128 for glibc targetsSergei Trofimovich2020-08-201-0/+8
| | | | | | | | | | | | | | | Unless overridden glibc enables 128-bit 'long double' for glibc 2.4 and above. But with crossdev change 7283a01 ("set --without-headers by default") we don't install any headers for stage1-gcc. As a result gcc pessimistically disables 128-bit 'long double'. The change enables --with-long-double-128 for glibc targets for stage1-gcc. Reported-by: hanetzer@startmail.com Closes: https://bugs.gentoo.org/738248 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: stop installing /usr/bin/c89 and /usr/bin/c99Sergei Trofimovich2020-08-191-15/+0
| | | | | | | | Ownership of /usr/bin/c89 and /usr/bin/c99 was switched to sys-devel/gcc-config-2.3.1. Closes: https://bugs.gentoo.org/728722 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: raise minimum gcc-config up to 2.3Sergei Trofimovich2020-08-071-1/+1
| | | | | | | | | | In #736040 gcc-config-1.9 was not able to handle gcc-10 paths. Let's raise lower bound to minimum stable version currently in ::gentoo. Reported-by: Dennis Nezic Bug: https://bugs.gentoo.org/736040 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: drop java binary renames for <gcc-4Sergei Trofimovich2020-07-311-41/+0
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>