diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2020-06-05 10:09:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-18 12:25:01 +0100 |
commit | 215a316817ec17675937190051dc57c29cbf21f3 (patch) | |
tree | 22ea0ee47df5697253bd5dad767b432d80fc3502 /meta/recipes-support/db | |
parent | ff6ba7215ac1f2e9dc893c0acfb05528eeb415d6 (diff) | |
download | poky-215a316817ec17675937190051dc57c29cbf21f3.tar.gz |
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.
(From OE-Core rev: b45f1a3b8007ab34dcbe0cba365823da179d0c50)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b5ffdb296f211403f987b5d5a724a94ee91dc80c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/db')
-rw-r--r-- | meta/recipes-support/db/db_5.3.28.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-support/db/db_5.3.28.bb b/meta/recipes-support/db/db_5.3.28.bb index 3a0923ae36..318efcb61d 100644 --- a/meta/recipes-support/db/db_5.3.28.bb +++ b/meta/recipes-support/db/db_5.3.28.bb | |||
@@ -109,6 +109,9 @@ do_install_append() { | |||
109 | fi | 109 | fi |
110 | 110 | ||
111 | chown -R root:root ${D} | 111 | chown -R root:root ${D} |
112 | if ${@bb.utils.contains('PACKAGECONFIG', 'verify', 'false', 'true', d)}; then | ||
113 | rm -f ${D}${bindir}/db_verify | ||
114 | fi | ||
112 | } | 115 | } |
113 | 116 | ||
114 | INSANE_SKIP_${PN} = "dev-so" | 117 | INSANE_SKIP_${PN} = "dev-so" |