[OE-core] [PATCH 03/10] man-db: fix multilib install file conflict
Richard Purdie
richard.purdie at linuxfoundation.org
Sat Sep 29 12:44:48 UTC 2018
On Sat, 2018-09-29 at 13:43 +0800, kai.kang at windriver.com wrote:
> From: Kai Kang <kai.kang at windriver.com>
>
> The first line of config file man_db.conf is the package name. It
> causes
> multilib install file conflict. So remove the first line.
>
> Signed-off-by: Kai Kang <kai.kang at windriver.com>
> ---
> meta/recipes-extended/man-db/man-db_2.8.3.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-extended/man-db/man-db_2.8.3.bb
> b/meta/recipes-extended/man-db/man-db_2.8.3.bb
> index 97e5a3d6fb..da6d291011 100644
> --- a/meta/recipes-extended/man-db/man-db_2.8.3.bb
> +++ b/meta/recipes-extended/man-db/man-db_2.8.3.bb
> @@ -26,6 +26,9 @@ do_install() {
> install -d ${D}/etc/default/volatiles
> install -m 0644 ${WORKDIR}/99_mandb
> ${D}/etc/default/volatiles
> fi
> +
> + # the 1st line of man_db.conf is package name which causes
> multilib install file conflict
> + sed -i '1d' ${D}${sysconfdir}/man_db.conf
> }
Please do this with a patch, not a sed expression.
The sed expressions are a maintenance nightmare since we don't know
if/when the config file may change, or if/when this expression stops
working.
Cheers,
Richard
More information about the Openembedded-core
mailing list