From: Robert Yang Date: Wed, 8 Oct 2014 08:04:03 +0000 (-0700) Subject: git: fix do_install error X-Git-Tag: 2015-4~1386 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=fad6d25e548cb82c2106eb30ccdc0b8f3408de0a;p=openembedded-core.git git: fix do_install error Fixed when MACHINE = qemux86-64 and libdir = /usr/lib64: mv: cannot stat `/path/to/image/usr/lib64/perl-native/perl': No such file or directory The perl-native files are always installed to /usr/lib on both 32/64 bits targets. Signed-off-by: Robert Yang --- diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc index 25158330b6..5396628790 100644 --- a/meta/recipes-devtools/git/git.inc +++ b/meta/recipes-devtools/git/git.inc @@ -36,8 +36,11 @@ perl_native_fixup () { sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \ -e 's#${libdir}/perl-native/#${libdir}/#' \ ${@d.getVar("PERLTOOLS", True).replace(' /',d.getVar('D', True) + '/')} - mv ${D}${libdir}/perl-native/perl ${D}${libdir} - rmdir ${D}${libdir}/perl-native || true + + # ${libdir} is not applicable here, perl-native files are always + # installed to /usr/lib on both 32/64 bits targets. + mv ${D}${exec_prefix}/lib/perl-native/perl ${D}${libdir} + rmdir -p ${D}${exec_prefix}/lib/perl-native || true } REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core"