Patchwork [1/1] gawk: fix optional dependency mpfr

login
register
mail settings
Submitter Roxana
Date July 3, 2014, 9:45 a.m.
Message ID <7288f6c98bf45e320a83b27a80aae3dc3d529764.1404380633.git.roxana.ciobanu@intel.com>
Download mbox | patch
Permalink /patch/74895/
State Accepted
Commit ffd4e50bffe99beeb1f4949e678c9352434edce0
Headers show

Comments

Roxana - July 3, 2014, 9:45 a.m.
Gawk was failing to compile because of the optional feature mpfr if it found
 libmpfr on build host and linked against that or mpfr existed in sysroot but
 not in deploy, or if gawk was pulled from sstate and someone had mpfr built.

 [YOCTO# 6473]

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
---
 meta/recipes-extended/gawk/gawk_4.1.1.bb | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/recipes-extended/gawk/gawk_4.1.1.bb b/meta/recipes-extended/gawk/gawk_4.1.1.bb
index 1298ee2..3266f58 100644
--- a/meta/recipes-extended/gawk/gawk_4.1.1.bb
+++ b/meta/recipes-extended/gawk/gawk_4.1.1.bb
@@ -13,6 +13,8 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 DEPENDS += "readline"
 
+PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr"
+
 SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
            file://run-ptest \
            file://Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch \