Skip to contentSkip to conversation

libhugetlbfs: kill /opt usage

PATCH New [email protected] 1 participant 1 message Oct 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libhugetlbfs: kill /opt usage

From: Koen Kooi <[email protected]>

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

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +3 -3
index 24480c3..d29dee1 100644
@@ -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"
Signature · 1 line
1.7.10