diff options
author | Sam James <sam@gentoo.org> | 2023-06-03 00:39:18 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-06-03 01:48:00 +0100 |
commit | cfd6bbfe4c62cb4667bd43062c15831c3496a7ba (patch) | |
tree | 7eee6df53e5b4fb80fe190d74630820bc1e8cb2c /eclass | |
parent | net-fs/nfs-utils: fix path to sysctl in udev rules (diff) | |
download | gentoo-cfd6bbfe4c62cb4667bd43062c15831c3496a7ba.tar.gz gentoo-cfd6bbfe4c62cb4667bd43062c15831c3496a7ba.tar.bz2 gentoo-cfd6bbfe4c62cb4667bd43062c15831c3496a7ba.zip |
toolchain.eclass: drop legacy cygwin cruft
Cygwin supported already dropped from Prefix and the rest of the tree.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 87da1fba73c0..a0b647a5c67a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -526,13 +526,6 @@ gentoo_urls() { # The resulting filename of this tarball will be: # gcc-${SPECS_GCC_VER:-${GCC_RELEASE_VER}}-specs-${SPECS_VER}.tar.xz # -# CYGWINPORTS_GITREV -# If set, this variable signals that we should apply additional patches -# maintained by upstream Cygwin developers at github/cygwinports/gcc, -# using the specified git commit id there. The list of patches to -# apply is extracted from gcc.cygport, maintained there as well. -# This is done for compilers running on Cygwin, not for cross compilers -# with a Cygwin target. get_gcc_src_uri() { export PATCH_GCC_VER=${PATCH_GCC_VER:-${GCC_RELEASE_VER}} export MUSL_GCC_VER=${MUSL_GCC_VER:-${PATCH_GCC_VER}} @@ -584,11 +577,6 @@ get_gcc_src_uri() { fi fi - # Cygwin patches from https://github.com/cygwinports/gcc - [[ -n ${CYGWINPORTS_GITREV} ]] && \ - GCC_SRC_URI+=" elibc_Cygwin? ( https://github.com/cygwinports/gcc/archive/${CYGWINPORTS_GITREV}.tar.gz - -> gcc-cygwinports-${CYGWINPORTS_GITREV}.tar.gz )" - echo "${GCC_SRC_URI}" } @@ -675,7 +663,6 @@ toolchain_src_prepare() { do_gcc_gentoo_patches do_gcc_PIE_patches - do_gcc_CYGWINPORTS_patches if tc_is_live ; then BRANDING_GCC_PKGVERSION="${BRANDING_GCC_PKGVERSION}, commit ${EGIT_VERSION}" @@ -801,23 +788,6 @@ do_gcc_PIE_patches() { BRANDING_GCC_PKGVERSION="${BRANDING_GCC_PKGVERSION}, pie-${PIE_VER}" } -do_gcc_CYGWINPORTS_patches() { - [[ -n ${CYGWINPORTS_GITREV} ]] || return 0 - use elibc_Cygwin || return 0 - - local p d="${WORKDIR}/gcc-${CYGWINPORTS_GITREV}" - # readarray -t is available since bash-4.4 only, bug #690686 - local patches=( $( - for p in $( - sed -e '1,/PATCH_URI="/d;/"/,$d' < "${d}"/gcc.cygport - ); do - echo "${d}/${p}" - done - ) ) - einfo "Applying cygwin port patches ..." - eapply -- "${patches[@]}" -} - # configure to build with the hardened GCC specs as the default make_gcc_hard() { local gcc_hard_flags="" @@ -1197,9 +1167,6 @@ toolchain_src_configure() { *-musl*) needed_libc=musl ;; - *-cygwin) - needed_libc=cygwin - ;; x86_64-*-mingw*|*-w64-mingw*) needed_libc=mingw64-runtime ;; |