aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git/git.inc
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2013-01-25 16:06:56 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-25 12:35:49 +0000
commitcc6b8261fa47a049e501882e9bfc40f61e603b6f (patch)
tree10f2c594deb61510a6e859406161f730737889d9 /meta/recipes-devtools/git/git.inc
parentcf97241a18284180ff3b8dd880f219d09155bf09 (diff)
downloadopenembedded-core-contrib-cc6b8261fa47a049e501882e9bfc40f61e603b6f.tar.gz
git: remove unpackaged perl-native files
${libdir} is not applicable for the install path of perl-native files, files are always installed to /usr/lib no matter the target is 32/64 bits. After installing, remove unpackaged and unneeded perl-native files to prevent warnings. Fix warning: WARNING: For recipe git, the following files/directories were \ installed but not shipped in any package: ... WARNING: /usr/lib/perl-native/perl/5.14.2/Git.pm WARNING: /usr/lib/perl-native/perl/5.14.2/perllocal.pod WARNING: /usr/lib/perl-native/perl/5.14.2/Error.pm WARNING: /usr/lib/perl-native/perl/5.14.2/auto [YOCTO#3780] Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/git/git.inc')
-rw-r--r--meta/recipes-devtools/git/git.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index 82df6e3d7a..9829eec6ec 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -28,7 +28,11 @@ do_install () {
oe_runmake install DESTDIR="${D}" bindir=${bindir} \
template_dir=${datadir}/git-core/templates \
GIT_PYTHON_DIR=${D}${datadir}/git-core/python
- rm -rf ${D}${libdir}/perl-native
+
+ # ${libdir} is not applicable here, perl-native files are always
+ # installed to /usr/lib on both 32/64 bits targets.
+ rm -rf ${D}/usr/lib/perl-native
+ rmdir ${D}/usr/lib || true
}
do_install_append_class-native() {