commit:     024e9c947773e6e5800f126c8b8ce62dc21cf2a9
Author:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 23 02:23:41 2018 +0000
Commit:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
CommitDate: Mon Apr 23 02:36:52 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=024e9c94

dev-util/spirv-tools: Restrict tests

The tests go through all symbols in the generated libraries/executables, and 
check the symbol names against a hardcoded regular expression.
If an unmatching symbol is found, the test fails. This is easily hit if a user 
sets a compiler flag that causes symbols to change, such as PIC

Fixes: https://bugs.gentoo.org/651626

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild | 3 +++
 dev-util/spirv-tools/spirv-tools-9999.ebuild      | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild 
b/dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild
index fa84f40f6b7..f1227eb734c 100644
--- a/dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild
+++ b/dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild
@@ -12,6 +12,9 @@ 
SRC_URI="https://github.com/KhronosGroup/SPIRV-Tools/archive/v${PV}.tar.gz -> ${
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
+# Tests fail upon finding symbols that do not match a regular expression
+# in the generated library. Easily hit with non-standard compiler flags
+RESTRICT="test"
 
 RDEPEND=""
 DEPEND="dev-util/spirv-headers"

diff --git a/dev-util/spirv-tools/spirv-tools-9999.ebuild 
b/dev-util/spirv-tools/spirv-tools-9999.ebuild
index e0e2f53d0e2..9cd36468340 100644
--- a/dev-util/spirv-tools/spirv-tools-9999.ebuild
+++ b/dev-util/spirv-tools/spirv-tools-9999.ebuild
@@ -12,6 +12,9 @@ SRC_URI=""
 
 LICENSE="Apache-2.0"
 SLOT="0"
+# Tests fail upon finding symbols that do not match a regular expression
+# in the generated library. Easily hit with non-standard compiler flags
+RESTRICT="test"
 
 RDEPEND=""
 DEPEND="dev-util/spirv-headers"

Reply via email to