[oe] [meta-oe][PATCH V2] pmdk: fix install error

Andreas Müller schnitzeltony at gmail.com
Thu Jan 10 06:45:39 UTC 2019


On Thu, Jan 10, 2019 at 6:40 AM Yongxin Liu <yongxin.liu at windriver.com> wrote:
>
> Install files to /usr instead of /usr/local by replacing
> PREFIX=${prefix} with prefix=${prefix}.
> Remove unnecessary files which are only for debugging.
> Set FILES to package /usr/etc/bash_completion.d/pmempool.
>
> Signed-off-by: Yongxin Liu <yongxin.liu at windriver.com>
> ---
>  meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 20 ++++----------------
>  1 file changed, 4 insertions(+), 16 deletions(-)
>
> diff --git a/meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb b/meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb
> index 3da22a970..8c3ead2ef 100644
> --- a/meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb
> +++ b/meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb
> @@ -34,25 +34,13 @@ EXTRA_OEMAKE = "HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}'"
>  # Fix the missing fts libs when using musl
>  EXTRA_OEMAKE_append_libc-musl = " EXTRA_LIBS='-lfts'"
>
> -do_install() {
> -       oe_runmake PREFIX=${prefix} DESTDIR=${D} install
> -
> -       # Copy these into the standard directories
> -       install -d ${D}${bindir}/
> -       mv ${D}/usr/local/bin/pmempool ${D}${bindir}/
> -       mv ${D}/usr/local/bin/daxio ${D}${bindir}/
> -
> -       install -d ${D}${libdir}
> -       mv ${D}/usr/local/lib/*so* ${D}${libdir}/
> +FILES_${PN} = "/usr/etc"
^ This looks wrong: Seems config path is prefixed too
>
> -       install -d ${D}${libdir}/pkgconfig
> -       mv ${D}/usr/local/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
> -
> -       install -d ${D}${includedir}
> -       mv ${D}/usr/local/include/* ${D}${includedir}/
> +do_install() {
> +       oe_runmake prefix=${prefix} DESTDIR=${D} install
>
>         # Remove uneeded files
> -       rm -rf ${D}/usr/local/
> +       rm -rf ${D}/usr/lib64/pmdk_debug
>  }
>
>  # Include these by default otherwise the SDK is not very useful
> --
> 2.14.4
Andreas


More information about the Openembedded-devel mailing list