Skip to contentSkip to conversation

rocksdb: fix qa warning of buildpaths

PATCH New [email protected] 1 participant 1 message Jan 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rocksdb: fix qa warning of buildpaths

From: Kai Kang <[email protected]>

rocksdb fails qa check buildpaths:

| WARNING: rocksdb-5.17.2-r0 do_package_qa: QA Issue: File
| /work/core2-64-poky-linux/rocksdb/5.17.2-r0/packages-split/rocksdb-dev/usr/lib64/cmake/rocksdb/RocksDBTargets.cmake
| in package contained reference to tmpdir [buildpaths]

Removing buildpath info from the cmake file.

---
 meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb +5 -0
index 67822477e..c926d4472 100644
@@ -29,3 +29,8 @@ EXTRA_OECMAKE = "\
     -DWITH_TESTS=OFF \
     -DWITH_TOOLS=OFF \
 "
+
+do_install_append() {
+    # fix for qa check buildpaths
+    sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
+}
Signature · 1 line
2.20.0