* [gentoo-commits] repo/gentoo:master commit in: media-libs/vidstab/, media-libs/vidstab/files/
@ 2019-02-12 21:44 Craig Andrews
0 siblings, 0 replies; only message in thread
From: Craig Andrews @ 2019-02-12 21:44 UTC (permalink / raw
To: gentoo-commits
commit: 71f514f4e7d513bf456b613649ce4e19879d21db
Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 12 21:44:16 2019 +0000
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Tue Feb 12 21:44:32 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71f514f4
media-libs/vidstab: Fix test failure with USE="-openmp"
Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
....1.0-fix-test_motiondetect-without-openmp.patch | 26 ++++++++++++++++++++++
media-libs/vidstab/vidstab-1.1.0-r1.ebuild | 1 +
2 files changed, 27 insertions(+)
diff --git a/media-libs/vidstab/files/vidstab-1.1.0-tests-1.1.0-fix-test_motiondetect-without-openmp.patch b/media-libs/vidstab/files/vidstab-1.1.0-tests-1.1.0-fix-test_motiondetect-without-openmp.patch
new file mode 100644
index 00000000000..88d260f429c
--- /dev/null
+++ b/media-libs/vidstab/files/vidstab-1.1.0-tests-1.1.0-fix-test_motiondetect-without-openmp.patch
@@ -0,0 +1,26 @@
+From a6438c4b3ea5a00f2896b903a4bda0a4efa241f4 Mon Sep 17 00:00:00 2001
+From: Craig Andrews <candrews@integralblue.com>
+Date: Tue, 12 Feb 2019 16:39:06 -0500
+Subject: [PATCH] Use OpenMP only if available in test_motiondetect
+
+Only call `omp_set_dynamic( 1 );` if `USE_OMP`
+
+Fixes `undefined reference to `omp_set_dynamic'` when not using OpenMP
+---
+ tests/test_motiondetect.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/test_motiondetect.c b/tests/test_motiondetect.c
+index 0f37def..125f4bd 100644
+--- a/tests/test_motiondetect.c
++++ b/tests/test_motiondetect.c
+@@ -19,7 +19,9 @@ void test_motionDetect(TestData* testdata){
+ int i;
+
+ int start = timeOfDayinMS();
++#ifdef USE_OMP
+ omp_set_dynamic( 1 );
++#endif
+ md.conf.numThreads=threads;
+
+ for(i=0; i<numruns; i++){
diff --git a/media-libs/vidstab/vidstab-1.1.0-r1.ebuild b/media-libs/vidstab/vidstab-1.1.0-r1.ebuild
index fd52d76ac3e..cf1db90cbdc 100644
--- a/media-libs/vidstab/vidstab-1.1.0-r1.ebuild
+++ b/media-libs/vidstab/vidstab-1.1.0-r1.ebuild
@@ -25,6 +25,7 @@ IUSE="openmp cpu_flags_x86_sse2"
PATCHES=(
"${FILESDIR}/vidstab-1.1.0-tests-should-exit-with-code-0-on-success.patch"
"${FILESDIR}/vidstab-1.1.0-tests-use-sse2-only-if-available.patch"
+ "${FILESDIR}/vidstab-1.1.0-tests-1.1.0-fix-test_motiondetect-without-openmp.patch"
)
src_prepare() {
# USE=cpu_flags_x86_sse2 instead
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-12 21:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-12 21:44 [gentoo-commits] repo/gentoo:master commit in: media-libs/vidstab/, media-libs/vidstab/files/ Craig Andrews
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox