commit:     f683b84828b3dcaec7b67743f2ef34bf16b199f1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 18:24:05 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 27 18:25:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f683b848

dev-embedded/libftdi: fix tests w/o libftdi installed

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-embedded/libftdi/{libftdi-1.5.ebuild => libftdi-1.5-r1.ebuild} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-embedded/libftdi/libftdi-1.5.ebuild 
b/dev-embedded/libftdi/libftdi-1.5-r1.ebuild
similarity index 94%
rename from dev-embedded/libftdi/libftdi-1.5.ebuild
rename to dev-embedded/libftdi/libftdi-1.5-r1.ebuild
index cd5cc4c3539..22e90fb4ca6 100644
--- a/dev-embedded/libftdi/libftdi-1.5.ebuild
+++ b/dev-embedded/libftdi/libftdi-1.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -62,11 +62,12 @@ src_configure() {
 
 src_test() {
        cd "${BUILD_DIR}/test" || die
-       ./test_libftdi1 -l all || die
+       LD_LIBRARY_PATH="${BUILD_DIR}/src" ./test_libftdi1 -l all || die
 }
 
 src_install() {
        cmake_src_install
+
        use python && python_optimize
        dodoc AUTHORS ChangeLog README TODO
 

Reply via email to