All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vlc: rework qt PACKAGECONFIG
@ 2019-04-22 23:46 Andreas Müller
  2019-04-22 23:55 ` Paul Barker
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Müller @ 2019-04-22 23:46 UTC (permalink / raw)
  To: openembedded-devel

* qt4 support is gone -> move to qt5
* enable qt5 gui in case meta-qt5 is in layers (it is more or less useless
  without gui)
* while at it remove noop libtool copy

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
V1 -> V2: Aargh again typo in commit messeage...
 .../recipes-multimedia/vlc/vlc.inc            | 25 ++++++++++++-------
 1 file changed, 16 insertions(+), 9 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc.inc b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
index 19ac8206c..6ba1444b5 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc.inc
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
@@ -36,12 +36,18 @@ EXTRA_OECONF = "\
     --enable-realrtsp \
     --disable-libtar \
     --enable-avcodec \
-    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
-    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
-    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
+    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
+    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
+    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
 "
 
-PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+PACKAGECONFIG ?= " \
+    live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)} \
+"
+
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
 
 PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
 PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
@@ -54,7 +60,7 @@ PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
 PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
 PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
 PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
-PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free"
+PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
 PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
 PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
 PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
@@ -76,12 +82,13 @@ PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb,  xcb-util
 PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
 PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
 
-do_configure_prepend() {
-    cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
-}
-
 do_configure_append() {
     sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
+
+    # moc needs support: precreate build paths
+    for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
+        mkdir -p "${B}/modules/gui/qt/$qtpath"
+    done
 }
 
 # This recipe packages vlc as a library as well, so qt4 dependencies
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] vlc: rework qt PACKAGECONFIG
  2019-04-22 23:46 [PATCH] vlc: rework qt PACKAGECONFIG Andreas Müller
@ 2019-04-22 23:55 ` Paul Barker
  2019-04-23  0:07   ` Andreas Müller
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Barker @ 2019-04-22 23:55 UTC (permalink / raw)
  To: Andreas Müller, openembedded-devel

On 23/04/2019 00:46, Andreas Müller wrote:
> * qt4 support is gone -> move to qt5
> * enable qt5 gui in case meta-qt5 is in layers (it is more or less useless
>    without gui)
> * while at it remove noop libtool copy
> 
> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
> ---
> V1 -> V2: Aargh again typo in commit messeage...
>   .../recipes-multimedia/vlc/vlc.inc            | 25 ++++++++++++-------
>   1 file changed, 16 insertions(+), 9 deletions(-)
> 
> diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc.inc b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
> index 19ac8206c..6ba1444b5 100644
> --- a/meta-multimedia/recipes-multimedia/vlc/vlc.inc
> +++ b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
> @@ -36,12 +36,18 @@ EXTRA_OECONF = "\
>       --enable-realrtsp \
>       --disable-libtar \
>       --enable-avcodec \
> -    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
> -    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
> -    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
> +    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
> +    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
> +    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
>   "
>   
> -PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
> +PACKAGECONFIG ?= " \
> +    live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
> +    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
> +    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)} \

I don't like this change based on BBFILE_COLLECTIONS, it's just a 
different way of having things change when you add an extra layer. We 
wouldn't want an unconditional bbappend in meta-qt5 to set this and so 
we don't want to set it here when that layer is added.

Perhaps we should have qt5 as a distro feature instead?

> +"
> +
> +inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
>   
>   PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
>   PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
> @@ -54,7 +60,7 @@ PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
>   PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
>   PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
>   PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
> -PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free"
> +PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
>   PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
>   PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
>   PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
> @@ -76,12 +82,13 @@ PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb,  xcb-util
>   PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
>   PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
>   
> -do_configure_prepend() {
> -    cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
> -}
> -
>   do_configure_append() {
>       sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
> +
> +    # moc needs support: precreate build paths
> +    for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
> +        mkdir -p "${B}/modules/gui/qt/$qtpath"
> +    done
>   }
>   
>   # This recipe packages vlc as a library as well, so qt4 dependencies
> 

-- 
Paul Barker
Managing Director & Principal Engineer
Beta Five Ltd


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] vlc: rework qt PACKAGECONFIG
  2019-04-22 23:55 ` Paul Barker
@ 2019-04-23  0:07   ` Andreas Müller
  2019-04-23  0:41     ` Paul Barker
  2019-04-23  6:08     ` Adrian Bunk
  0 siblings, 2 replies; 9+ messages in thread
From: Andreas Müller @ 2019-04-23  0:07 UTC (permalink / raw)
  To: Paul Barker; +Cc: openembeded-devel

On Tue, Apr 23, 2019 at 1:55 AM Paul Barker <paul@betafive.co.uk> wrote:
>
> On 23/04/2019 00:46, Andreas Müller wrote:
> > * qt4 support is gone -> move to qt5
> > * enable qt5 gui in case meta-qt5 is in layers (it is more or less useless
> >    without gui)
> > * while at it remove noop libtool copy
> >
> > Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
> > ---
> > V1 -> V2: Aargh again typo in commit messeage...
> >   .../recipes-multimedia/vlc/vlc.inc            | 25 ++++++++++++-------
> >   1 file changed, 16 insertions(+), 9 deletions(-)
> >
> > diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc.inc b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
> > index 19ac8206c..6ba1444b5 100644
> > --- a/meta-multimedia/recipes-multimedia/vlc/vlc.inc
> > +++ b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
> > @@ -36,12 +36,18 @@ EXTRA_OECONF = "\
> >       --enable-realrtsp \
> >       --disable-libtar \
> >       --enable-avcodec \
> > -    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
> > -    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
> > -    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
> > +    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
> > +    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
> > +    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
> >   "
> >
> > -PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
> > +PACKAGECONFIG ?= " \
> > +    live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
> > +    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
> > +    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)} \
>
> I don't like this change based on BBFILE_COLLECTIONS, it's just a
> different way of having things change when you add an extra layer. We
> wouldn't want an unconditional bbappend in meta-qt5 to set this and so
> we don't want to set it here when that layer is added.
>
> Perhaps we should have qt5 as a distro feature instead?
Isn't that a different naming for the same thing not working properly
if you don't have meta-qt5 in layers?

Andreas


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] vlc: rework qt PACKAGECONFIG
  2019-04-23  0:07   ` Andreas Müller
@ 2019-04-23  0:41     ` Paul Barker
  2019-04-23  6:08     ` Adrian Bunk
  1 sibling, 0 replies; 9+ messages in thread
From: Paul Barker @ 2019-04-23  0:41 UTC (permalink / raw)
  To: Andreas Müller; +Cc: openembeded-devel

On 23/04/2019 01:07, Andreas Müller wrote:
> On Tue, Apr 23, 2019 at 1:55 AM Paul Barker <paul@betafive.co.uk> wrote:
>>
>> On 23/04/2019 00:46, Andreas Müller wrote:
>>> * qt4 support is gone -> move to qt5
>>> * enable qt5 gui in case meta-qt5 is in layers (it is more or less useless
>>>     without gui)
>>> * while at it remove noop libtool copy
>>>
>>> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
>>> ---
>>> V1 -> V2: Aargh again typo in commit messeage...
>>>    .../recipes-multimedia/vlc/vlc.inc            | 25 ++++++++++++-------
>>>    1 file changed, 16 insertions(+), 9 deletions(-)
>>>
>>> diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc.inc b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
>>> index 19ac8206c..6ba1444b5 100644
>>> --- a/meta-multimedia/recipes-multimedia/vlc/vlc.inc
>>> +++ b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
>>> @@ -36,12 +36,18 @@ EXTRA_OECONF = "\
>>>        --enable-realrtsp \
>>>        --disable-libtar \
>>>        --enable-avcodec \
>>> -    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
>>> -    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
>>> -    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
>>> +    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
>>> +    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
>>> +    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
>>>    "
>>>
>>> -PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
>>> +PACKAGECONFIG ?= " \
>>> +    live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
>>> +    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
>>> +    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)} \
>>
>> I don't like this change based on BBFILE_COLLECTIONS, it's just a
>> different way of having things change when you add an extra layer. We
>> wouldn't want an unconditional bbappend in meta-qt5 to set this and so
>> we don't want to set it here when that layer is added.
>>
>> Perhaps we should have qt5 as a distro feature instead?
> Isn't that a different naming for the same thing not working properly
> if you don't have meta-qt5 in layers?
> 

Agreed, we shouldn't give people more opportunities to shoot themselves 
in the foot!

For my builds I have all layers added all the time and just 
enable/disable features as needed. So just because meta-qt5 is included 
as a layer doesn't mean I'm even building an x11 or weston 
configuration, it could be command line only in which case I wouldn't 
want this extra PACKAGECONFIG creeping in.

meta-virtualization handles this by gating overrides on a 
'virtualization' distro feature and adding a sanity check that you 
enabled that distro feature when adding the layer 
(http://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/tree/classes/sanity-meta-virt.bbclass). 
The sanity check can be disabled by setting SKIP_META_VIRT_SANITY_CHECK. 
I find it a bit messy but it does work.

What would work for this case is a bbappend in meta-qt5 which checks for 
the 'qt5' distro feature. The benefit of using a distro feature is that 
we can gate changes to other recipes on the same configuration setting 
so that we don't need to set lots of PACKAGECONFIG values explicitly in 
a distro or local.conf.

Forgive my 01:40 AM brain if any of that doesn't make sense.

> Andreas
> 

-- 
Paul Barker
Managing Director & Principal Engineer
Beta Five Ltd


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] vlc: rework qt PACKAGECONFIG
  2019-04-23  0:07   ` Andreas Müller
  2019-04-23  0:41     ` Paul Barker
@ 2019-04-23  6:08     ` Adrian Bunk
  2019-04-23 11:30       ` Andreas Müller
  1 sibling, 1 reply; 9+ messages in thread
From: Adrian Bunk @ 2019-04-23  6:08 UTC (permalink / raw)
  To: Andreas Müller; +Cc: openembeded-devel

On Tue, Apr 23, 2019 at 02:07:02AM +0200, Andreas Müller wrote:
> On Tue, Apr 23, 2019 at 1:55 AM Paul Barker <paul@betafive.co.uk> wrote:
> > On 23/04/2019 00:46, Andreas Müller wrote:
>...
> > > -PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
> > > +PACKAGECONFIG ?= " \
> > > +    live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
> > > +    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
> > > +    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)} \
> >
> > I don't like this change based on BBFILE_COLLECTIONS, it's just a
> > different way of having things change when you add an extra layer. We
> > wouldn't want an unconditional bbappend in meta-qt5 to set this and so
> > we don't want to set it here when that layer is added.
> >
> > Perhaps we should have qt5 as a distro feature instead?
> Isn't that a different naming for the same thing not working properly
> if you don't have meta-qt5 in layers?

Isn't this a reason for moving vlc out of meta-openembedded?
Or alternatively moving qt5 to meta-openembedded.

> Andreas

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] vlc: rework qt PACKAGECONFIG
  2019-04-23  6:08     ` Adrian Bunk
@ 2019-04-23 11:30       ` Andreas Müller
  2019-04-23 12:07         ` Paul Barker
  2019-04-23 12:19         ` Adrian Bunk
  0 siblings, 2 replies; 9+ messages in thread
From: Andreas Müller @ 2019-04-23 11:30 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: openembeded-devel

On Tue, Apr 23, 2019 at 8:08 AM Adrian Bunk <bunk@stusta.de> wrote:
> > > Perhaps we should have qt5 as a distro feature instead?
> > Isn't that a different naming for the same thing not working properly
> > if you don't have meta-qt5 in layers?
>
> Isn't this a reason for moving vlc out of meta-openembedded?
> Or alternatively moving qt5 to meta-openembedded.
>
> > Andreas
>
> cu
> Adrian
This discussion turns into the same direction as seen before on other occasions:

My priority is building images where things work out of the box and it
seems this expectation is not common here. There are several default
configurations around reducing things down to death to save build time
and make yocto script happy. I disagree completely but won't discuss
further. So I will

* send V3 of this patch not enabling qt5 if meta-qt5 is in layers
* add a bbappend to my meta-mortsgna because that's what distro layers are for

Andreas


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] vlc: rework qt PACKAGECONFIG
  2019-04-23 11:30       ` Andreas Müller
@ 2019-04-23 12:07         ` Paul Barker
  2019-04-23 12:19         ` Adrian Bunk
  1 sibling, 0 replies; 9+ messages in thread
From: Paul Barker @ 2019-04-23 12:07 UTC (permalink / raw)
  To: Andreas Müller, Adrian Bunk; +Cc: openembeded-devel

On 23/04/2019 12:30, Andreas Müller wrote:
> On Tue, Apr 23, 2019 at 8:08 AM Adrian Bunk <bunk@stusta.de> wrote:
>>>> Perhaps we should have qt5 as a distro feature instead?
>>> Isn't that a different naming for the same thing not working properly
>>> if you don't have meta-qt5 in layers?
>>
>> Isn't this a reason for moving vlc out of meta-openembedded?
>> Or alternatively moving qt5 to meta-openembedded.
>>
>>> Andreas
>>
>> cu
>> Adrian
> This discussion turns into the same direction as seen before on other occasions:
> 
> My priority is building images where things work out of the box and it
> seems this expectation is not common here. There are several default
> configurations around reducing things down to death to save build time
> and make yocto script happy. I disagree completely but won't discuss
> further. So I will
> 
> * send V3 of this patch not enabling qt5 if meta-qt5 is in layers
> * add a bbappend to my meta-mortsgna because that's what distro layers are for
> 
> Andreas
> 

The issue here is the different 'out of the box' situations Yocto needs 
to support. Some of the boards I've deployed images on have 16MB flash 
for the rootfs (with a greatly reduced write speed to the volume due to 
hardware bugs), others currently have a 16GB SD card in them.

Distro layers are the right place for making cut off decisions on the 
minimum you'll support. A distro config that produces 'out of the box' 
working images for a subset of the boards Yocto Project supports is 
definitely a good thing to have.

Thanks,

-- 
Paul Barker
Managing Director & Principal Engineer
Beta Five Ltd


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] vlc: rework qt PACKAGECONFIG
  2019-04-23 11:30       ` Andreas Müller
  2019-04-23 12:07         ` Paul Barker
@ 2019-04-23 12:19         ` Adrian Bunk
  1 sibling, 0 replies; 9+ messages in thread
From: Adrian Bunk @ 2019-04-23 12:19 UTC (permalink / raw)
  To: Andreas Müller; +Cc: openembeded-devel

On Tue, Apr 23, 2019 at 01:30:37PM +0200, Andreas Müller wrote:
> On Tue, Apr 23, 2019 at 8:08 AM Adrian Bunk <bunk@stusta.de> wrote:
> > > > Perhaps we should have qt5 as a distro feature instead?
> > > Isn't that a different naming for the same thing not working properly
> > > if you don't have meta-qt5 in layers?
> >
> > Isn't this a reason for moving vlc out of meta-openembedded?
> > Or alternatively moving qt5 to meta-openembedded.
> >
> > > Andreas
> >
> > cu
> > Adrian
> This discussion turns into the same direction as seen before on other occasions:
> 
> My priority is building images where things work out of the box and it
> seems this expectation is not common here. There are several default
> configurations around reducing things down to death to save build time
> and make yocto script happy. I disagree completely but won't discuss
> further.
>...

That's not what I was talking about.

My point is that there is no point in shipping it in meta-openembedded
if it is mostly useless without an additional layer.

This means vlc should be in the same layer as qt5.[1]
Which means one of the two recipes should be moved to a different layer.

> Andreas

cu
Adrian

[1] or vlc should be in a layer depending on meta-qt5

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] vlc: rework qt PACKAGECONFIG
@ 2019-04-23 11:55 Andreas Müller
  0 siblings, 0 replies; 9+ messages in thread
From: Andreas Müller @ 2019-04-23 11:55 UTC (permalink / raw)
  To: openembedded-devel

* qt4 support is gone -> move to qt5
* while at it remove noop libtool copy

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
V1 -> V2: Aargh again typo in commit message...
V2 -> V3: Do not enable qt5-gui by default

 .../recipes-multimedia/vlc/vlc.inc            | 24 ++++++++++++-------
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc.inc b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
index 19ac8206c..9bbc6685d 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc.inc
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
@@ -36,12 +36,17 @@ EXTRA_OECONF = "\
     --enable-realrtsp \
     --disable-libtar \
     --enable-avcodec \
-    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
-    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
-    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
+    ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
+    ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
+    ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
 "
 
-PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+PACKAGECONFIG ?= " \
+    live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+"
+
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
 
 PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
 PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
@@ -54,7 +59,7 @@ PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
 PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
 PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
 PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
-PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free"
+PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
 PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
 PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
 PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
@@ -76,12 +81,13 @@ PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb,  xcb-util
 PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
 PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
 
-do_configure_prepend() {
-    cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
-}
-
 do_configure_append() {
     sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
+
+    # moc needs support: precreate build paths
+    for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
+        mkdir -p "${B}/modules/gui/qt/$qtpath"
+    done
 }
 
 # This recipe packages vlc as a library as well, so qt4 dependencies
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-23 12:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-22 23:46 [PATCH] vlc: rework qt PACKAGECONFIG Andreas Müller
2019-04-22 23:55 ` Paul Barker
2019-04-23  0:07   ` Andreas Müller
2019-04-23  0:41     ` Paul Barker
2019-04-23  6:08     ` Adrian Bunk
2019-04-23 11:30       ` Andreas Müller
2019-04-23 12:07         ` Paul Barker
2019-04-23 12:19         ` Adrian Bunk
2019-04-23 11:55 Andreas Müller

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.