All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boszormenyi Zoltan <zboszor@pr.hu>
To: openembedded-devel@lists.openembedded.org
Subject: do_install_append() in Mesa prevents GLAMOR to be enabled in xorg-
Date: Fri, 19 Dec 2014 20:48:31 +0100	[thread overview]
Message-ID: <5494810F.2050400@pr.hu> (raw)

Hi,

there is this code in openembedded-core/meta/recipes-graphics/mesa/mesa_9.2.5.bb:

=============================================
#because we cannot rely on the fact that all apps will use pkgconfig,
#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
do_install_append() {
    if ${@base_contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then
        sed -i -e 's/^#ifdef MESA_EGL_NO_X11_HEADERS/#if
${@base_contains('DISTRO_FEATURES', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h
    fi
}
=============================================

I have used this recipe as a template for Mesa 10.x but didn't pay attention to this part yet.
I also use Xorg 1.16.2. Now, I had to enable GLAMOR in the X-server so support
the radeonsi driver properly in xf86-video-ati but glamor_priv.h in the X-server code
uses #define MESA_EGL_NO_X11_HEADERS to select the behaviour in eglplatform.h.
It doesn't want Xlib.h included.

I think it's mistaken reasoning to select a fixed behaviour based upon the 'x11'
distro feature, since there can be a valid excuse for apps that indeed use
pkgconfig. xserver-xorg is a pretty fundamental piece to break.

Best regards,
Zoltán Böszörményi



                 reply	other threads:[~2014-12-19 19:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5494810F.2050400@pr.hu \
    --to=zboszor@pr.hu \
    --cc=openembedded-devel@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.