diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-04-30 08:09:39 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-04-30 08:10:30 +0100 |
commit | 78fc6e62d719bf8fd669ad951b1295a5e0141a17 (patch) | |
tree | ddb99b97a08f9bf5611f37759a30fc7f2ba5565e /sys-devel/gcc/gcc-10.3.0.ebuild | |
parent | sys-devel/kgcc64: bump up to 11.1.0 (diff) | |
download | gentoo-78fc6e62d719bf8fd669ad951b1295a5e0141a17.tar.gz gentoo-78fc6e62d719bf8fd669ad951b1295a5e0141a17.tar.bz2 gentoo-78fc6e62d719bf8fd669ad951b1295a5e0141a17.zip |
sys-devel/gcc: fail if riscv32 patch does not exist
While at it fix patch name.
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-devel/gcc/gcc-10.3.0.ebuild')
-rw-r--r-- | sys-devel/gcc/gcc-10.3.0.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-devel/gcc/gcc-10.3.0.ebuild b/sys-devel/gcc/gcc-10.3.0.ebuild index 8cb8a15d5118..d262b1b0f2be 100644 --- a/sys-devel/gcc/gcc-10.3.0.ebuild +++ b/sys-devel/gcc/gcc-10.3.0.ebuild @@ -13,6 +13,9 @@ RDEPEND="" BDEPEND="${CATEGORY}/binutils" src_prepare() { - has_version '>=sys-libs/glibc-2.32-r1' && rm -v "${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch" + if has_version '>=sys-libs/glibc-2.32-r1'; then + rm -v "${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch" || die + fi + toolchain_src_prepare } |