All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] git: fix perl binding installation
@ 2014-04-17  9:07 Koen Kooi
  2014-04-17  9:07 ` [PATCH 2/3] liberror-perl: add 0.17022 Koen Kooi
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Koen Kooi @ 2014-04-17  9:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

Git.pm wasn't ending up in the package because do_install removed it
with a misleading comment about multilib. Fix the problem at the source
so that Git.pm ends up in the correct dir *and* doesn't get deleted.

The perl.mak file gets updated during the regular do_install, so add an
extra make install step to install the *.pm files to the correct
directory.

This is the first step in making git-perltools actually work.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta/recipes-devtools/git/git.inc | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index f5013f1..888b2a5 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -28,10 +28,16 @@ do_install () {
 		template_dir=${datadir}/git-core/templates \
 		GIT_PYTHON_DIR=${D}${datadir}/git-core/python
 
+	sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \
+	       -e 's#${STAGING_LIBDIR_NATIVE}/#${libdir}/#' \
+	       -e 's#/lib/perl-native#/lib#g' \
+	       ${S}/perl/perl.mak
+
+	cd ${S}/perl && oe_runmake install DESTDIR="${D}" bindir=${bindir}
+
 	# ${libdir} is not applicable here, perl-native files are always
 	# installed to /usr/lib on both 32/64 bits targets.
 	rm -rf ${D}${exec_prefix}/lib/perl-native
-	rmdir ${D}${exec_prefix}/lib || true
 }
 
 PERLSEDFIXUP = " \
@@ -75,6 +81,7 @@ PERLTOOLS = " \
 PACKAGES =+ "${PN}-perltools"
 FILES_${PN}-perltools += " \
     ${PERLTOOLS} \
+    ${prefix}/lib/perl \
     ${datadir}/perl \
 "
 RDEPENDS_${PN}-perltools = "${PN} perl perl-module-file-path findutils"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-04-22 12:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17  9:07 [PATCH 1/3] git: fix perl binding installation Koen Kooi
2014-04-17  9:07 ` [PATCH 2/3] liberror-perl: add 0.17022 Koen Kooi
2014-04-17  9:07 ` [PATCH 3/3] git: add a runtime depency for liberror-perl to git-perltools Koen Kooi
2014-04-18 20:25 ` [PATCH 1/3] git: fix perl binding installation Saul Wold
2014-04-19  7:24   ` Koen Kooi
2014-04-19 15:47     ` Saul Wold
2014-04-20  8:02       ` Koen Kooi
2014-04-22 12:50         ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.