diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2022-04-15 01:04:13 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2022-04-15 01:04:13 +0000 |
commit | 8d8dee8224db0dc60a1b1bcf436efcd458816295 (patch) | |
tree | 43414ed827cee8cc2b4738faebaf36da3fbe259f | |
parent | 2022-04-15 00:19:29 UTC (diff) | |
parent | sys-devel/gcc: add 11.3.0_rc20220414 (diff) | |
download | gentoo-8d8dee8224db0dc60a1b1bcf436efcd458816295.tar.gz gentoo-8d8dee8224db0dc60a1b1bcf436efcd458816295.tar.bz2 gentoo-8d8dee8224db0dc60a1b1bcf436efcd458816295.zip |
Merge updates from master
-rw-r--r-- | dev-libs/libgcrypt/libgcrypt-1.10.1.ebuild | 4 | ||||
-rw-r--r-- | dev-libs/libgcrypt/libgcrypt-1.9.4-r1.ebuild | 4 | ||||
-rw-r--r-- | eclass/toolchain.eclass | 16 | ||||
-rw-r--r-- | sys-devel/gcc/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-11.3.0_rc20220414.ebuild | 25 |
5 files changed, 43 insertions, 7 deletions
diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.1.ebuild index fd9f8ebaf6e8..00b641cf2b84 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.1.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.1.ebuild @@ -14,7 +14,7 @@ SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )" LICENSE="LGPL-2.1 MIT" SLOT="0/20" # subslot = soname major version KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="+asm cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc +o-flag-munging static-libs" +IUSE="+asm custom-cflags cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc static-libs" # Build system only has --disable-arm-crypto-support right now # If changing this, update src_configure logic too. @@ -92,7 +92,7 @@ multilib_src_configure() { $(use_enable cpu_flags_x86_sse4_1 sse41-support) # required for sys-power/suspend[crypt], bug 751568 $(use_enable static-libs static) - $(use_enable o-flag-munging O-flag-munging) + $(use_enable !custom-cflags O-flag-munging) # disabled due to various applications requiring privileges # after libgcrypt drops them (bug #468616) diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.4-r1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.9.4-r1.ebuild index cf2e518df50e..8a228b0fe2c4 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.9.4-r1.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.9.4-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )" LICENSE="LGPL-2.1 MIT" SLOT="0/20" # subslot = soname major version KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="+asm cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc o-flag-munging static-libs" +IUSE="+asm custom-cflags cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc static-libs" # Build system only has --disable-arm-crypto-support right now # If changing this, update src_configure logic too. @@ -93,7 +93,7 @@ multilib_src_configure() { $(use_enable cpu_flags_x86_sse4_1 sse41-support) # required for sys-power/suspend[crypt], bug 751568 $(use_enable static-libs static) - $(use_enable o-flag-munging O-flag-munging) + $(use_enable !custom-cflags O-flag-munging) # disabled due to various applications requiring privileges # after libgcrypt drops them (bug #468616) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 8788e72efebb..383e533bf8b4 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -461,9 +461,19 @@ toolchain_src_prepare() { gcc_version_patch local actual_version=$(< "${S}"/gcc/BASE-VER) - if [[ "${GCC_RELEASE_VER}" != "${actual_version}" ]] ; then - eerror "'${S}/gcc/BASE-VER' contains '${actual_version}', expected '${GCC_RELEASE_VER}'" - die "Please set 'TOOLCHAIN_GCC_PV' to '${actual_version}'" + if [[ ${PV} == *_rc* ]] ; then + # Mangle e.g. 11.2.1 -> 11.3.0 + # Upstream don't update the file until the final release + local actual_version_mangled=$(ver_cut 1 ${actual_version}).$(($(ver_cut 3 ${actual_version}) + 1)).$(($(ver_cut 5 ${actual_version}) + 1)) + local gcc_release_ver_mangled=$(ver_cut 1 ${GCC_RELEASE_VER}).$(($(ver_cut 3 ${GCC_RELEASE_VER}) + 2)).$(($(ver_cut 5 ${GCC_RELEASE_VER}) + 1)) + else + local actual_version_mangled=${actual_version} + local gcc_release_ver_mangled=${GCC_RELEASE_VER} + fi + + if [[ "${actual_version_mangled}" != "${gcc_release_ver_mangled}" ]] ; then + eerror "'${S}/gcc/BASE-VER' contains '${actual_version_mangled}', expected '${gcc_release_ver_mangled}'" + die "Please set 'TOOLCHAIN_GCC_PV' to '${actual_version_mangled}'" fi # >= gcc-4.3 doesn't bundle ecj.jar, so copy it diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index 7f79d51acfb1..1fe4dd2eb4f9 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -9,6 +9,7 @@ DIST gcc-11-20220115.tar.xz 75676672 BLAKE2B 12171fd97731dbca67f13cc2a3a3a3989c2 DIST gcc-11.2.0-musl-patches-1.tar.bz2 2999 BLAKE2B 3e36bbf2f93fdce15e20f807fa262f7a7abbde85b6f6b4e1383f6eccd8a53d876687d56cde83a80cde8a50e15bec407a1212aa0c85520892563e3d5ef7aaca98 SHA512 21483912a7b152f27db82d837a4cf91f2552d5fe238702aeca0c0dd8c7d3695bc70d8794c94a19106df28e053baf14c38433ca8e38e849082b76273cb51f2384 DIST gcc-11.2.0-patches-1.tar.bz2 11537 BLAKE2B 9dd791ada244c9b70b8b99f9f305a688c248134715ed1b26d406e53b114983faae6873cdc521497164388d24d5f61c199e98df146bc02f5578e877295bcf5c82 SHA512 6539efc60c656d0798a5896dc1b944ed69914b815102c7a1c10bdba4ef935abd326b01309f38316e121f1ed90ceb2abcaf65df6af116892daad829ac2623cefc DIST gcc-11.2.0.tar.xz 80888824 BLAKE2B 69b61234ac436edfea2933df68c434a2ce7aa4454ef4da573e82587e1a42dc420189e949cfdadaf4cb37fc0de9674822210a95b77ff03aca0dbedfe67df19cc6 SHA512 d53a0a966230895c54f01aea38696f818817b505f1e2bfa65e508753fcd01b2aedb4a61434f41f3a2ddbbd9f41384b96153c684ded3f0fa97c82758d9de5c7cf +DIST gcc-11.3.0-RC-20220414.tar.xz 81151480 BLAKE2B 31eb90d3608f54b5e1af47ef692d84f45f734ac1dfc971bba73c8def98a489f3dfdac05ec825d9e09928ef372b1006887d8c61259a691accde2a371e4f6007ea SHA512 7e5399726bb44d142a3f263a24b8875001a9d177fc563cd631ffcb34b026f8ccdf3d9c95b4af248075a622fbe2a8a0ecacd3c951c30168997b323673456ce7f1 DIST gcc-11.3.0-musl-patches-1.tar.bz2 3997 BLAKE2B 5ca064cc78b067f4a7822fa0341c37ae03c8024f871d2e274e481a583afa96c36e291be93fbdd633f203260ae2ea9ac1d45f666d134bac75bc9a715a369d7374 SHA512 0ab239c66cf62a737266377c19b8dda6af6df56380f6731c2c17f3e82778e7e023a68d31728490eea3ad946f4b71d4cab363a75548f74b4b7f653972469d9e91 DIST gcc-11.3.0-patches-3.tar.bz2 13567 BLAKE2B dba270d74b7a598e0108be0be7ff8cf01899d044ca4be9938cd5324465dc00c9e5cac4ffb4b6c1bdcdb824d75a7577eed63ae724c7e2887a19708992aca10f26 SHA512 7919b37900bbc2493564bc70f7911cf03efb857ff09c2b13280018fb54c48d8be42e35b649e69594a3ce61d51de847a8d4f75f794ce1dc50db3a700831b6a1e7 DIST gcc-11.3.0-patches-4.tar.bz2 14030 BLAKE2B cdd555f329c7c0b993cd3527489681bfcc2162db0997611b66337e6b287356761c7deccd3b9f9bb8980a32df0574017a52c5e445e24db746757d87ffccb1ea89 SHA512 cb227599d01734ae9f9fc7ae2c8dd4cae1da80d6ab398ec6f112535239ac76ce8e91fbac88e19c2f75cb08ab75f966c1d1ad4af80ede67e953fbbafc7baefa58 diff --git a/sys-devel/gcc/gcc-11.3.0_rc20220414.ebuild b/sys-devel/gcc/gcc-11.3.0_rc20220414.ebuild new file mode 100644 index 000000000000..9fe0d9e946e3 --- /dev/null +++ b/sys-devel/gcc/gcc-11.3.0_rc20220414.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PATCH_VER="4" +PATCH_GCC_VER="11.3.0" +MUSL_VER="1" +MUSL_GCC_VER="11.3.0" +inherit toolchain + +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# 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[cet(-)?]" + +src_prepare() { + toolchain_src_prepare + + eapply_user +} |