summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2020-09-07 14:50:06 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2020-09-07 14:50:19 +0200
commitc5cc1ae4ac02761eb3a638ba8138e542814bdf60 (patch)
tree0a53f677e63c5cc6ef127b8ae53ca82d16a69be2 /media-gfx/nvidia-texture-tools
parentapp-admin/exo: remove old (diff)
downloadgentoo-c5cc1ae4ac02761eb3a638ba8138e542814bdf60.tar.gz
gentoo-c5cc1ae4ac02761eb3a638ba8138e542814bdf60.tar.bz2
gentoo-c5cc1ae4ac02761eb3a638ba8138e542814bdf60.zip
media-gfx/nvidia-texture-tools: fix test datapath handling
Closes: https://bugs.gentoo.org/740766 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'media-gfx/nvidia-texture-tools')
-rw-r--r--media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.1.2-test_path.patch29
-rw-r--r--media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild5
2 files changed, 33 insertions, 1 deletions
diff --git a/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.1.2-test_path.patch b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.1.2-test_path.patch
new file mode 100644
index 000000000000..270147823b28
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.1.2-test_path.patch
@@ -0,0 +1,29 @@
+From 4c95dc87165a439698f63c3861c7c17b1fe2193a Mon Sep 17 00:00:00 2001
+From: Bernard Cafarelli <bernard.cafarelli@gmail.com>
+Date: Mon, 7 Sep 2020 14:29:22 +0200
+Subject: [PATCH] Fix data testsuite path
+
+Add separator between base path and set path if base path is set
+
+Fixes #299
+---
+ src/nvtt/tests/testsuite.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/nvtt/tests/testsuite.cpp b/src/nvtt/tests/testsuite.cpp
+index 9737807..06ab9d1 100644
+--- a/src/nvtt/tests/testsuite.cpp
++++ b/src/nvtt/tests/testsuite.cpp
+@@ -509,6 +509,9 @@ int main(int argc, char *argv[])
+ nvtt::Context context;
+ context.enableCudaAcceleration(!nocuda);
+
++ if (basePath.length() > 0) {
++ basePath.appendSeparator();
++ }
+ basePath.append(set.basePath);
+
+ FileSystem::changeDirectory(basePath.str());
+--
+2.28.0
+
diff --git a/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild
index b2db5d4e20c4..8a3d4922c2b2 100644
--- a/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild
+++ b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild
@@ -26,7 +26,10 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
"
-PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-cmake.patch
+ "${FILESDIR}"/${P}-test_path.patch
+ )
DOCS=( ChangeLog README.md )
pkg_pretend() {