Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Peter Urbanec <openembedded-devel@urbanec.net>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] mozjs: fix build failure due to missing dependency on libxt
Date: Fri, 13 Feb 2015 01:56:22 -0500	[thread overview]
Message-ID: <20150213065621.GA7102@windriver.com> (raw)
In-Reply-To: <54DC2479.7050507@urbanec.net>

[Re: [OE-core] [PATCH] mozjs: fix build failure due to missing dependency on libxt] On 12/02/2015 (Thu 14:56) Peter Urbanec wrote:

> On 12/02/15 11:00, Paul Gortmaker wrote:
> >Looking at the configure script, we see these invalid values are output
> >when the autoconf test for X11 fails.  That test fails in the following
> >fashion:
> ...
> >Since the package clearly has never been built in a no-X11 OE environment,
> >we assume that all OE users to date are X11 users and hence simply add a
> >dependency on libxt.
> 
> I've run into this problem quite a while ago. My fix for this was a
> .bbappend file that passes --without-x to configure, since my target
> has no X11.
> 

Since it isn't a run time dependency, your local tweak to select a non-X
build of the package should still give you that even with the libxt
build dependency added.  My point still stands that in its current
state, the only successful builds have been X11-enabled ones;  so my
patch fixes the random build failures without changing the build output.

If we want to come at mozjs and enhance it at the same time to support
non-x11 without the need for an append like  you are using, we'd need
to do something like:

DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES','x11','libxt','',d)}"

...or perhaps:

EXTRA_OECONF_X = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"

I've not tested either of the above; I've just found them in existing
recipes; I'll wait to see if the maintainers have any preference for one
of the three possible solutions (the original and now the above two) as
doing one of the above two now implies we are supporting non-x11 builds
of it, when clearly we were not up to this point.

Paul.


  reply	other threads:[~2015-02-13  6:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12  0:00 [PATCH] mozjs: fix build failure due to missing dependency on libxt Paul Gortmaker
2015-02-12  3:56 ` Peter Urbanec
2015-02-13  6:56   ` Paul Gortmaker [this message]
2015-02-13 15:17     ` 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=20150213065621.GA7102@windriver.com \
    --to=paul.gortmaker@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=openembedded-devel@urbanec.net \
    /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