Patchwork [1/1] kmod: fix installation path of pkgconfig files

login
register
mail settings
Submitter Otavio Salvador
Date May 14, 2012, 6:30 p.m.
Message ID <082e4970f3fa5b102b9ef716e300d017f70601cd.1337020062.git.otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/27733/
State New
Headers show

Comments

Otavio Salvador - May 14, 2012, 6:30 p.m.
The pkgconfig files need to be installed in ${libdir} instead of
${base_libdir}.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/recipes-kernel/kmod/kmod_git.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
Otavio Salvador - May 14, 2012, 6:36 p.m.
On Mon, May 14, 2012 at 3:30 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> The pkgconfig files need to be installed in ${libdir} instead of
> ${base_libdir}.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

This patch is near but still doesn't  work as expected. I am working on that.

Patch

diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_git.bb
index d9c4d8b..a4a284e 100644
--- a/meta/recipes-kernel/kmod/kmod_git.bb
+++ b/meta/recipes-kernel/kmod/kmod_git.bb
@@ -3,7 +3,7 @@ 
 
 require kmod.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
 RPROVIDES_${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools"
@@ -34,6 +34,10 @@  do_install_append () {
 
         # install depmod.d file for search/ dir
         install -Dm644 "${WORKDIR}/depmod-search.conf" "${D}${base_libdir}/depmod.d/search.conf"
+
+        # fix pkgconfig installation path
+        install -dm755 ${D}${libdir}
+        mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
 }
 
 pkg_postinst_kmod() {