Patchwork [4/4] expat: Fix mingw packaging

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date May 15, 2013, 7:41 a.m.
Message ID <c8b33597d1942f190a81c8914233bb66202c927a.1368603585.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/243915/
State Rejected
Delegated to: Esben Haabendal
Headers show

Comments

christian.braunersorensen@prevas.dk - May 15, 2013, 7:41 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

---
 recipes/expat/expat.inc | 7 +++++++
 1 file changed, 7 insertions(+)
Esben Haabendal - May 29, 2013, 8:06 a.m.
<christian.braunersorensen@prevas.dk> writes:

> From: Christian Sørensen <christian.braunersorensen@prevas.dk>
>
> ---
>  recipes/expat/expat.inc | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/recipes/expat/expat.inc b/recipes/expat/expat.inc
> index 8ea1118..a25f7b4 100644
> --- a/recipes/expat/expat.inc
> +++ b/recipes/expat/expat.inc
> @@ -13,6 +13,13 @@ export LTCC = "${CC}"
>  
>  RDEPENDS_${PN} = "libexpat"
>  
> +INSTALL_CLEANFUNCS = ""
> +INSTALL_CLEANUP_FUNCS:TARGET_OS_mingw32 = "do_install_fix_dll"
> +do_install[postfuncs] += "${INSTALL_CLEANUP_FUNCS}"
> +do_install_fix_dll () {
> +	mv ${D}${prefix}${bindir}/*.dll ${D}${libdir}/
> +}
> +
>  inherit auto-package-libs
>  AUTO_PACKAGE_LIBS = "expat"
>  FILES_${PN}-libexpat-dev += "${includedir}"

Hi, mingw packaging should be fixed on master with the following two
commits:

* 19808ae expat: Fixup libtool handling to fix mingw32 builds
* 8cae324 expat: Cleanup mingw32 packaging

Let me know if you still have problems.

/Esben

Patch

diff --git a/recipes/expat/expat.inc b/recipes/expat/expat.inc
index 8ea1118..a25f7b4 100644
--- a/recipes/expat/expat.inc
+++ b/recipes/expat/expat.inc
@@ -13,6 +13,13 @@  export LTCC = "${CC}"
 
 RDEPENDS_${PN} = "libexpat"
 
+INSTALL_CLEANFUNCS = ""
+INSTALL_CLEANUP_FUNCS:TARGET_OS_mingw32 = "do_install_fix_dll"
+do_install[postfuncs] += "${INSTALL_CLEANUP_FUNCS}"
+do_install_fix_dll () {
+	mv ${D}${prefix}${bindir}/*.dll ${D}${libdir}/
+}
+
 inherit auto-package-libs
 AUTO_PACKAGE_LIBS = "expat"
 FILES_${PN}-libexpat-dev += "${includedir}"