commit:     c63dfeafaa5062f90b4dde3c335acd4df03c5dc4
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  7 21:59:17 2024 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri Jun  7 21:59:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c63dfeaf

dev-util/spirv-llvm-translator: Fix some tests

Closes: https://bugs.gentoo.org/933775
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 dev-util/spirv-llvm-translator/spirv-llvm-translator-15.0.0-r1.ebuild | 3 +++
 dev-util/spirv-llvm-translator/spirv-llvm-translator-16.0.0-r1.ebuild | 3 +++
 dev-util/spirv-llvm-translator/spirv-llvm-translator-17.0.0-r2.ebuild | 3 +++
 dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.0.ebuild    | 3 +++
 4 files changed, 12 insertions(+)

diff --git 
a/dev-util/spirv-llvm-translator/spirv-llvm-translator-15.0.0-r1.ebuild 
b/dev-util/spirv-llvm-translator/spirv-llvm-translator-15.0.0-r1.ebuild
index bdefd6ed9703..29e6a6ab500f 100644
--- a/dev-util/spirv-llvm-translator/spirv-llvm-translator-15.0.0-r1.ebuild
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-15.0.0-r1.ebuild
@@ -40,6 +40,9 @@ PATCHES=( "${FILESDIR}"/${PN}-15.0.0-intel-capability.patch )
 src_prepare() {
        append-flags -fPIC
        cmake_src_prepare
+
+       # https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2555
+       sed -i -e 's/%triple/x86_64-unknown-linux-gnu/' test/DebugInfo/X86/*.ll 
|| die
 }
 
 src_configure() {

diff --git 
a/dev-util/spirv-llvm-translator/spirv-llvm-translator-16.0.0-r1.ebuild 
b/dev-util/spirv-llvm-translator/spirv-llvm-translator-16.0.0-r1.ebuild
index 194b82f52b5f..fb3e58b930a6 100644
--- a/dev-util/spirv-llvm-translator/spirv-llvm-translator-16.0.0-r1.ebuild
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-16.0.0-r1.ebuild
@@ -44,6 +44,9 @@ PATCHES=(
 src_prepare() {
        append-flags -fPIC
        cmake_src_prepare
+
+       # https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2555
+       sed -i -e 's/%triple/x86_64-unknown-linux-gnu/' test/DebugInfo/X86/*.ll 
|| die
 }
 
 src_configure() {

diff --git 
a/dev-util/spirv-llvm-translator/spirv-llvm-translator-17.0.0-r2.ebuild 
b/dev-util/spirv-llvm-translator/spirv-llvm-translator-17.0.0-r2.ebuild
index 966037d0d746..f88cc260c9b8 100644
--- a/dev-util/spirv-llvm-translator/spirv-llvm-translator-17.0.0-r2.ebuild
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-17.0.0-r2.ebuild
@@ -43,6 +43,9 @@ PATCHES=(
 src_prepare() {
        append-flags -fPIC
        cmake_src_prepare
+
+       # https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2555
+       sed -i -e 's/%triple/x86_64-unknown-linux-gnu/' test/DebugInfo/X86/*.ll 
|| die
 }
 
 src_configure() {

diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.0.ebuild 
b/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.0.ebuild
index acf2b6f81bde..63f846f23177 100644
--- a/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.0.ebuild
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.0.ebuild
@@ -41,6 +41,9 @@ PATCHES=(
 src_prepare() {
        append-flags -fPIC
        cmake_src_prepare
+
+       # https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2555
+       sed -i -e 's/%triple/x86_64-unknown-linux-gnu/' test/DebugInfo/X86/*.ll 
|| die
 }
 
 src_configure() {

Reply via email to