commit:     bde5de0d1302350370804788f7e7353a7fe2b20d
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri May 14 19:33:14 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri May 14 19:33:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=bde5de0d

sys-devel/gcc-11_pre20210226: bump SI-based snapshot

Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-devel/gcc/Manifest                  |   1 +
 sys-devel/gcc/gcc-11_pre20210226.ebuild | 108 ++++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index cbcbd2a082..a36c33e58f 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -34,4 +34,5 @@ DIST gcc-9.2.0.tar.xz 70607648 BLAKE2B 
41a5e148f9a6857d6599679964c203533f76f330a
 DIST gcc-cygwinports-0de6b2ae6b6577eb0891a7ca8d551bdfa79bf5e8.tar.gz 20183 
BLAKE2B 
dc9a4c78f98851ed77720d4c06d3fbf9f2d7d0e81a825cc89026994060fd29214f111fd3a52cec6518417cab2be89caf4a844a0869136287f174147ca7a6ebf3
 SHA512 
d01ee85a1327e7f6f16b3c2de6659699764f365215bd3e58247c5c65594153b9232bdc43ff89420cac75ad908ed39c7ff9fa4006818f5dd209b792d34d9ae7de
 DIST gcc-cygwinports-11fa2eec213324d64673ad41358f726f6523667f.tar.gz 23047 
BLAKE2B 
83e44a2eed9e134ea2531e3ecff4479f4d305a55d14729ed11c91199c1f56ec7e2d4df48d56de11ba43a9e936019943edc370a04a26f6b3bfd5616230feeffa5
 SHA512 
f8cbf3b2b20c1950d0984fe672536d92f7d05b065495d93205d72b7578e696847f074430c6e642668d1c0c26fa9d98a4dfd3fce7030d45f2d04f80499437587c
 DIST gcc-cygwinports-f44d762eb3551ea0d81aa8e4b428bcb7caabb628.tar.gz 32780 
BLAKE2B 
364353bf379a2a950050148caf2cef86239f2418a98f72b3edec4cf56e43e7d07601f4d1ca8103c691ddddff0fca96a6a8c728e2e50bca373c34441bdc7505be
 SHA512 
d5bc37965745fa32a3ddd357e658bd066d4aadf19eee7a30047f4dc6f47450d320e33cbbe4bf22fa6f5e30f7f41ec6ec3a250df56760a38df0f14fea3e34a83e
+DIST gcc-pre11-apple-si-a172e87.tar.gz 125440972 BLAKE2B 
45477b580b9637abbb1d5182bf5821b3acff4ad71c13be508e598df666fdc3621c44b234e7ca18ff0f82236b5a7a05901d790a42e671b7152e2605ccdf6766ed
 SHA512 
52ce4d88a6c471e193ec11003af336bcd608088bd0e6268ad6f51db89749404be8087a7088bad21482b34739bbcc650aeb997837a7aed640649bd076258016a9
 DIST gcc-pre11-apple-si-f1bedb9.tar.gz 124531876 BLAKE2B 
b7450b5b3cafce9f92e4f793439d767193aa609f924ae8a8d07dc353d9e64c6d2881252706ffec93ff91c1a3970a8688a3d9454b880e5d7587795ad284790fe7
 SHA512 
2cc21803e9236db234f31584aaabb503b7a9612b82ac54fac389aeb19c4e36d70f60e3660f63e35462f8a494862c88951f4d6434fad7e4dafc0f5a041e906b28

diff --git a/sys-devel/gcc/gcc-11_pre20210226.ebuild 
b/sys-devel/gcc/gcc-11_pre20210226.ebuild
new file mode 100644
index 0000000000..e423f88664
--- /dev/null
+++ b/sys-devel/gcc/gcc-11_pre20210226.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+GCC_TARBALL_SRC_URI="https://dev.gentoo.org/~grobian/distfiles/gcc-pre11-apple-si-a172e87.tar.gz";
+PATCH_GCC_VER="11.0.0"
+PATCH_VER="6"
+TOOLCHAIN_GCC_PV=11.0.1
+
+inherit toolchain
+
+#KEYWORDS="~ppc-macos ~x64-macos"
+
+RDEPEND=""
+BDEPEND="
+       kernel_linux? ( ${CATEGORY}/binutils )
+       kernel_Darwin? (
+               || ( ${CATEGORY}/binutils-apple ${CATEGORY}/native-cctools )
+       )"
+
+S="${WORKDIR}"/gcc-darwin-arm64-master-wip-apple-si
+
+src_prepare() {
+       has_version '>=sys-libs/glibc-2.32-r1' && rm -v 
"${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch"
+       toolchain_src_prepare
+
+       if use elibc_Cygwin; then
+               sed -e 
'/0001-share-mingw-fset-stack-executable-with-cygwin.patch/d' \
+                       -i "${WORKDIR}/gcc-${CYGWINPORTS_GITREV}/gcc.cygport" 
|| die
+       fi
+
+       # make sure 64-bits native targets don't screw up the linker paths
+       eapply -p0 "${FILESDIR}"/no-libs-for-startfile.patch
+       if use prefix; then
+               eapply -p0 "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
+               # try /usr/lib32 in 32bit profile on x86_64-linux (needs
+               # --enable-multilib), but this does make sense in prefix only
+               eapply -p0 "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
+       fi
+
+       # make it have correct install_names on Darwin
+       eapply -p1 "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
+
+       if [[ ${CHOST} == powerpc*-darwin* ]] ; then
+               # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
+               sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
+                       libgcc/config/t-slibgcc-darwin || die
+       fi
+
+       # fixup a what seems to be a typo, we need this at least to finish
+       # compilation on arm64-macos during bootstrap as gmp.h else won't be
+       # found
+       sed -i -e 's/ALL_SPPFLAGS/ALL_CPPFLAGS/' \
+               gcc/config/aarch64/t-aarch64 || die
+}
+
+src_configure() {
+       local myconf=()
+       case ${CTARGET}:" ${USE} " in
+               powerpc*-darwin*)
+                       # bug #381179
+                       filter-flags "-mcpu=*" "-mtune=*"
+                       # bug #657522
+                       # A bug in configure checks whether -no-pie works, but 
the
+                       # compiler doesn't pass -no-pie onto the linker if 
-fno-PIE
+                       # isn't passed, so the configure check always finds 
-no-pie
+                       # is accepted.  (Likewise, when -fno-PIE is passed, the
+                       # compiler passes -no_pie onto the linker.)
+                       # Since our linker doesn't grok this, avoid above 
checks to
+                       # be run
+                       # NOTE: later ld64 does grok -no_pie, not -no-pie (as 
checked)
+                       export gcc_cv_c_no_fpie=no
+                       export gcc_cv_no_pie=no
+               ;;
+               *-darwin20)
+                       # use sysroot with the linker, #756160
+                       export gcc_cv_ld_sysroot=yes
+                       ;;
+               *-solaris*)
+                       # todo: some magic for native vs. GNU linking?
+                       myconf+=( --with-gnu-ld --with-gnu-as 
--enable-largefile )
+                       # Solaris 11 defines this in its headers, but that 
causes a
+                       # mismatch whilst compiling, bug #657514
+                       export ac_cv_func_aligned_alloc=no
+                       export ac_cv_func_memalign=no
+                       export ac_cv_func_posix_memalign=no
+               ;;
+               i[34567]86-*-linux*:*" prefix "*)
+                       # to allow the linux-x86-on-amd64.patch become useful, 
we need
+                       # to enable multilib, even if there is just one 
multilib option.
+                       myconf+=( --enable-multilib )
+                       if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
+                               # we might be on x86_64-linux, but don't do 
cross-compile, so
+                               # tell the host-compiler to really create 
32bits (for stage1)
+                               # (real x86-linux-gcc also accept -m32).
+                               append-flags -m32
+                       fi
+               ;;
+       esac
+
+       # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
+       # least on Solaris, and AIX /bin/sh is way too slow,
+       # so force it to use $BASH (that portage uses) - it can't be EPREFIX
+       # in case that doesn't exist yet
+       export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
+       toolchain_src_configure "${myconf[@]}"
+}

Reply via email to