[OE-core] [OE-Core][PATCH 07/13] musl: Ensure GLIBC_LDSO symlink target does not exist on reinstall

Andre McCurdy armccurdy at gmail.com
Fri Dec 14 19:09:53 UTC 2018


On Fri, Dec 14, 2018 at 9:57 AM Serhey Popovych
<serhe.popovych at gmail.com> wrote:
>
> Otherwise do_install task will fail on rebuild.
>
> Signed-off-by: Serhey Popovych <serhe.popovych at gmail.com>
> ---
>  meta/recipes-core/musl/musl_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
> index 9cc875c..4593cde 100644
> --- a/meta/recipes-core/musl/musl_git.bb
> +++ b/meta/recipes-core/musl/musl_git.bb
> @@ -61,7 +61,7 @@ do_install() {
>         oe_runmake install DESTDIR='${D}'
>
>         install -d ${D}${bindir}
> -       rm -f ${D}${bindir}/ldd
> +       rm -f ${D}${bindir}/ldd ${D}${GLIBC_LDSO}

The correct fix here is actually to remove this line entirely. The
official ruling is that there should be no expectation that re-running
do_install should work and patches to make it work are not acceptable.

  http://lists.openembedded.org/pipermail/openembedded-core/2018-September/273723.html

>         lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd
>         lnr ${D}${libdir}/libc.so ${D}${GLIBC_LDSO}
>         for l in crypt dl m pthread resolv rt util xnet
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list