All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Mike Looijmans <mike.looijmans@topic.nl>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: What's up with "fontconfig"
Date: Fri, 01 Feb 2013 15:21:31 +0000	[thread overview]
Message-ID: <1359732091.14071.66.camel@ted> (raw)
In-Reply-To: <510BD7AD.5090506@topic.nl>

On Fri, 2013-02-01 at 15:56 +0100, Mike Looijmans wrote:
> When compiling fontconfig, it fails because it is using "build" flags in 
> the host compiler. I have BUILD_OPTIMIZATIONS="-march=native ..." set, 
> and fontconfig will fail to compile because it passes the -march=native 
> flag to the ARM compiler which then fails. Which is justified.
> 
> This is the part in the recipe that worries me:
> 
> do_configure_append () {
> 	sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile
> 	sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-glyphname/Makefile
> 	sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-lang/Makefile
> 
> 	sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-case/Makefile
> 	sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-glyphname/Makefile
> 	sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-lang/Makefile
> 
> 	sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-case/Makefile
> 	sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-glyphname/Makefile
> 	sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-lang/Makefile
> 
> 	sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-case/Makefile
> 	sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-glyphname/Makefile
> 	sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-lang/Makefile
> 
> }
> 
> This is not a "native" package. The above commands put the build systems 
> include patch and compiler flags into the makefile.
> 
> I've worked around the issue by creating a a bbappend that simply 
> removes "-march=native" from the build flags, which makes the build of 
> this package succeed.
> 
> I have no idea what fontconfig is supposed to do and where it is 
> supposed to run, but it looks to me as if that configure_append should 
> not be there at all.

This does look rather worrying and Ross mentioned this to me but wasn't
able to find the history. I was more successful and ironically this was
introduced by Ross:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c2d22f0f36980eecc7cf2ad818a5033476614bfc

We likely need to replace this with something sane. The question is
whether we need it at all and if so, what problem dies it solve?

Cheers,

Richard




  parent reply	other threads:[~2013-02-01 15:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 14:56 What's up with "fontconfig" Mike Looijmans
2013-02-01 15:09 ` Burton, Ross
2013-02-01 15:18   ` Burton, Ross
2013-02-01 15:21 ` Richard Purdie [this message]
2013-02-01 17:22   ` Burton, Ross
2013-02-01 19:15     ` Burton, Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1359732091.14071.66.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=mike.looijmans@topic.nl \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.