[bug] gl libraries should not be included if opengl is not in the distro features


Nicola Lunghi
 

Hi all,
I was trying to build a qt commanline application but I have an issue
The dependency for gles2 is automatically added.
Looking at the dependency chain I have:

$PACKAGECONFIG_GL [5 operations]
# set? /home/nlunghiadm/build/xaap/newgw/xaap-new/meta-qt5/recipes-qt/qt5/qtbase_git.bb:42
# "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl',
'no-opengl', d)}"
# _append[use-mainline-bsp]
/home/nlunghiadm/build/xaap/newgw/xaap-new/meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:23
# " gbm kms"
# override[imxpxp]:set
/home/nlunghiadm/build/xaap/newgw/xaap-new/meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:20
# "gles2"
# override[imxgpu2d]:set
/home/nlunghiadm/build/xaap/newgw/xaap-new/meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:21
# "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}"
# override[imxgpu3d]:set
/home/nlunghiadm/build/xaap/newgw/xaap-new/meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:22
# "gles2"
# pre-expansion value:
# "gles2"
PACKAGECONFIG_GL="gles2"
#
# $PACKAGECONFIG_GL_imxgpu2d
# set /home/nlunghiadm/build/xaap/newgw/xaap-new/meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:21
# "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}"
PACKAGECONFIG_GL_imxgpu2d=""
#
# $PACKAGECONFIG_GL_imxgpu3d
# set /home/nlunghiadm/build/xaap/newgw/xaap-new/meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:22
# "gles2"
PACKAGECONFIG_GL_imxgpu3d="gles2"
#
# $PACKAGECONFIG_GL_imxpxp
# set /home/nlunghiadm/build/xaap/newgw/xaap-new/meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:20
# "gles2"
PACKAGECONFIG_GL_imxpxp="gles2"

and in meta-freescale/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend

SRC_URI_append_imxgpu3d = " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', '',
'${SRC_URI_APPEND_3D_NOT_X11}', d)} \
"

PACKAGECONFIG_GL_imxpxp = "gles2"
PACKAGECONFIG_GL_imxgpu2d =
"${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}"
PACKAGECONFIG_GL_imxgpu3d = "gles2"
PACKAGECONFIG_GL_append_use-mainline-bsp = " gbm kms"

PACKAGECONFIG_PLATFORM = ""
PACKAGECONFIG_PLATFORM_imxgpu2d = "no-opengl linuxfb"
PACKAGECONFIG_PLATFORM_imxgpu3d = " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
bb.utils.contains('DISTRO_FEATURES', 'wayland', '', \
'eglfs', d), d)}"
PACKAGECONFIG_PLATFORM_use-mainline-bsp =
"${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'eglfs', d)}"
PACKAGECONFIG += "${PACKAGECONFIG_PLATFORM}"

I think the correct behaviour should be to check for opengl in distro
features and not x11 am I wrong?

Thanks
Nicola Lunghi

Join meta-freescale@lists.yoctoproject.org to automatically receive all group messages.