dev-libs/rocr-runtime: fix compilation with gcc-15

Apply the same patch as for 6.3.0.

Closes: https://bugs.gentoo.org/947640
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40027
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sv. Lockal
2025-01-07 15:46:38 +00:00
committed by Sam James
parent b761d8281f
commit 802a037f8d
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -24,6 +24,7 @@ PATCHES=(
"${FILESDIR}/${PN}-5.7.1-extend-isa-compatibility-check.patch"
"${FILESDIR}/${PN}-6.1.0-musl.patch"
"${FILESDIR}/${PN}-6.1.0-ld-lld.patch"
"${FILESDIR}/${PN}-6.1.2-gcc15-stdint.patch"
)
LICENSE="MIT"

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -47,7 +47,7 @@ src_prepare() {
cd "${S}/runtime/hsa-runtime" || die
eapply "${FILESDIR}/${PN}-4.3.0_no-aqlprofiler.patch"
eapply "${FILESDIR}/${PN}-5.7.1-extend-isa-compatibility-check.patch"
eapply "${FILESDIR}/${PN}-6.2.2-gcc15-stdint.patch"
eapply "${FILESDIR}/${PN}-6.1.2-gcc15-stdint.patch"
# Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ...
sed -e "s:-O2:--rocm-path=${EPREFIX}/usr/lib/ -O2:" -i image/blit_src/CMakeLists.txt || die