[oe] [PATCH 13/13] fontforge: avoid cloning uthash during do_compile
Khem Raj
raj.khem at gmail.com
Fri Oct 30 22:01:05 UTC 2015
On Fri, Oct 30, 2015 at 2:24 PM, Andreas Müller
<schnitzeltony at googlemail.com> wrote:
> On Fri, Oct 30, 2015 at 10:02 PM, Khem Raj <raj.khem at gmail.com> wrote:
>> On Fri, Oct 30, 2015 at 5:13 AM, Andreas Müller
>> <schnitzeltony at googlemail.com> wrote:
>>> Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
>>> ---
>>> meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 11 +++++++++--
>>> 1 file changed, 9 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb b/meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb
>>> index eb40eaa..21f955f 100644
>>> --- a/meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb
>>> +++ b/meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb
>>> @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \
>>> file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \
>>> "
>>>
>>> -DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool"
>>> +DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool uthash"
>>> DEPENDS_append_class-target = " libxi"
>>>
>>> inherit bootstrap pkgconfig pythonnative distro_features_check
>>> @@ -20,7 +20,14 @@ S = "${WORKDIR}/git"
>>>
>>> EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting"
>>>
>>> -EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -I${B}/uthash/src'"
>>> +do_configure_prepend() {
>>> + # uthash sources are expected in uthash/src
>>> + currdir=`pwd`
>>> + cd ${S}
>>> + mkdir -p uthash/src
>>> + cp ${STAGING_INCDIR}/ut*.h uthash/src
>>
>> why not teach the component's build system to refer it from sysroot
>> and avoid copying this.
> Simple answer: This solution is far more simple: Headers are exactly
> there where Makefile would put them by cloning. Have no idea how many
> files expect a fixed location for the uthash headers.
>
whereever they are used in sources use #include <foo.h>
and make sure that it respects -I$(STAGING_INCDIR) that should do it.
> Andreas
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list