Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>,
	Martin Kelly <mkelly@xevo.com>
Cc: Jussi Pakkanen <jpakkane@gmail.com>,
	Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: Issues with meson in SDK with cross-file
Date: Wed, 10 Jan 2018 14:34:54 +0200	[thread overview]
Message-ID: <bc9e458c-d1fc-2833-6cf3-8a4cac183240@linux.intel.com> (raw)
In-Reply-To: <CADqQcK4-=Q3mvKJfhjHbJEUYeTiGq3c7dCAR3E=w+ktr+_7RyA@mail.gmail.com>

On 01/09/2018 11:50 AM, Nirbheek Chauhan wrote:

>> Recently, we got meson added to OE-core as part of Yocto (thanks Alexander
>> Kanavin!).
> 
> Great to hear that! Thanks for your work, Alexander :)

I've built on the meta-oe meson recipe created by other people (tried to 
credit them in the commit). My contribution was mostly polish and 
testing, so that the recipe is of sufficient quality to be included in 
oe-core - particularly that it doesn't break anything on the autobuilder 
across architectures and configurations, and switching recipes from 
autotools to meson does not come with feature regressions (e.g. 
gobject-introspection, which is notoriously tricky for us).

>> - When --cross-file is specified, make meson not assume that env vars like
>> CC and CXX and similar point to native tools. Instead, just ignore them and
>> look for native tools in the normal way that meson does when these vars are
>> unspecified. We still may wan to inject CFLAGS, LDFLAGS, etc into the build
>> because people may mess with them interactively during development.
>>
> 
> Would it be possible to tell Yocto to not set those vars when building
> a recipe that uses meson?

FWIW, I fully agree. Environment variables are an obsolete technique 
from old Unices, and a notorious source of frustration - because it's 
very easy for software to quietly modify them behind the human's back, 
as opposed to setting things via config files and command line switches, 
which are both a lot more controlled and disciplined. Ideally, I want to 
reduce or eliminate the use of env vars altogether in Yocto (long way to 
go there, I know).


Alex


      parent reply	other threads:[~2018-01-10 12:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-08 23:51 Issues with meson in SDK with cross-file Martin Kelly
2018-01-09  9:05 ` Issues with meson in cross-compiling environment Alexander Kanavin
     [not found]   ` <CADqQcK7e7r_bdqqdg3yWC74jxC1rGEO48aGx3xFP2asu0FSJdg@mail.gmail.com>
2018-01-10 12:37     ` Alexander Kanavin
2018-01-09  9:57 ` Issues with meson in SDK with cross-file Nirbheek Chauhan
     [not found] ` <CADqQcK4-=Q3mvKJfhjHbJEUYeTiGq3c7dCAR3E=w+ktr+_7RyA@mail.gmail.com>
2018-01-09 10:06   ` Nirbheek Chauhan
2018-01-09 18:17     ` Martin Kelly
2018-01-09 18:20   ` Martin Kelly
     [not found]     ` <CAAjYPQ=u2U3f6DrL1KP-RkftD8P3nbASf1YUeeL0PFP6vY=hzQ@mail.gmail.com>
2018-01-09 20:33       ` Martin Kelly
2018-01-11 19:22         ` Martin Kelly
2018-01-11 19:26           ` Khem Raj
2018-01-11 19:33             ` Martin Kelly
2018-01-11 19:53               ` Martin Kelly
2018-01-12 12:35           ` Alexander Kanavin
2018-01-17 17:47             ` Martin Kelly
2018-02-06 23:39               ` Martin Kelly
2018-02-07  2:28                 ` Joshua Watt
2018-02-07 17:14                   ` Martin Kelly
2018-01-10 12:34   ` Alexander Kanavin [this message]

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=bc9e458c-d1fc-2833-6cf3-8a4cac183240@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=jpakkane@gmail.com \
    --cc=mkelly@xevo.com \
    --cc=nirbheek.chauhan@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox