logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 17d59c9921b06132ec9a79aea8e1e648757b8f1b
parent 74c9653aac13c92556dff31c114b7edc7c8200f7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 17 Aug 2024 20:40:17 +0200

sys-devel/gcc-x86_64-bunnix: add 13.0.0.9999

Diffstat:

Asys-devel/gcc-x86_64-bunnix/gcc-x86_64-bunnix-13.0.0.9999.ebuild49+++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+), 0 deletions(-)

diff --git a/sys-devel/gcc-x86_64-bunnix/gcc-x86_64-bunnix-13.0.0.9999.ebuild b/sys-devel/gcc-x86_64-bunnix/gcc-x86_64-bunnix-13.0.0.9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit toolchain + +EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/gcc" +EGIT_BRANCH="bunnix" + +BDEPEND=">=sys-devel/binutils-x86_64-bunnix-2.30" + +#if [[ ${CATEGORY} != cross-* ]] ; then +# # Technically only if USE=hardened *too* right now, but no point in complicating it further. +# # If GCC is enabling CET by default, we need glibc to be built with support for it. +# # bug #830454 +# RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )" +# DEPEND="${RDEPEND}" +# BDEPEND=">=${CATEGORY}/binutils-2.30[cet(-)?]" +#fi + +RESTRICT="test" + +export CTARGET="x86_64-bunnix" + +src_unpack() { + git-r3_src_unpack + + # Needed for gcc --version to include the upstream commit used + # rather than only the commit after we apply our patches. + # It includes both with this. + echo "${EGIT_VERSION}" > "${S}"/gcc/REVISION || die + + default +} + +src_prepare() { + local p upstreamed_patches=( + # add them here + ) + for p in "${upstreamed_patches[@]}"; do + rm -v "${WORKDIR}/patch/${p}" || die + done + + toolchain_src_prepare + + eapply_user +}