Patchwork [meta-oe] libhugetlbfs: kill /opt usage

login
register
mail settings
Submitter Koen Kooi
Date Oct. 18, 2013, 8:48 a.m.
Message ID <1382086086-4070-1-git-send-email-koen.kooi@linaro.org>
Download mbox | patch
Permalink /patch/60221/
State Accepted, archived
Commit be7ba2fcf1651e3fb01842925100fd4cddfc7f1f
Headers show

Comments

Koen Kooi - Oct. 18, 2013, 8:48 a.m.
From: Koen Kooi <koen.kooi@linaro.org>

/opt should never be used for packages built by OE, so install the tests in a more standard location.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
index 24480c3..d29dee1 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
@@ -37,8 +37,8 @@  do_configure() {
 
 do_install() {
         oe_runmake PREFIX=${prefix} DESTDIR=${D}  \
-          INST_TESTSDIR32=/opt/libhugetlbfs/tests \
-          INST_TESTSDIR64=/opt/libhugetlbfs/tests \
+          INST_TESTSDIR32=${libdir}/libhugetlbfs/tests \
+          INST_TESTSDIR64=${libdir}/libhugetlbfs/tests \
           install-tests
 }
 
@@ -47,6 +47,6 @@  PARALLEL_MAKE_pn-${PN} = ""
 PACKAGES =+ "${PN}-perl ${PN}-tests "
 FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
 FILES_${PN}-perl = "${libdir}/perl"
-FILES_${PN}-tests += "/opt/libhugetlbfs/tests"
+FILES_${PN}-tests += "${libdir}/libhugetlbfs/tests"
 
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"