Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935779 - [guru] gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1 fails to compile: Could not find a package configuration file provided by QT with any of the following names: Qt6Config.cmake
Summary: [guru] gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1 fails to compile: Could ...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Remigiusz Micielski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-09 07:07 UTC by Agostino Sarubbo
Modified: 2024-07-25 10:10 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,67.29 KB, text/plain)
2024-07-09 07:07 UTC, Agostino Sarubbo
Details
sucefful-build.log (xdg-desktop-portal-hyprland-1.3.2-r1.log,43.11 KB, text/x-log)
2024-07-09 11:09 UTC, Gonçalo Negrier Duarte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-07-09 07:07:54 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1 fails to compile.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-07-09 07:07:55 UTC
Created attachment 897355 [details]
build.log

build log and emerge --info
Comment 2 Gonçalo Negrier Duarte 2024-07-09 11:09:19 UTC
Created attachment 897367 [details]
sucefful-build.log

As you can see in this log the CMAKE QT error don't appear, also this emerge was made after a sync.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-09 12:44:28 UTC
(In reply to Gonçalo Negrier Duarte from comment #2)
> Created attachment 897367 [details]
> sucefful-build.log
> 
> As you can see in this log the CMAKE QT error don't appear, also this emerge
> was made after a sync.

Please pay close attention to the log.

ago's log has:
>  * USE:        abi_x86_64 amd64 elibc_glibc elogind kernel_linux

With that USE, qt6 isn't depended on.

Also, the USE=qt5/qt6 looks wrong if it doesn't do anything in src_configure...
Comment 4 Gonçalo Negrier Duarte 2024-07-09 21:11:11 UTC
(In reply to Sam James from comment #3)
> (In reply to Gonçalo Negrier Duarte from comment #2)
> > Created attachment 897367 [details]
> > sucefful-build.log
> > 
> > As you can see in this log the CMAKE QT error don't appear, also this emerge
> > was made after a sync.
> 
> Please pay close attention to the log.
> 
> ago's log has:
> >  * USE:        abi_x86_64 amd64 elibc_glibc elogind kernel_linux
> 
> With that USE, qt6 isn't depended on.
> 
> Also, the USE=qt5/qt6 looks wrong if it doesn't do anything in
> src_configure...

Well we use the qt6 flag to tell portage to emerge the qt6 dependencies is set, otherwise will use qt5, that why src_configure dosen't have nothing set to qt.

Basically qt is only use to display the Hyprland Portal UI when you open a app that need confirmation, like obs to select the window/display to be recorded
Comment 5 John M. Harris, Jr. 2024-07-10 00:58:55 UTC
Does it only build with qt6? If so, it should just have a dependency on qt6.

I'll give a qt5 build a try.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-10 08:07:33 UTC
(In reply to Gonçalo Negrier Duarte from comment #4)
> Well we use the qt6 flag to tell portage to emerge the qt6 dependencies is
> set, otherwise will use qt5, that why src_configure dosen't have nothing set
> to qt.
> 
> Basically qt is only use to display the Hyprland Portal UI when you open a
> app that need confirmation, like obs to select the window/display to be
> recorded

Yes, but this is invalid. Please see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies.

If the user has USE="-qt6" but qt6 installed, qt6 will be used regardless, which may result in e.g. broken binary packages.

Similarly, it also appears (from ago's bug), that if the upstream build system always requires Qt 6, that a no-Qt6-install isn't even possible.
Comment 7 John M. Harris, Jr. 2024-07-10 17:03:33 UTC
It looks like a subproject, hyprland-share-picker, has a hard dep on qt6.
Comment 8 Gonçalo Negrier Duarte 2024-07-10 18:12:17 UTC
(In reply to John M. Harris, Jr. from comment #7)
> It looks like a subproject, hyprland-share-picker, has a hard dep on qt6.

Didn’t catch that last tag 1.3.1 wasn’t the case that why this bug didn’t exist.
Comment 9 Gonçalo Negrier Duarte 2024-07-10 18:13:17 UTC
Better to just drop the useflag I guess?
Comment 10 Gonçalo Negrier Duarte 2024-07-22 19:11:00 UTC
Well gonna drop the qt6 useflag in the new version
Comment 11 Gonçalo Negrier Duarte 2024-07-22 19:17:21 UTC
John you forget to add the Close to the commits.
You might need to closes this one and https://bugs.gentoo.org/936487
Comment 12 Larry the Git Cow gentoo-dev 2024-07-25 10:10:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f2fabcf9d662492d5b6bab1ffe79dd5a615e774c

commit f2fabcf9d662492d5b6bab1ffe79dd5a615e774c
Author:     Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
AuthorDate: 2024-07-22 19:26:36 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
CommitDate: 2024-07-22 19:28:45 +0000

    gui-libs/xdg-desktop-portal-hyprland: hyprland-share-picker hard
    requires qt6
    * applying qt6 migration to all ebuilds
    
    Closes: https://bugs.gentoo.org/935779
    Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>

 ...1.3.3-r1.ebuild => xdg-desktop-portal-hyprland-1.3.3-r2.ebuild} | 5 +----
 .../xdg-desktop-portal-hyprland-9999.ebuild                        | 7 ++-----
 2 files changed, 3 insertions(+), 9 deletions(-)