* Issue building cairo
@ 2014-10-21 0:04 Gary Thomas
2014-10-21 11:40 ` Daiane Angolini
0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2014-10-21 0:04 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
I was chasing a bug building cairo on my i.MX6Q target and
noticed that the PACKAGECONFIG flags don't seem to be set
correctly. My DISTRO_FLAGS contains 'x11', but they don't
seem to be reflected in PACKAGECONFIG as I would expect from
the recipe.
Here's what I get:
% bitbake -e cairo >out
% grep ^PACKAGECONFIG out
PACKAGECONFIG=" egl glesv2 egl glesv2"
% grep ^DISTRO_FEATURES out | grep x11
DISTRO_FEATURES_DEFAULT="alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11"
DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd
libc-cxx-tests libc-catgets libc-charsets libc-crypt libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse
libc-getlogin libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code libc-memusage libc-nis libc-nsswitch libc-rcmd
libc-rtld-debug libc-spawn libc-streams libc-sunrpc libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc
libc-posix-wchar-io largefile opengl ptest multiarch wayland pulseaudio sysvinit"
Looking at the cairo recipe (meta/recipes-graphics/cairo/cairo.inc)
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
So it seems to me that PACKAGECONFIG should contain 'x11', or
am I confused?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issue building cairo
2014-10-21 0:04 Issue building cairo Gary Thomas
@ 2014-10-21 11:40 ` Daiane Angolini
2014-10-21 11:46 ` Gary Thomas
0 siblings, 1 reply; 5+ messages in thread
From: Daiane Angolini @ 2014-10-21 11:40 UTC (permalink / raw)
To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org
On Mon, Oct 20, 2014 at 10:04 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> I was chasing a bug building cairo on my i.MX6Q target and
> noticed that the PACKAGECONFIG flags don't seem to be set
> correctly. My DISTRO_FLAGS contains 'x11', but they don't
> seem to be reflected in PACKAGECONFIG as I would expect from
> the recipe.
>
> Here's what I get:
> % bitbake -e cairo >out
> % grep ^PACKAGECONFIG out
> PACKAGECONFIG=" egl glesv2 egl glesv2"
> % grep ^DISTRO_FEATURES out | grep x11
> DISTRO_FEATURES_DEFAULT="alsa argp bluetooth ext2 irda largefile pcmcia
> usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11"
> DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia usbgadget
> usbhost wifi xattr nfs zeroconf pci 3g nfc x11 ipv4 ipv6 libc-backtrace
> libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets
> libc-crypt libc-crypt-ufc libc-db-aliases libc-envz
> libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin
> libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code
> libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn
> libc-streams libc-sunrpc libc-utmp libc-utmpx
> libc-wordexp libc-posix-clang-wchar libc-posix-regexp
> libc-posix-regexp-glibc libc-posix-wchar-io largefile
> opengl ptest multiarch wayland pulseaudio sysvinit"
>
> Looking at the cairo recipe (meta/recipes-graphics/cairo/cairo.inc)
> PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11',
> '', d)} \
> ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb',
> '', d)}"
>
> So it seems to me that PACKAGECONFIG should contain 'x11', or
> am I confused?
http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-graphics/cairo/cairo_%25.bbappend#n9
Are you using mx6+meta-fsl-arm?
At least, it explain your PACKAGECONFIG value.... if you need x11 or
not I don't know
Daiane
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issue building cairo
2014-10-21 11:40 ` Daiane Angolini
@ 2014-10-21 11:46 ` Gary Thomas
2014-10-21 11:49 ` Daiane Angolini
0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2014-10-21 11:46 UTC (permalink / raw)
To: Daiane Angolini; +Cc: meta-freescale@yoctoproject.org
On 2014-10-21 05:40, Daiane Angolini wrote:
> On Mon, Oct 20, 2014 at 10:04 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> I was chasing a bug building cairo on my i.MX6Q target and
>> noticed that the PACKAGECONFIG flags don't seem to be set
>> correctly. My DISTRO_FLAGS contains 'x11', but they don't
>> seem to be reflected in PACKAGECONFIG as I would expect from
>> the recipe.
>>
>> Here's what I get:
>> % bitbake -e cairo >out
>> % grep ^PACKAGECONFIG out
>> PACKAGECONFIG=" egl glesv2 egl glesv2"
>> % grep ^DISTRO_FEATURES out | grep x11
>> DISTRO_FEATURES_DEFAULT="alsa argp bluetooth ext2 irda largefile pcmcia
>> usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11"
>> DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia usbgadget
>> usbhost wifi xattr nfs zeroconf pci 3g nfc x11 ipv4 ipv6 libc-backtrace
>> libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets
>> libc-crypt libc-crypt-ufc libc-db-aliases libc-envz
>> libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin
>> libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code
>> libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn
>> libc-streams libc-sunrpc libc-utmp libc-utmpx
>> libc-wordexp libc-posix-clang-wchar libc-posix-regexp
>> libc-posix-regexp-glibc libc-posix-wchar-io largefile
>> opengl ptest multiarch wayland pulseaudio sysvinit"
>>
>> Looking at the cairo recipe (meta/recipes-graphics/cairo/cairo.inc)
>> PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11',
>> '', d)} \
>> ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb',
>> '', d)}"
>>
>> So it seems to me that PACKAGECONFIG should contain 'x11', or
>> am I confused?
>
>
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-graphics/cairo/cairo_%25.bbappend#n9
>
> Are you using mx6+meta-fsl-arm?
>
> At least, it explain your PACKAGECONFIG value.... if you need x11 or
> not I don't know
Yes, as it says at the top of this email, I am building for i.MX6Q
This is the behaviour you get if you build for nitrogen6x, using
meta-fal-arm & meta-fsl-arm-extra
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issue building cairo
2014-10-21 11:46 ` Gary Thomas
@ 2014-10-21 11:49 ` Daiane Angolini
2014-10-21 12:02 ` Gary Thomas
0 siblings, 1 reply; 5+ messages in thread
From: Daiane Angolini @ 2014-10-21 11:49 UTC (permalink / raw)
To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org
On Tue, Oct 21, 2014 at 9:46 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2014-10-21 05:40, Daiane Angolini wrote:
>>
>> On Mon, Oct 20, 2014 at 10:04 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>
>>> I was chasing a bug building cairo on my i.MX6Q target and
>>> noticed that the PACKAGECONFIG flags don't seem to be set
>>> correctly. My DISTRO_FLAGS contains 'x11', but they don't
>>> seem to be reflected in PACKAGECONFIG as I would expect from
>>> the recipe.
>>>
>>> Here's what I get:
>>> % bitbake -e cairo >out
>>> % grep ^PACKAGECONFIG out
>>> PACKAGECONFIG=" egl glesv2 egl glesv2"
>>> % grep ^DISTRO_FEATURES out | grep x11
>>> DISTRO_FEATURES_DEFAULT="alsa argp bluetooth ext2 irda largefile
>>> pcmcia
>>> usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11"
>>> DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia
>>> usbgadget
>>> usbhost wifi xattr nfs zeroconf pci 3g nfc x11 ipv4 ipv6 libc-backtrace
>>> libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets
>>> libc-crypt libc-crypt-ufc libc-db-aliases libc-envz
>>> libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin
>>> libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code
>>> libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn
>>> libc-streams libc-sunrpc libc-utmp libc-utmpx
>>> libc-wordexp libc-posix-clang-wchar libc-posix-regexp
>>> libc-posix-regexp-glibc libc-posix-wchar-io largefile
>>> opengl ptest multiarch wayland pulseaudio sysvinit"
>>>
>>> Looking at the cairo recipe (meta/recipes-graphics/cairo/cairo.inc)
>>> PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11',
>>> 'x11',
>>> '', d)} \
>>> ${@bb.utils.contains('DISTRO_FEATURES', 'directfb',
>>> 'directfb',
>>> '', d)}"
>>>
>>> So it seems to me that PACKAGECONFIG should contain 'x11', or
>>> am I confused?
>>
>>
>>
>>
>> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-graphics/cairo/cairo_%25.bbappend#n9
>>
>> Are you using mx6+meta-fsl-arm?
>>
>> At least, it explain your PACKAGECONFIG value.... if you need x11 or
>> not I don't know
>
>
> Yes, as it says at the top of this email, I am building for i.MX6Q
>
> This is the behaviour you get if you build for nitrogen6x, using
> meta-fal-arm & meta-fsl-arm-extra
http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-graphics/cairo/cairo_%25.bbappend#n9
The line 9 of cairo bbappend from meta-fsl-arm overrides the =?? from recipe.
Wouldn't be this line causing the missing x11?
Daiane
>
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issue building cairo
2014-10-21 11:49 ` Daiane Angolini
@ 2014-10-21 12:02 ` Gary Thomas
0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2014-10-21 12:02 UTC (permalink / raw)
To: Daiane Angolini; +Cc: meta-freescale@yoctoproject.org
On 2014-10-21 05:49, Daiane Angolini wrote:
> On Tue, Oct 21, 2014 at 9:46 AM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2014-10-21 05:40, Daiane Angolini wrote:
>>>
>>> On Mon, Oct 20, 2014 at 10:04 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>
>>>> I was chasing a bug building cairo on my i.MX6Q target and
>>>> noticed that the PACKAGECONFIG flags don't seem to be set
>>>> correctly. My DISTRO_FLAGS contains 'x11', but they don't
>>>> seem to be reflected in PACKAGECONFIG as I would expect from
>>>> the recipe.
>>>>
>>>> Here's what I get:
>>>> % bitbake -e cairo >out
>>>> % grep ^PACKAGECONFIG out
>>>> PACKAGECONFIG=" egl glesv2 egl glesv2"
>>>> % grep ^DISTRO_FEATURES out | grep x11
>>>> DISTRO_FEATURES_DEFAULT="alsa argp bluetooth ext2 irda largefile
>>>> pcmcia
>>>> usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11"
>>>> DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia
>>>> usbgadget
>>>> usbhost wifi xattr nfs zeroconf pci 3g nfc x11 ipv4 ipv6 libc-backtrace
>>>> libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets
>>>> libc-crypt libc-crypt-ufc libc-db-aliases libc-envz
>>>> libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin
>>>> libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code
>>>> libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn
>>>> libc-streams libc-sunrpc libc-utmp libc-utmpx
>>>> libc-wordexp libc-posix-clang-wchar libc-posix-regexp
>>>> libc-posix-regexp-glibc libc-posix-wchar-io largefile
>>>> opengl ptest multiarch wayland pulseaudio sysvinit"
>>>>
>>>> Looking at the cairo recipe (meta/recipes-graphics/cairo/cairo.inc)
>>>> PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11',
>>>> 'x11',
>>>> '', d)} \
>>>> ${@bb.utils.contains('DISTRO_FEATURES', 'directfb',
>>>> 'directfb',
>>>> '', d)}"
>>>>
>>>> So it seems to me that PACKAGECONFIG should contain 'x11', or
>>>> am I confused?
>>>
>>>
>>>
>>>
>>> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-graphics/cairo/cairo_%25.bbappend#n9
>>>
>>> Are you using mx6+meta-fsl-arm?
>>>
>>> At least, it explain your PACKAGECONFIG value.... if you need x11 or
>>> not I don't know
>>
>>
>> Yes, as it says at the top of this email, I am building for i.MX6Q
>>
>> This is the behaviour you get if you build for nitrogen6x, using
>> meta-fal-arm & meta-fsl-arm-extra
>
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/recipes-graphics/cairo/cairo_%25.bbappend#n9
>
> The line 9 of cairo bbappend from meta-fsl-arm overrides the =?? from recipe.
>
> Wouldn't be this line causing the missing x11?
Yes, I just noticed this myself. That line is wrong - directfb is
already being correctly handled by the main recipe, so line 9 should
be removed. This would then give the correct flags.
I tested this with those lines removed:
gthomas@europa:/local/p0382-latest_2014-10-07$ bitbake -e cairo | grep ^PACKAGECONFIG
PACKAGECONFIG="x11 egl glesv2"
This is the correct behaviour - I'll formulate and send a patch.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-21 12:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 0:04 Issue building cairo Gary Thomas
2014-10-21 11:40 ` Daiane Angolini
2014-10-21 11:46 ` Gary Thomas
2014-10-21 11:49 ` Daiane Angolini
2014-10-21 12:02 ` Gary Thomas
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.