Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727704 - [kde overlay] kde-plasma/plasma-workspace-9999[qrcode] needs kde-frameworks/prison[qml]
Summary: [kde overlay] kde-plasma/plasma-workspace-9999[qrcode] needs kde-frameworks/p...
Status: RESOLVED DUPLICATE of bug 726514
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-09 17:30 UTC by jospezial
Modified: 2020-06-17 13:08 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2020-06-09 17:30:34 UTC
https://github.com/KDE/plasma-workspace/commit/7bd9bea0723ca52161b77fa2f01fd818e01bb258
"[Clipboard Plasmoid] Port to Prison QML import"

kde-plasma/plasma-workspace-9999 does not fail to emerge without kde-frameworks/prison but Clipboard Plasmoid does not show the entries.

Clipboard Plasmoid shows:
Error loading QML file: file:///usr/share/plasma/plasmoids/org.kde.plasma.clipboard/contents/ui/clipboard.qml:110:13: Type BarcodePage unavailable
file:///usr/share/plasma/plasmoids/org.kde.plasma.clipboard/contents/ui/BarcodePage.qml:26:1: module "org.kde.prison" is not installed
Comment 1 Andreas Sturmlechner gentoo-dev 2020-06-09 17:52:11 UTC
It already depends on prison via IUSE=qrcode. What this definitely means is that the existing dependency needs to be extended to prison[qml].
Comment 2 jospezial 2020-06-10 01:50:40 UTC
(In reply to Andreas Sturmlechner from comment #1)
> It already depends on prison via IUSE=qrcode. What this definitely means is
> that the existing dependency needs to be extended to prison[qml].

I have that error when USE flag "qrcode" is disabled:
=================================================================
                        Package Settings
=================================================================

kde-plasma/plasma-workspace-9999::kde was built with the following:
USE="calendar qalculate semantic-desktop -appstream -debug -geolocation -gps -handbook -qrcode -systemd -telemetry -test" ABI_X86="(64)"
FEATURES="strict unknown-features-warn news distlocks xattr merge-sync network-sandbox multilib-strict unmerge-orphans binpkg-dostrip usersync sfperms unmerge-logs assume-digests binpkg-logs userpriv ipc-sandbox userfetch parallel-fetch fixlafiles usersandbox sandbox pid-sandbox ccache ebuild-locks preserve-libs config-protect-if-modified protect-owned qa-unresolved-soname-deps binpkg-docompress"

Will try later with enabled USE flag(s).
Comment 3 Larry the Git Cow gentoo-dev 2020-06-15 09:11:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=f47d1c401916a91121d5103e96a7f78f7099420c

commit f47d1c401916a91121d5103e96a7f78f7099420c
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-06-15 08:50:10 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-06-15 08:52:08 +0000

    kde-plasma/plasma-workspace: Update IUSE=qrcode USE-dep
    
    Upstream commit 7bd9bea0723ca52161b77fa2f01fd818e01bb258
    
    Reported-by: jospezial <jospezial@gmx.de>
    Bug: https://bugs.gentoo.org/727704
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 jospezial 2020-06-16 09:51:59 UTC
After setting the qrcode USE flag and


emerge -uvat1D @world --newuse --with-bdeps=y ;eject -T
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[nomerge       ] kde-plasma/plasma-desktop-9999:5::kde  USE="fontconfig semantic-desktop -debug -emoji -handbook -ibus -scim -test"
[ebuild   R   *]  kde-plasma/plasma-workspace-9999:5::kde  USE="calendar qalculate qrcode* semantic-desktop -appstream -debug -geolocation -gps -handbook -systemd -telemetry -test" 0 KiB
[ebuild  N    *]   kde-frameworks/prison-9999:5/9999::kde  USE="qml -debug -doc -test" 0 KiB
[ebuild  N     ]    media-gfx/qrencode-4.0.2:0/4::gentoo  USE="-test" 421 KiB
[ebuild  N     ]    media-libs/libdmtx-0.7.5::gentoo  USE="-static-libs" 773 KiB

Total: 4 packages (3 new, 1 reinstall), Size of downloads: 1.193 KiB


the Clipboard Plasmoid is useable again.
Even without the qrcode USE flag the plasmoid unconditionally needs the packages to work.
Comment 5 Andreas Sturmlechner gentoo-dev 2020-06-16 14:03:55 UTC
Here's the problem:

- IUSE=qrcode so far had been checking optional support in klipper
- However, the runtime dependency was added to (applets/)clipboard

Easy fix: Drop qrcode.
Comment 6 Larry the Git Cow gentoo-dev 2020-06-16 14:09:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=c295146adff5c20c8da41a91dfe407ae91c7fb18

commit c295146adff5c20c8da41a91dfe407ae91c7fb18
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-06-16 14:08:46 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-06-16 14:08:46 +0000

    kde-plasma/plasma-workspace: Drop IUSE=qrcode
    
    Closes: https://bugs.gentoo.org/727704
    Package-Manager: Portage-2.3.101, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 7 jospezial 2020-06-16 23:22:27 UTC
>>> Configuring source in /var/tmp/portage/kde-plasma/plasma-workspace-9999/work/plasma-workspace-9999 ...
 * ERROR: kde-plasma/plasma-workspace-9999::kde failed (configure phase):
 *   USE Flag 'qrcode' not in IUSE for kde-plasma/plasma-workspace-9999
 * 
 * Call stack:
 *          ebuild.sh, line  125:  Called src_configure
 *        environment, line 3243:  Called cmake_use_find_package 'qrcode' 'KF5Prison'
 *        environment, line 1559:  Called use 'qrcode'
 *   phase-helpers.sh, line  247:  Called die
 * The specific snippet of code:
 *                              die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
Comment 8 Larry the Git Cow gentoo-dev 2020-06-16 23:24:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=aa0f7c75396d3a8e02988c30b32903d45b474d5b

commit aa0f7c75396d3a8e02988c30b32903d45b474d5b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-06-16 23:24:09 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-06-16 23:24:09 +0000

    kde-plasma/plasma-workspace: Remove qrcode remnant
    
    Bug: https://bugs.gentoo.org/727704
    Package-Manager: Portage-2.3.101, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild | 1 -
 1 file changed, 1 deletion(-)
Comment 9 Duncan 2020-06-17 12:16:02 UTC
Umm... This should be a duplicate of bug 726514, where I was told that it's an upstream bug, and I filed it accordingly as 
https://bugs.kde.org/show_bug.cgi?id=422308

A simple workaround commenting a few lines of code at the bottom of clipboard.qml, is mentioned there.  Obviously that's a hard-disable so it's not appropriate for production, but it demonstrates that code is the problem.

Given the continued existence of the upstream option it should still be an upstream bug, and hard-enabling it and the deps it requires is as incorrect a fix as my demonstration commenting the code to hard-disable it.
Comment 10 Andreas Sturmlechner gentoo-dev 2020-06-17 13:08:13 UTC
(In reply to Duncan from comment #9)
> Umm... This should be a duplicate of bug 726514, where I was told that it's
> an upstream bug, and I filed it accordingly as 
> https://bugs.kde.org/show_bug.cgi?id=422308
So far so good, yes, but...

(In reply to Duncan from comment #9)
> Given the continued existence of the upstream option it should still be an
> upstream bug, and hard-enabling it and the deps it requires is as incorrect
> a fix as my demonstration commenting the code to hard-disable it.
...IUSE=qrcode can only stay or be reintroduced if upstream is showing interest to support the option.

*** This bug has been marked as a duplicate of bug 726514 ***