Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818997 - dev-qt/qtwayland-5.15.2-r14 may install no files (was: x11-misc/copyq-5.0.0 fails to compile)
Summary: dev-qt/qtwayland-5.15.2-r14 may install no files (was: x11-misc/copyq-5.0.0 f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard: dev-qt/qtwayland-5.15.2-r15
Keywords:
Depends on: 828047
Blocks:
  Show dependency tree
 
Reported: 2021-10-20 11:42 UTC by Agostino Sarubbo
Modified: 2021-12-16 12:29 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,54.29 KB, text/plain)
2021-10-20 11:42 UTC, Agostino Sarubbo
Details
1-CMakeOutput.log (1-CMakeOutput.log,46.79 KB, text/plain)
2021-10-20 11:42 UTC, Agostino Sarubbo
Details
qtwayland build.log + emerge --info.txt (build.log-emerge-info.txt,11.09 KB, text/plain)
2021-10-20 15:08 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-10-20 11:42:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-misc/copyq-5.0.0 fails to compile.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-10-20 11:42:16 UTC
CC'ing also the author of the commit (3f99aff1b352066b103f74e1cc284f1a4f1bbc96)
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-20 11:42:17 UTC
Created attachment 745860 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2021-10-20 11:42:18 UTC
Created attachment 745863 [details]
1-CMakeOutput.log

1-CMakeOutput.log
Comment 4 Agostino Sarubbo gentoo-dev 2021-10-20 11:42:19 UTC
Possible context of error(s):

  Could NOT find QtWaylandScanner (missing: QtWaylandScanner_EXECUTABLE)
Comment 5 Christian Schroeder 2021-10-20 12:17:31 UTC
Did a quick rebuild on my machine (also GCC 11) and couldn't reproduce this error. QtWaylandScanner is provided by the dev-qt/qtwayland dependency, which you do have installed, so that's a little surprising.

In my case, the qtwaylandscanner binary resides in /usr/lib64/qt5/bin/. Can you check if it actually exists on your system?

Also, in case you ever tried, were you able to compile 4.1.0?
Comment 6 Agostino Sarubbo gentoo-dev 2021-10-20 12:18:59 UTC
did you try the same use combo? I see -X
Comment 7 Christian Schroeder 2021-10-20 12:32:31 UTC
Can't try it out right now, but looks like that might be the culprit. Are you using -X on purpose? It should be enabled by default on all desktop profiles.
Comment 8 Ionen Wolkens gentoo-dev 2021-10-20 15:08:35 UTC
Created attachment 745920 [details]
qtwayland build.log + emerge --info.txt

Looks like a qtwayland bug rather than this package.

Here's the build.log for my qtwayland.. it didn't install a single file, so of course it's not finding it.

This is on a minimal system with a lot of things disabled, including USE=-wayland

(In reply to Christian Schroeder from comment #7)
> Can't try it out right now, but looks like that might be the culprit. Are
> you using -X on purpose? It should be enabled by default on all desktop
> profiles.
Among other things, tinderboxes are trying to find missing dependencies -- and defaults that can be freely disabled aren't a resolution to that. Not that -X was the issue here.
Comment 9 Ionen Wolkens gentoo-dev 2021-10-20 15:13:56 UTC
(In reply to Ionen Wolkens from comment #8)
> Not that -X was the issue here.
Actually, correction, it /is/ the issue -- or at least on a USE=-wayland system.

Not that this changes qtwayland installing nothing isn't right, so I don't think copyq depending on [X] would be right.
Comment 10 Christian Schroeder 2021-10-20 19:31:40 UTC
(In reply to Ionen Wolkens from comment #8)
> Here's the build.log for my qtwayland.. it didn't install a single file, so
> of course it's not finding it.

But is that actually caused by -X? It seems from the logs that it doesn't build (and install) anything because it can't find Wayland, which is an unconditional dependency of dev-qt/qtwayland and should thus be present... Or is it that qmake doesn't find Wayland even though it's installed?
Comment 11 Ionen Wolkens gentoo-dev 2021-10-20 19:42:58 UTC
(In reply to Christian Schroeder from comment #10)
> (In reply to Ionen Wolkens from comment #8)
> > Here's the build.log for my qtwayland.. it didn't install a single file, so
> > of course it's not finding it.
> 
> But is that actually caused by -X? It seems from the logs that it doesn't
> build (and install) anything because it can't find Wayland, which is an
> unconditional dependency of dev-qt/qtwayland and should thus be present...
> Or is it that qmake doesn't find Wayland even though it's installed?
With USE=X it does build something, it's likely a combination of having both X disabled on this and wayland disabled other stuff that leads to getting nothing (i.e. a configuration that doesn't really make sense but is currently allowed). Not that I really looked into it much.
Comment 12 Ionen Wolkens gentoo-dev 2021-10-20 19:57:55 UTC
(In reply to Ionen Wolkens from comment #11)
> > But is that actually caused by -X? It seems from the logs that it doesn't
> > build (and install) anything because it can't find Wayland, which is an
> > unconditional dependency of dev-qt/qtwayland and should thus be present...
> > Or is it that qmake doesn't find Wayland even though it's installed?
Oh I see now, it's because qtwayland has no BDEPEND on dev-util/wayland-scanner
Comment 13 Christian Schroeder 2021-10-20 20:15:58 UTC
(In reply to Ionen Wolkens from comment #12)
> Oh I see now, it's because qtwayland has no BDEPEND on
> dev-util/wayland-scanner
If that fixes it for you, then I think this might be a different issue than what Agostino reported since according to his logs, he did have wayland-scanner installed when he emerged qtwayland (which requires wayland, which in turn has a BDEPEND on wayland-scanner).
Comment 14 Ionen Wolkens gentoo-dev 2021-10-20 20:34:55 UTC
(In reply to Christian Schroeder from comment #13)
> (In reply to Ionen Wolkens from comment #12)
> > Oh I see now, it's because qtwayland has no BDEPEND on
> > dev-util/wayland-scanner
> If that fixes it for you, then I think this might be a different issue than
> what Agostino reported since according to his logs, he did have
> wayland-scanner installed when he emerged qtwayland (which requires wayland,
> which in turn has a BDEPEND on wayland-scanner).
Hrm, you're right. There may be more reasons it can end up installing no files.

Kind of bother me that it doesn't simply error out when dependencies are missing. I'll just leave the summary reasons open to discussion.
Comment 15 Ionen Wolkens gentoo-dev 2021-10-20 20:42:32 UTC
@ago maybe check if your qtwayland really has no installed files just to be sure this is really what's happening for you as well?
Comment 16 Davide Pesavento (RETIRED) gentoo-dev 2021-10-20 21:56:28 UTC
I still cannot reproduce ionen's configure output:

> Running configuration tests...
> Checking for Wayland client library... no
> Checking for Wayland EGL library... no
> Checking for wayland-server... no
> Done running configuration tests.

even without wayland-scanner installed. What I get is:

> Running configuration tests...
> Checking for Wayland client library... yes
> Checking for Wayland cursor library... yes
> Checking for wayland-scanner... no
> Checking for Wayland EGL library... yes
> Checking for wayland-server... yes
> Done running configuration tests.

That being said, a dep on dev-util/wayland-scanner is definitely missing from qtwayland. It looks like dev-libs/wayland used to provide wayland-scanner, but that was split off into its own package at some point (https://github.com/gentoo/gentoo/pull/18751)

(In reply to Ionen Wolkens from comment #14)
> Kind of bother me that it doesn't simply error out when dependencies are
> missing. I'll just leave the summary reasons open to discussion.

Yes that's annoying... and it happens with other Qt5 packages as well.
Comment 17 Ionen Wolkens gentoo-dev 2021-10-20 22:21:32 UTC
(In reply to Davide Pesavento from comment #16)
> I still cannot reproduce ionen's configure output:
Oh my bad, while I /was/ getting empty qtwayland because of wayland-scanner (binpkg wayland, so it was never needed), the log had something more.

My test scripts emerges dependencies with native-symlinks, except for the last package (which turned out to be qtwayland when I tried it individually), and I forgot to turn that off which I normally do given I know full well qmake doesn't play well without them.

That aside, native-symlinks were enabled in ago's log, so it's not that.
Comment 18 Ionen Wolkens gentoo-dev 2021-10-20 23:16:14 UTC
Wait a minute, what's going on here?

dev-qt/qtgui-5.15.2-r13:5/5.15.2 -accessibility -dbus -debug egl -eglfs -evdev gif -gles2-only -ibus -jpeg libinput -linuxfb png -test -tslib -tuio udev -vnc -vulkan -wayland -X

REQUIRED_USE="
    || ( eglfs X )

yet both are unset

There was another oddity at bug #819027

Is something up with ago's tinderbox?
Comment 19 Larry the Git Cow gentoo-dev 2021-10-20 23:48:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=62332410050ad50c0751ab255531c23531096207

commit 62332410050ad50c0751ab255531c23531096207
Author:     Davide Pesavento <pesa@gentoo.org>
AuthorDate: 2021-10-20 23:48:13 +0000
Commit:     Davide Pesavento <pesa@gentoo.org>
CommitDate: 2021-10-20 23:48:13 +0000

    dev-qt/qtwayland: add missing dep on dev-util/wayland-scanner
    
    Bug: https://bugs.gentoo.org/818997
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Davide Pesavento <pesa@gentoo.org>

 dev-qt/qtwayland/qtwayland-5.15.2.9999.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 20 Ionen Wolkens gentoo-dev 2021-10-21 01:00:55 UTC
Well, I tried many random combinations of flags (given list doesn't seem to reflect what's used), but couldn't find another situation where I can reproduce this (only with no wayland-scanner, or -native-symlinks).

I think need ago's help here, or at least to verify if this qtwayland is really installing no files.
Comment 21 Larry the Git Cow gentoo-dev 2021-11-07 23:42:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4766d8df05d3c6fa584a6b81f684cb51568227e

commit b4766d8df05d3c6fa584a6b81f684cb51568227e
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-10-16 12:52:53 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-11-07 23:38:49 +0000

    dev-qt/qtwayland: 5.15.2-r15 version bump at KDE 992833ca
    
    Add missing dep on dev-util/wayland-scanner.
    
    Upstream fixes:
    
    "Fix the logic for decoding modifiers map in Wayland text input protocol"
    QTBUG: https://bugreports.qt.io/browse/QTBUG-97094
    
    "Wayland client: use wl_keyboard to determine active state"
    https://codereview.qt-project.org/c/qt/qtwayland/+/367306
    Pre-requisite of fix in kde-frameworks/kio-5.88.0, see also:
    https://invent.kde.org/frameworks/kio/-/merge_requests/619
    KDE-bug: https://bugs.kde.org/show_bug.cgi?id=421974
    
    "Client: do not empty clipboard when a new popup/window is opened"
    QTBUG: https://bugreports.qt.io/browse/QTBUG-93474
    
    Thanks-to: Davide Pesavento <pesa@gentoo.org>
    Bug: https://bugs.gentoo.org/818997
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtwayland/Manifest                    |  1 +
 dev-qt/qtwayland/qtwayland-5.15.2-r15.ebuild | 44 ++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
Comment 22 Larry the Git Cow gentoo-dev 2021-12-16 12:29:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f72c0101bc5af17f71c36ed37ec42ff3d3f272cb

commit f72c0101bc5af17f71c36ed37ec42ff3d3f272cb
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-12-16 12:20:16 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-12-16 12:23:59 +0000

    dev-qt/qtwayland: Drop 5.15.2-r14
    
    Closes: https://bugs.gentoo.org/818997
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtwayland/Manifest                    |  1 -
 dev-qt/qtwayland/qtwayland-5.15.2-r14.ebuild | 42 ----------------------------
 2 files changed, 43 deletions(-)