* [dora][PATCH] mesa: double check for eglplatform.h
@ 2014-04-14 11:18 Valentin Popa
2014-04-14 13:48 ` Otavio Salvador
0 siblings, 1 reply; 3+ messages in thread
From: Valentin Popa @ 2014-04-14 11:18 UTC (permalink / raw)
To: openembedded-core
Even if 'egl' is in PACKAGECONFIG, mesa egl support
can be disabled explicitly (using a .bbappend, for example).
This patch adds another check for the existence
of eglplatform.h before 'sed' can alter it.
---
meta/recipes-graphics/mesa/mesa_9.1.6.bb | 4 +++-
meta/recipes-graphics/mesa/mesa_git.bb | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-graphics/mesa/mesa_9.1.6.bb b/meta/recipes-graphics/mesa/mesa_9.1.6.bb
index 6e9cd82..388cfd7 100644
--- a/meta/recipes-graphics/mesa/mesa_9.1.6.bb
+++ b/meta/recipes-graphics/mesa/mesa_9.1.6.bb
@@ -19,6 +19,8 @@ S = "${WORKDIR}/Mesa-${PV}"
#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
+ if [ -e "${D}${includedir}/EGL/eglplatform.h" ]; 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
fi
}
\ No newline at end of file
diff --git a/meta/recipes-graphics/mesa/mesa_git.bb b/meta/recipes-graphics/mesa/mesa_git.bb
index 1babcc0..714911f 100644
--- a/meta/recipes-graphics/mesa/mesa_git.bb
+++ b/meta/recipes-graphics/mesa/mesa_git.bb
@@ -23,6 +23,8 @@ S = "${WORKDIR}/git"
#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
+ if [ -e "${D}${includedir}/EGL/eglplatform.h" ]; 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
fi
}
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [dora][PATCH] mesa: double check for eglplatform.h
2014-04-14 11:18 [dora][PATCH] mesa: double check for eglplatform.h Valentin Popa
@ 2014-04-14 13:48 ` Otavio Salvador
2014-04-14 13:51 ` Valentin Popa
0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2014-04-14 13:48 UTC (permalink / raw)
To: Valentin Popa; +Cc: Patches and discussions about the oe-core layer
Hello Valentin,
On Mon, Apr 14, 2014 at 8:18 AM, Valentin Popa <valentin.popa@intel.com> wrote:
> Even if 'egl' is in PACKAGECONFIG, mesa egl support
> can be disabled explicitly (using a .bbappend, for example).
> This patch adds another check for the existence
> of eglplatform.h before 'sed' can alter it.
This is lacking the signed-off-by.
The patch seems fine but I cannot test it at this moment.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dora][PATCH] mesa: double check for eglplatform.h
2014-04-14 13:48 ` Otavio Salvador
@ 2014-04-14 13:51 ` Valentin Popa
0 siblings, 0 replies; 3+ messages in thread
From: Valentin Popa @ 2014-04-14 13:51 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
On 04/14/2014 04:48 PM, Otavio Salvador wrote:
> Hello Valentin,
>
> On Mon, Apr 14, 2014 at 8:18 AM, Valentin Popa <valentin.popa@intel.com> wrote:
>> Even if 'egl' is in PACKAGECONFIG, mesa egl support
>> can be disabled explicitly (using a .bbappend, for example).
>> This patch adds another check for the existence
>> of eglplatform.h before 'sed' can alter it.
> This is lacking the signed-off-by.
>
> The patch seems fine but I cannot test it at this moment.
>
>
I'll send a V2. Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-14 13:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 11:18 [dora][PATCH] mesa: double check for eglplatform.h Valentin Popa
2014-04-14 13:48 ` Otavio Salvador
2014-04-14 13:51 ` Valentin Popa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox