Skip to contentSkip to conversation

db: do not install db_verify if 'verify' is not enabled

PATCH New Chen Qi 1 participant 1 message Jun 5, 2020

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 db: do not install db_verify if 'verify' is not enabled

On target, when running `db_verify /var/lib/rpm/Packages', we get the following error.

db_verify: BDB0571 library build did not include support for database verification

This is because db_verify is installed but 'verify' PACKAGECONFIG is not enabled. So fix it by not installing do_verify in such case.

---
 meta/recipes-support/db/db_5.3.28.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-support/db/db_5.3.28.bb +3 -0
index 3a0923ae36..318efcb61d 100644
@@ -109,6 +109,9 @@ do_install_append() {
 	fi
 
 	chown -R root:root ${D}
+	if ${@bb.utils.contains('PACKAGECONFIG', 'verify', 'false', 'true', d)}; then
+		rm -f ${D}${bindir}/db_verify
+	fi
 }
 
 INSANE_SKIP_${PN} = "dev-so"
Signature · 1 line
2.17.1