All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-qt5][morty][PATCH] qtwayland: Fix building of QWaylandIntegration if some Qt5 features are disabled.
Date: Fri, 13 Jan 2017 20:00:31 -0500	[thread overview]
Message-ID: <20170114010031.GJ15833@denix.org> (raw)
In-Reply-To: <CA+chaQfRmEW0MqeKGTeeTeQuDcr9mLufJAixWMNVFBztcT9zQg@mail.gmail.com>

Not sure about that, here's the output of git log -p qtwayland_git.bb from 
morty-next and seems to build fine:


commit 17abfb37eb59c7b78abe80aa45072ce0ed63491d
Author: Mikko Gronoff <mikko.gronoff@qt.io>
Date:   Wed Dec 28 08:06:54 2016 +0200

    qt5: update submodule SRCREVs to 5.7.1 release
    
    * squashed with https://patchwork.openembedded.org/patch/135662/
      qtwayland: update patch to apply with Qt 5.7.1
    
      Update 0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
      to apply on Qt 5.7.1 sources.
    
    Change-Id: I541f6fb5a706cdec3451dad015590a6624298a18
    Signed-off-by: Mikko Gronoff <mikko.gronoff@qt.io>
    Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb
index e315924..6ffc112 100644
--- a/recipes-qt/qt5/qtwayland_git.bb
+++ b/recipes-qt/qt5/qtwayland_git.bb
@@ -49,4 +49,4 @@ SRC_URI += " \
     file://0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch \
 "
 
-SRCREV = "a172672484b9496819e588b51ac2ff9fb4a21941"
+SRCREV = "4b23163fb64a5a8d05320dd006962cf2bcefcd84"

commit 5c5b6b3f30d7eae730b77d6701b4410416172951
Author: Vesa Jääskeläinen <dachaac@gmail.com>
Date:   Thu Dec 22 17:14:49 2016 -0500

    qtwayland: Fix building of QWaylandIntegration if some Qt5 features are 
disabled.
    
    QPlatformIntegration's interface methods are disabled based on 
QT_NO_OPENGL,
    QT_NO_CLIPBOARD, QT_NO_DRAGANDDROP, QT_NO_ACCESSIBILITY and
    QT_NO_SESSIONMANAGER, these has to be taken into account when compiling
    QtWayland.
    
    Signed-off-by: Vesa Jääskeläinen <dachaac@gmail.com>
    Signed-off-by: Denys Dmytriyenko <denys@ti.com>
    Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
    Signed-off-by: Denys Dmytriyenko <denys@ti.com>
    Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb
index b208961..e315924 100644
--- a/recipes-qt/qt5/qtwayland_git.bb
+++ b/recipes-qt/qt5/qtwayland_git.bb
@@ -46,6 +46,7 @@ FILES_${PN}-plugins-dbg += " \
 
 SRC_URI += " \
     file://0001-examples-wayland-include-server-buffer-only-when-bui.patch \
+    file://0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch \
 "
 
 SRCREV = "a172672484b9496819e588b51ac2ff9fb4a21941"



On Sat, Jan 14, 2017 at 01:30:23AM +0100, Martin Jansa wrote:
> Was it really merged?
> 
> Then why was it updated here instead of removing it completely?
> 
> https://patchwork.openembedded.org/patch/135662/
> 
> On Sat, Jan 14, 2017 at 12:24 AM, Denys Dmytriyenko <denis@denix.org> wrote:
> 
> > On Fri, Jan 13, 2017 at 06:06:56PM -0500, Denys Dmytriyenko wrote:
> > > On Fri, Jan 13, 2017 at 04:16:04PM -0500, Denys Dmytriyenko wrote:
> > > > On Wed, Jan 11, 2017 at 01:33:52AM +0100, Martin Jansa wrote:
> > > > > morty-next
> > > >
> > > > I'm getting this:
> > > >
> > > > qtwebengine-5.7.1+gitAUTOINC+9cc97f0c63_b3c79e92f0-r0 do_fetch:
> > Fetcher failure: Unable to find revision 9cc97f0c63049a8076476acc89c875c9e240abfb
> > in branch 5.7 even from upstream
> > >
> > > But the good news is that qtwayland no longer seem to require the patch
> > in
> > > question for QWaylandIntegration!
> >
> > Ah, Never mind - just noticed that the patch was already merged before
> > 5.7.1.
> >
> > I'll try fixing qtwebengine commit...
> >
> >
> > > > > On Wed, Jan 11, 2017 at 1:27 AM, Denys Dmytriyenko <denis@denix.org>
> > wrote:
> > > > >
> > > > > > On Mon, Jan 02, 2017 at 11:50:51AM +0100, Martin Jansa wrote:
> > > > > > > On Thu, Dec 22, 2016 at 05:14:49PM -0500, Denys Dmytriyenko
> > wrote:
> > > > > > > > From: Vesa Jääskeläinen <dachaac@gmail.com>
> > > > > > > >
> > > > > > > > QPlatformIntegration's interface methods are disabled based on
> > > > > > QT_NO_OPENGL,
> > > > > > > > QT_NO_CLIPBOARD, QT_NO_DRAGANDDROP, QT_NO_ACCESSIBILITY and
> > > > > > > > QT_NO_SESSIONMANAGER, these has to be taken into account when
> > compiling
> > > > > > > > QtWayland.
> > > > > > >
> > > > > > > Is this still needed with:
> > > > > > > [oe] [meta-qt5][morty][PATCH] qt5: update submodule SRCREVs to
> > 5.7.1
> > > > > > release
> > > > > > >
> > > > > > > The .patch doesn't apply in 5.7.1 anymore and I haven't had time
> > to find
> > > > > > > out why.
> > > > > >
> > > > > > I haven't tried it. Is 5.7.1 already in morty?
> > > > > >
> > > > > >
> > > > > > > > Signed-off-by: Vesa Jääskeläinen <dachaac@gmail.com>
> > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > > > > > > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > > > > > > > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > > > > > > > ---
> > > > > > > >  recipes-qt/qt5/qtwayland-native_git.bb             |   1 +
> > > > > > > >  ...g-of-QWaylandIntegration-if-some-Qt5-feat.patch | 156
> > > > > > +++++++++++++++++++++
> > > > > > > >  recipes-qt/qt5/qtwayland_git.bb                    |   1 +
> > > > > > > >  3 files changed, 158 insertions(+)
> > > > > > > >  create mode 100644 recipes-qt/qt5/qtwayland/0001-
> > Fix-building-of-
> > > > > > QWaylandIntegration-if-some-Qt5-feat.patch
> > > > > > > >
> > > > > > > > diff --git a/recipes-qt/qt5/qtwayland-native_git.bb
> > b/recipes-qt/qt5/
> > > > > > qtwayland-native_git.bb
> > > > > > > > index a214346..1149aa5 100644
> > > > > > > > --- a/recipes-qt/qt5/qtwayland-native_git.bb
> > > > > > > > +++ b/recipes-qt/qt5/qtwayland-native_git.bb
> > > > > > > > @@ -18,6 +18,7 @@ DEPENDS = "qtbase-native wayland-native"
> > > > > > > >
> > > > > > > >  SRC_URI += " \
> > > > > > > >      file://0001-Install-the-qtwaylandscanner-tool-to-the-
> > native-side.patch
> > > > > > \
> > > > > > > > +    file://0001-Fix-building-of-QWaylandIntegration-if-some-
> > Qt5-feat.patch
> > > > > > \
> > > > > > > >  "
> > > > > > > >
> > > > > > > >  do_configure() {
> > > > > > > > diff --git a/recipes-qt/qt5/qtwayland/0001-Fix-building-of-
> > > > > > QWaylandIntegration-if-some-Qt5-feat.patch
> > b/recipes-qt/qt5/qtwayland/
> > > > > > 0001-Fix-building-of-QWaylandIntegration-if-some-Qt5-feat.patch
> > > > > > > > new file mode 100644
> > > > > > > > index 0000000..d173e67
> > > > > > > > --- /dev/null
> > > > > > > > +++ b/recipes-qt/qt5/qtwayland/0001-Fix-building-of-
> > > > > > QWaylandIntegration-if-some-Qt5-feat.patch
> > > > > > > > @@ -0,0 +1,156 @@
> > > > > > > > +From de85e1c1ee76be845a21b441d9e4ea12a30d84c7 Mon Sep 17
> > 00:00:00
> > > > > > 2001
> > > > > > > > +From: =?UTF-8?q?Vesa=20J=C3=A4=C3=A4skel=C3=A4inen?= <
> > > > > > dachaac@gmail.com>
> > > > > > > > +Date: Sun, 18 Sep 2016 11:51:59 +0300
> > > > > > > > +Subject: [PATCH] Fix building of QWaylandIntegration if some
> > Qt5
> > > > > > features are
> > > > > > > > + disabled.
> > > > > > > > +
> > > > > > > > +QPlatformIntegration's interface methods are disabled based on
> > > > > > QT_NO_OPENGL,
> > > > > > > > +QT_NO_CLIPBOARD, QT_NO_DRAGANDDROP, QT_NO_ACCESSIBILITY and
> > > > > > > > +QT_NO_SESSIONMANAGER, these has to be taken into account when
> > > > > > compiling
> > > > > > > > +QtWayland.
> > > > > > > > +---
> > > > > > > > + src/client/qwaylandintegration.cpp | 21
> > ++++++++++++++++++---
> > > > > > > > + src/client/qwaylandintegration_p.h | 12 ++++++++++++
> > > > > > > > + 2 files changed, 30 insertions(+), 3 deletions(-)
> > > > > > > > +
> > > > > > > > +diff --git a/src/client/qwaylandintegration.cpp b/src/client/
> > > > > > qwaylandintegration.cpp
> > > > > > > > +index 39fff53..481e3d6 100644
> > > > > > > > +--- a/src/client/qwaylandintegration.cpp
> > > > > > > > ++++ b/src/client/qwaylandintegration.cpp
> > > > > > > > +@@ -39,7 +39,9 @@
> > > > > > > > + #include "qwaylandinputcontext_p.h"
> > > > > > > > + #include "qwaylandshmbackingstore_p.h"
> > > > > > > > + #include "qwaylandnativeinterface_p.h"
> > > > > > > > ++#ifndef QT_NO_CLIPBOARD
> > > > > > > > + #include "qwaylandclipboard_p.h"
> > > > > > > > ++#endif
> > > > > > > > + #include "qwaylanddnd_p.h"
> > > > > > > > + #include "qwaylandwindowmanagerintegration_p.h"
> > > > > > > > + #include "qwaylandscreen_p.h"
> > > > > > > > +@@ -57,7 +59,9 @@
> > > > > > > > + #include <QSocketNotifier>
> > > > > > > > +
> > > > > > > > + #include <qpa/qplatforminputcontextfactory_p.h>
> > > > > > > > ++#ifndef QT_NO_ACCESSIBILITY
> > > > > > > > + #include <qpa/qplatformaccessibility.h>
> > > > > > > > ++#endif
> > > > > > > > + #include <qpa/qplatforminputcontext.h>
> > > > > > > > +
> > > > > > > > + #include "qwaylandhardwareintegration_p.h"
> > > > > > > > +@@ -117,8 +121,6 @@ QWaylandIntegration::
> > QWaylandIntegration()
> > > > > > > > +     , mNativeInterface(new QWaylandNativeInterface(this))
> > > > > > > > + #ifndef QT_NO_ACCESSIBILITY
> > > > > > > > +     , mAccessibility(new QPlatformAccessibility())
> > > > > > > > +-#else
> > > > > > > > +-    , mAccessibility(0)
> > > > > > > > + #endif
> > > > > > > > +     , mClientBufferIntegrationInitialized(false)
> > > > > > > > +     , mServerBufferIntegrationInitialized(false)
> > > > > > > > +@@ -126,9 +128,12 @@ QWaylandIntegration::
> > QWaylandIntegration()
> > > > > > > > + {
> > > > > > > > +     initializeInputDeviceIntegration();
> > > > > > > > +     mDisplay = new QWaylandDisplay(this);
> > > > > > > > ++#ifndef QT_NO_CLIPBOARD
> > > > > > > > +     mClipboard = new QWaylandClipboard(mDisplay);
> > > > > > > > ++#endif
> > > > > > > > ++#ifndef QT_NO_DRAGANDDROP
> > > > > > > > +     mDrag = new QWaylandDrag(mDisplay);
> > > > > > > > +-
> > > > > > > > ++#endif
> > > > > > > > +     QString icStr = QPlatformInputContextFactory::
> > requested();
> > > > > > > > +     icStr.isNull() ? mInputContext.reset(new
> > > > > > QWaylandInputContext(mDisplay))
> > > > > > > > +                    : mInputContext.reset(
> > > > > > QPlatformInputContextFactory::create(icStr));
> > > > > > > > +@@ -136,8 +141,12 @@ QWaylandIntegration::
> > QWaylandIntegration()
> > > > > > > > +
> > > > > > > > + QWaylandIntegration::~QWaylandIntegration()
> > > > > > > > + {
> > > > > > > > ++#ifndef QT_NO_DRAGANDDROP
> > > > > > > > +     delete mDrag;
> > > > > > > > ++#endif
> > > > > > > > ++#ifndef QT_NO_CLIPBOARD
> > > > > > > > +     delete mClipboard;
> > > > > > > > ++#endif
> > > > > > > > + #ifndef QT_NO_ACCESSIBILITY
> > > > > > > > +     delete mAccessibility;
> > > > > > > > + #endif
> > > > > > > > +@@ -213,15 +222,19 @@ QPlatformFontDatabase
> > *QWaylandIntegration::fontDatabase()
> > > > > > const
> > > > > > > > +     return mFontDb;
> > > > > > > > + }
> > > > > > > > +
> > > > > > > > ++#ifndef QT_NO_CLIPBOARD
> > > > > > > > + QPlatformClipboard *QWaylandIntegration::clipboard() const
> > > > > > > > + {
> > > > > > > > +     return mClipboard;
> > > > > > > > + }
> > > > > > > > ++#endif
> > > > > > > > +
> > > > > > > > ++#ifndef QT_NO_DRAGANDDROP
> > > > > > > > + QPlatformDrag *QWaylandIntegration::drag() const
> > > > > > > > + {
> > > > > > > > +     return mDrag;
> > > > > > > > + }
> > > > > > > > ++#endif
> > > > > > > > +
> > > > > > > > + QPlatformInputContext *QWaylandIntegration::inputContext()
> > const
> > > > > > > > + {
> > > > > > > > +@@ -243,10 +256,12 @@ QVariant QWaylandIntegration::
> > styleHint(StyleHint
> > > > > > hint) const
> > > > > > > > +     return QPlatformIntegration::styleHint(hint);
> > > > > > > > + }
> > > > > > > > +
> > > > > > > > ++#ifndef QT_NO_ACCESSIBILITY
> > > > > > > > + QPlatformAccessibility *QWaylandIntegration::accessibility()
> > const
> > > > > > > > + {
> > > > > > > > +     return mAccessibility;
> > > > > > > > + }
> > > > > > > > ++#endif
> > > > > > > > +
> > > > > > > > + QPlatformServices *QWaylandIntegration::services() const
> > > > > > > > + {
> > > > > > > > +diff --git a/src/client/qwaylandintegration_p.h b/src/client/
> > > > > > qwaylandintegration_p.h
> > > > > > > > +index 987d805..b50ad95 100644
> > > > > > > > +--- a/src/client/qwaylandintegration_p.h
> > > > > > > > ++++ b/src/client/qwaylandintegration_p.h
> > > > > > > > +@@ -80,15 +80,21 @@ public:
> > > > > > > > +
> > > > > > > > +     QPlatformNativeInterface *nativeInterface() const
> > > > > > Q_DECL_OVERRIDE;
> > > > > > > > +
> > > > > > > > ++#ifndef QT_NO_CLIPBOARD
> > > > > > > > +     QPlatformClipboard *clipboard() const Q_DECL_OVERRIDE;
> > > > > > > > ++#endif
> > > > > > > > +
> > > > > > > > ++#ifndef QT_NO_DRAGANDDROP
> > > > > > > > +     QPlatformDrag *drag() const Q_DECL_OVERRIDE;
> > > > > > > > ++#endif
> > > > > > > > +
> > > > > > > > +     QPlatformInputContext *inputContext() const
> > Q_DECL_OVERRIDE;
> > > > > > > > +
> > > > > > > > +     QVariant styleHint(StyleHint hint) const Q_DECL_OVERRIDE;
> > > > > > > > +
> > > > > > > > ++#ifndef QT_NO_ACCESSIBILITY
> > > > > > > > +     QPlatformAccessibility *accessibility() const
> > Q_DECL_OVERRIDE;
> > > > > > > > ++#endif
> > > > > > > > +
> > > > > > > > +     QPlatformServices *services() const Q_DECL_OVERRIDE;
> > > > > > > > +
> > > > > > > > +@@ -117,12 +123,18 @@ private:
> > > > > > > > +     void initializeInputDeviceIntegration();
> > > > > > > > +
> > > > > > > > +     QPlatformFontDatabase *mFontDb;
> > > > > > > > ++#ifndef QT_NO_CLIPBOARD
> > > > > > > > +     QPlatformClipboard *mClipboard;
> > > > > > > > ++#endif
> > > > > > > > ++#ifndef QT_NO_DRAGANDDROP
> > > > > > > > +     QPlatformDrag *mDrag;
> > > > > > > > ++#endif
> > > > > > > > +     QWaylandDisplay *mDisplay;
> > > > > > > > +     QPlatformNativeInterface *mNativeInterface;
> > > > > > > > +     QScopedPointer<QPlatformInputContext> mInputContext;
> > > > > > > > ++#ifndef QT_NO_ACCESSIBILITY
> > > > > > > > +     QPlatformAccessibility *mAccessibility;
> > > > > > > > ++#endif
> > > > > > > > +     bool mClientBufferIntegrationInitialized;
> > > > > > > > +     bool mServerBufferIntegrationInitialized;
> > > > > > > > +     bool mShellIntegrationInitialized;
> > > > > > > > +--
> > > > > > > > +2.7.4
> > > > > > > > +
> > > > > > > > diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/
> > > > > > qtwayland_git.bb
> > > > > > > > index b208961..e315924 100644
> > > > > > > > --- a/recipes-qt/qt5/qtwayland_git.bb
> > > > > > > > +++ b/recipes-qt/qt5/qtwayland_git.bb
> > > > > > > > @@ -46,6 +46,7 @@ FILES_${PN}-plugins-dbg += " \
> > > > > > > >
> > > > > > > >  SRC_URI += " \
> > > > > > > >      file://0001-examples-wayland-include-server-buffer-only-
> > when-bui.patch
> > > > > > \
> > > > > > > > +    file://0001-Fix-building-of-QWaylandIntegration-if-some-
> > Qt5-feat.patch
> > > > > > \
> > > > > > > >  "
> > > > > > > >
> > > > > > > >  SRCREV = "a172672484b9496819e588b51ac2ff9fb4a21941"
> > > > > > > > --
> > > > > > > > 2.7.4
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > >
> > > > > >
> > > > > >
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >


  reply	other threads:[~2017-01-14  1:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-22 22:14 [meta-qt5][morty][PATCH] qtwayland: Fix building of QWaylandIntegration if some Qt5 features are disabled Denys Dmytriyenko
2017-01-02 10:50 ` Martin Jansa
2017-01-11  0:27   ` Denys Dmytriyenko
2017-01-11  0:33     ` Martin Jansa
2017-01-13 21:16       ` Denys Dmytriyenko
2017-01-13 23:06         ` Denys Dmytriyenko
2017-01-13 23:24           ` Denys Dmytriyenko
2017-01-14  0:30             ` Martin Jansa
2017-01-14  1:00               ` Denys Dmytriyenko [this message]
2017-01-14 11:39                 ` Martin Jansa

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=20170114010031.GJ15833@denix.org \
    --to=denis@denix.org \
    --cc=martin.jansa@gmail.com \
    --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.