Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/yubioath-desktop/files/, app-crypt/yubioath-desktop/
Date: Thu, 20 Jan 2022 21:21:54
Message-Id: 1642713029.4b8610761ef3da96cacfe7fb2874f9d8af9ea68d.marecki@gentoo
1 commit: 4b8610761ef3da96cacfe7fb2874f9d8af9ea68d
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 20 21:10:29 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 20 21:10:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b861076
7
8 app-crypt/yubioath-desktop: do not import legacy QtQuick module
9
10 yubioath-desktop looks for Qt Quick Controls 2 at configure time yet one of
11 the QML scripts attempts to import QtQuick.Dialogs - which belongs to
12 deprecated Qt Quick Controls 1. Patch the offending import out so that
13 said QML script uses the class Dialog from QtQuick.Controls instead;
14 fortunately the two classes are largely API-compatible and the script
15 does not seem to trigger any of the (few according to documentation)
16 incompatibilities which do exist.
17
18 Closes: https://bugs.gentoo.org/831506
19 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
20
21 .../files/yubioath-desktop-5.1.0-qtquickcontrols1.patch | 10 ++++++++++
22 ...esktop-5.1.0-r1.ebuild => yubioath-desktop-5.1.0-r2.ebuild} | 7 +++++--
23 2 files changed, 15 insertions(+), 2 deletions(-)
24
25 diff --git a/app-crypt/yubioath-desktop/files/yubioath-desktop-5.1.0-qtquickcontrols1.patch b/app-crypt/yubioath-desktop/files/yubioath-desktop-5.1.0-qtquickcontrols1.patch
26 new file mode 100644
27 index 000000000000..f5d80643bf84
28 --- /dev/null
29 +++ b/app-crypt/yubioath-desktop/files/yubioath-desktop-5.1.0-qtquickcontrols1.patch
30 @@ -0,0 +1,10 @@
31 +--- a/qml/NewCredentialView.qml
32 ++++ b/qml/NewCredentialView.qml
33 +@@ -3,7 +3,6 @@
34 + import QtQuick.Layouts 1.3
35 + import QtQuick.Controls.Material 2.2
36 + import QtGraphicalEffects 1.0
37 +-import QtQuick.Dialogs 1.2
38 + import Qt.labs.platform 1.0
39 + import QtQuick.Window 2.2
40 +
41
42 diff --git a/app-crypt/yubioath-desktop/yubioath-desktop-5.1.0-r1.ebuild b/app-crypt/yubioath-desktop/yubioath-desktop-5.1.0-r2.ebuild
43 similarity index 90%
44 rename from app-crypt/yubioath-desktop/yubioath-desktop-5.1.0-r1.ebuild
45 rename to app-crypt/yubioath-desktop/yubioath-desktop-5.1.0-r2.ebuild
46 index c2f7b927166a..4c36fdb3a992 100644
47 --- a/app-crypt/yubioath-desktop/yubioath-desktop-5.1.0-r1.ebuild
48 +++ b/app-crypt/yubioath-desktop/yubioath-desktop-5.1.0-r2.ebuild
49 @@ -1,4 +1,4 @@
50 -# Copyright 1999-2021 Gentoo Authors
51 +# Copyright 1999-2022 Gentoo Authors
52 # Distributed under the terms of the GNU General Public License v2
53
54 EAPI=8
55 @@ -34,7 +34,10 @@ RDEPEND="${DEPEND}
56 $(python_gen_cond_dep '>=app-crypt/yubikey-manager-4.0.0[${PYTHON_USEDEP}]')
57 dev-python/pyotherside[${PYTHON_SINGLE_USEDEP}]"
58
59 -PATCHES=( "${FILESDIR}"/${P}-bin-installdir.patch )
60 +PATCHES=(
61 + "${FILESDIR}"/${P}-bin-installdir.patch
62 + "${FILESDIR}"/${P}-qtquickcontrols1.patch
63 +)
64
65 src_prepare() {
66 default