Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd/files/, sys-apps/fwupd/
Date: Tue, 15 Jun 2021 23:05:00
Message-Id: 1623797626.663a25c8d581d31ef58930aea642af90bbf1bdc8.whissi@gentoo
1 commit: 663a25c8d581d31ef58930aea642af90bbf1bdc8
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 15 22:45:53 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 15 22:53:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=663a25c8
7
8 sys-apps/fwupd: switch to upstream patch
9
10 Bug: https://bugs.gentoo.org/796143
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 .../files/fwupd-1.6.1-fix-python-detection.patch | 51 ++++++++++++++++++++++
15 ...-revert-Change-python-version-check-order.patch | 25 -----------
16 sys-apps/fwupd/fwupd-1.6.1-r1.ebuild | 2 +-
17 3 files changed, 52 insertions(+), 26 deletions(-)
18
19 diff --git a/sys-apps/fwupd/files/fwupd-1.6.1-fix-python-detection.patch b/sys-apps/fwupd/files/fwupd-1.6.1-fix-python-detection.patch
20 new file mode 100644
21 index 00000000000..b5da660e643
22 --- /dev/null
23 +++ b/sys-apps/fwupd/files/fwupd-1.6.1-fix-python-detection.patch
24 @@ -0,0 +1,51 @@
25 +From 1a53fc57e8b5cd2de571ad5f1119c90ac8082f7a Mon Sep 17 00:00:00 2001
26 +From: Mario Limonciello <superm1@×××××.com>
27 +Date: Tue, 15 Jun 2021 08:10:06 -0500
28 +Subject: [PATCH 1/2] Revert "meson.build: Change python version check order"
29 +
30 +This reverts commit 1b396215d9396680b1b6b5c14c6f57f2226ff0a9.
31 +---
32 + meson.build | 2 +-
33 + 1 file changed, 1 insertion(+), 1 deletion(-)
34 +
35 +diff --git a/meson.build b/meson.build
36 +index 1f89e6070..0ae12a1a7 100644
37 +--- a/meson.build
38 ++++ b/meson.build
39 +@@ -252,7 +252,7 @@ libm = cc.find_library('m', required: false)
40 + libgcab = dependency('libgcab-1.0', version : '>= 1.0', fallback : ['gcab', 'gcab_dep'])
41 + gcab = find_program('gcab', required : get_option('tests'))
42 + bashcomp = dependency('bash-completion', required: false)
43 +-python3 = find_program('python3.8', 'python3', 'python3.9')
44 ++python3 = find_program('python3')
45 +
46 + if get_option('gnutls')
47 + gnutls = dependency('gnutls', version : '>= 3.6.0')
48 +
49 +From f4ef486da80a3b5916f8a58f10a70f30cf05f756 Mon Sep 17 00:00:00 2001
50 +From: Mario Limonciello <superm1@×××××.com>
51 +Date: Tue, 15 Jun 2021 08:13:17 -0500
52 +Subject: [PATCH 2/2] trivial: fix a regression in Gentoo detecting python
53 + versions
54 +
55 +---
56 + meson.build | 6 +++++-
57 + 1 file changed, 5 insertions(+), 1 deletion(-)
58 +
59 +diff --git a/meson.build b/meson.build
60 +index 0ae12a1a7..6e09ac69b 100644
61 +--- a/meson.build
62 ++++ b/meson.build
63 +@@ -252,7 +252,11 @@ libm = cc.find_library('m', required: false)
64 + libgcab = dependency('libgcab-1.0', version : '>= 1.0', fallback : ['gcab', 'gcab_dep'])
65 + gcab = find_program('gcab', required : get_option('tests'))
66 + bashcomp = dependency('bash-completion', required: false)
67 +-python3 = find_program('python3')
68 ++if host_machine.system() != 'freebsd'
69 ++ python3 = find_program('python3')
70 ++else
71 ++ python3 = find_program('python3.8', 'python3', 'python3.9')
72 ++endif
73 +
74 + if get_option('gnutls')
75 + gnutls = dependency('gnutls', version : '>= 3.6.0')
76
77 diff --git a/sys-apps/fwupd/files/fwupd-1.6.1-revert-Change-python-version-check-order.patch b/sys-apps/fwupd/files/fwupd-1.6.1-revert-Change-python-version-check-order.patch
78 deleted file mode 100644
79 index d1c1b140830..00000000000
80 --- a/sys-apps/fwupd/files/fwupd-1.6.1-revert-Change-python-version-check-order.patch
81 +++ /dev/null
82 @@ -1,25 +0,0 @@
83 -commit 72a470fd607a40e8f23c1f2407faf69e91350783
84 -Author: Thomas Deutschmann <whissi@g.o>
85 -AuthorDate: Tue Jun 15 14:11:24 2021 +0200
86 -Commit: Thomas Deutschmann <whissi@g.o>
87 -CommitDate: Tue Jun 15 14:11:24 2021 +0200
88 -
89 - Revert "meson.build: Change python version check order"
90 -
91 - This reverts commit 1b396215d9396680b1b6b5c14c6f57f2226ff0a9.
92 -
93 - This is causing a regression for Gentoo, https://bugs.gentoo.org/796143.
94 -
95 -diff --git a/meson.build b/meson.build
96 -index 5d507515..1e0e350a 100644
97 ---- a/meson.build
98 -+++ b/meson.build
99 -@@ -252,7 +252,7 @@ libm = cc.find_library('m', required: false)
100 - libgcab = dependency('libgcab-1.0', version : '>= 1.0', fallback : ['gcab', 'gcab_dep'])
101 - gcab = find_program('gcab', required : get_option('tests'))
102 - bashcomp = dependency('bash-completion', required: false)
103 --python3 = find_program('python3.8', 'python3', 'python3.9')
104 -+python3 = find_program('python3')
105 -
106 - if get_option('gnutls')
107 - gnutls = dependency('gnutls', version : '>= 3.6.0')
108
109 diff --git a/sys-apps/fwupd/fwupd-1.6.1-r1.ebuild b/sys-apps/fwupd/fwupd-1.6.1-r1.ebuild
110 index cad45969bcb..e258342be62 100644
111 --- a/sys-apps/fwupd/fwupd-1.6.1-r1.ebuild
112 +++ b/sys-apps/fwupd/fwupd-1.6.1-r1.ebuild
113 @@ -87,7 +87,7 @@ DEPEND="
114
115 PATCHES=(
116 "${FILESDIR}"/${PN}-1.5.7-logind_plugin.patch
117 - "${FILESDIR}"/${PN}-1.6.1-revert-Change-python-version-check-order.patch
118 + "${FILESDIR}"/${P}-fix-python-detection.patch
119 )
120
121 pkg_setup() {