1 |
commit: e6136c72860ce96ca3829cb0423c98f9c25b5a99 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 14:30:18 2022 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 14:33:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6136c72 |
7 |
|
8 |
sys-apps/fwupd: Bump to version 1.8.0 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
sys-apps/fwupd/Manifest | 1 + |
13 |
sys-apps/fwupd/fwupd-1.8.0.ebuild | 176 ++++++++++++++++++++++++++++++++++++++ |
14 |
sys-apps/fwupd/metadata.xml | 1 + |
15 |
3 files changed, 178 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest |
18 |
index c7c78912ca5c..40c6998d67a2 100644 |
19 |
--- a/sys-apps/fwupd/Manifest |
20 |
+++ b/sys-apps/fwupd/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST fwupd-1.7.5.tar.gz 4014523 BLAKE2B b7297bbf3358209464691b928b928fa029c68ae6a3bc413d514409e4382bf8a3b0d57f4febc29a24d6351481474dd8111406ffdcb11125139fbc04a33ea00321 SHA512 1c2d99d905f76ebfce65db310ba0f6c1305ecf662b58bd9f6f6597ccc79cbabed126c97f2142207c99d8373ed42575363a58d9f053f390780b7c9a19c614fb31 |
23 |
DIST fwupd-1.7.6.tar.gz 4054269 BLAKE2B dea4a37aea406e933f312fb809ee2ea972e3b017e5267d51bed835b6d440c15ca1d589f76a6c1906e616acc7cdd6c0f6dcec034e1460427057d8a1168583c4ce SHA512 f04ee78a6ec9e73ce0f3eb9c2dcbfc471ac88264451a378f1b0010fa528596052b4d3a63f5303074dd4fad55bf153fe5642d77adebd4ed805d74f57fbbff5b2b |
24 |
DIST fwupd-1.7.7.tar.gz 4057638 BLAKE2B 197d7b8a8de64094d267bb4e2de30101373bcc52fd54d12dc2590a50f2bcebbcfe00847d19c0088d2c778743d219ee73c0237db711ad27e36f7126f7c615ccf7 SHA512 a787ffdff93f483ad97547d335c50a4db7b61bce1bc27d737b077bbedfa4676c8d6d37db94ac24083c50e3bfde8aefd4d1adb3d0e473303f454a46dde136df0a |
25 |
+DIST fwupd-1.8.0.tar.gz 4103239 BLAKE2B 15d06a261be1f529573a0f3b21a54066b1b286e1d1c68ac24f3862f7e3a8855661775b369016d67fbc9797fd13dea88000e78d1a6973e489ecaa6f7f6855b3cf SHA512 8977e0b0878e46480565a32935cc008d57d3978609c01877e3a90dc594b122bed0c94613a53f0f2d3f50d8a039b09cb93787aaf7e0b5d8cf1ec1a6247fe1610b |
26 |
|
27 |
diff --git a/sys-apps/fwupd/fwupd-1.8.0.ebuild b/sys-apps/fwupd/fwupd-1.8.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..bec0c043cece |
30 |
--- /dev/null |
31 |
+++ b/sys-apps/fwupd/fwupd-1.8.0.ebuild |
32 |
@@ -0,0 +1,176 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+ |
40 |
+inherit bash-completion-r1 linux-info meson python-single-r1 vala xdg |
41 |
+ |
42 |
+DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable" |
43 |
+HOMEPAGE="https://fwupd.org" |
44 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="LGPL-2.1+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
49 |
+IUSE="amt archive bash-completion bluetooth cbor dell elogind fastboot flashrom gnutls gtk-doc gusb introspection logitech lzma +man minimal modemmanager nvme policykit spi +sqlite synaptics systemd test thunderbolt tpm uefi" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
51 |
+ ^^ ( elogind minimal systemd ) |
52 |
+ dell? ( uefi ) |
53 |
+ fastboot? ( gusb ) |
54 |
+ logitech? ( gusb ) |
55 |
+ minimal? ( !introspection ) |
56 |
+ spi? ( lzma ) |
57 |
+ synaptics? ( gnutls ) |
58 |
+ uefi? ( gnutls ) |
59 |
+" |
60 |
+RESTRICT="!test? ( test )" |
61 |
+ |
62 |
+BDEPEND="$(vala_depend) |
63 |
+ >=dev-util/meson-0.60.0 |
64 |
+ virtual/pkgconfig |
65 |
+ gtk-doc? ( dev-util/gtk-doc ) |
66 |
+ bash-completion? ( >=app-shells/bash-completion-2.0 ) |
67 |
+ introspection? ( dev-libs/gobject-introspection ) |
68 |
+ man? ( |
69 |
+ app-text/docbook-sgml-utils |
70 |
+ sys-apps/help2man |
71 |
+ ) |
72 |
+ test? ( |
73 |
+ thunderbolt? ( dev-util/umockdev ) |
74 |
+ net-libs/gnutls[tools] |
75 |
+ ) |
76 |
+" |
77 |
+COMMON_DEPEND="${PYTHON_DEPS} |
78 |
+ >=app-arch/gcab-1.0 |
79 |
+ app-arch/xz-utils |
80 |
+ >=dev-libs/glib-2.58:2 |
81 |
+ dev-libs/json-glib |
82 |
+ dev-libs/libgudev:= |
83 |
+ >=dev-libs/libjcat-0.1.4[gpg,pkcs7] |
84 |
+ >=dev-libs/libxmlb-0.1.13:=[introspection?] |
85 |
+ $(python_gen_cond_dep ' |
86 |
+ dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] |
87 |
+ ') |
88 |
+ >=net-libs/libsoup-2.51.92:2.4[introspection?] |
89 |
+ net-misc/curl |
90 |
+ archive? ( app-arch/libarchive:= ) |
91 |
+ cbor? ( dev-libs/libcbor ) |
92 |
+ dell? ( >=sys-libs/libsmbios-2.4.0 ) |
93 |
+ elogind? ( >=sys-auth/elogind-211 ) |
94 |
+ flashrom? ( >=sys-apps/flashrom-1.2-r3 ) |
95 |
+ gnutls? ( net-libs/gnutls ) |
96 |
+ gusb? ( >=dev-libs/libgusb-0.3.5[introspection?] ) |
97 |
+ logitech? ( dev-libs/protobuf-c:= ) |
98 |
+ lzma? ( app-arch/xz-utils ) |
99 |
+ modemmanager? ( net-misc/modemmanager[qmi] ) |
100 |
+ policykit? ( >=sys-auth/polkit-0.114 ) |
101 |
+ sqlite? ( dev-db/sqlite ) |
102 |
+ systemd? ( >=sys-apps/systemd-211 ) |
103 |
+ tpm? ( app-crypt/tpm2-tss:= ) |
104 |
+ uefi? ( |
105 |
+ sys-apps/fwupd-efi |
106 |
+ sys-boot/efibootmgr |
107 |
+ sys-fs/udisks |
108 |
+ sys-libs/efivar |
109 |
+ ) |
110 |
+" |
111 |
+RDEPEND=" |
112 |
+ ${COMMON_DEPEND} |
113 |
+ sys-apps/dbus |
114 |
+" |
115 |
+ |
116 |
+DEPEND=" |
117 |
+ ${COMMON_DEPEND} |
118 |
+ x11-libs/pango[introspection] |
119 |
+" |
120 |
+ |
121 |
+pkg_setup() { |
122 |
+ python-single-r1_pkg_setup |
123 |
+ vala_setup |
124 |
+ if use nvme ; then |
125 |
+ kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4" |
126 |
+ fi |
127 |
+} |
128 |
+ |
129 |
+src_prepare() { |
130 |
+ default |
131 |
+ # c.f. https://github.com/fwupd/fwupd/issues/1414 |
132 |
+ sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \ |
133 |
+ -i plugins/thunderbolt/meson.build || die |
134 |
+ |
135 |
+ sed -e '/platform-integrity/d' \ |
136 |
+ -i plugins/meson.build || die #753521 |
137 |
+ |
138 |
+ sed -e "/install_dir.*'doc'/s/fwupd/${PF}/" \ |
139 |
+ -i data/builder/meson.build || die |
140 |
+} |
141 |
+ |
142 |
+src_configure() { |
143 |
+ local plugins=( |
144 |
+ -Dplugin_gpio="enabled" |
145 |
+ $(meson_feature amt plugin_amt) |
146 |
+ $(meson_feature dell plugin_dell) |
147 |
+ $(meson_feature fastboot plugin_fastboot) |
148 |
+ $(meson_feature flashrom plugin_flashrom) |
149 |
+ $(meson_feature gusb plugin_uf2) |
150 |
+ $(meson_feature logitech plugin_logitech_bulkcontroller) |
151 |
+ $(meson_feature modemmanager plugin_modem_manager) |
152 |
+ $(meson_feature nvme plugin_nvme) |
153 |
+ $(meson_use spi plugin_intel_spi) |
154 |
+ $(meson_feature synaptics plugin_synaptics_mst) |
155 |
+ $(meson_feature synaptics plugin_synaptics_rmi) |
156 |
+ $(meson_feature thunderbolt plugin_thunderbolt) |
157 |
+ $(meson_feature tpm plugin_tpm) |
158 |
+ $(meson_feature uefi plugin_uefi_capsule) |
159 |
+ $(meson_use uefi plugin_uefi_capsule_splash) |
160 |
+ $(meson_feature uefi plugin_uefi_pk) |
161 |
+ ) |
162 |
+ if use ppc64 || use riscv ; then |
163 |
+ plugins+=( -Dplugin_msr="disabled" ) |
164 |
+ fi |
165 |
+ |
166 |
+ local emesonargs=( |
167 |
+ --localstatedir "${EPREFIX}"/var |
168 |
+ -Dbuild="$(usex minimal standalone all)" |
169 |
+ -Dconsolekit="disabled" |
170 |
+ -Dcurl="disabled" |
171 |
+ -Ddocs="$(usex gtk-doc gtkdoc none)" |
172 |
+ -Defi_binary="false" |
173 |
+ -Dsupported_build="true" |
174 |
+ $(meson_feature archive libarchive) |
175 |
+ $(meson_use bash-completion bash_completion) |
176 |
+ $(meson_feature bluetooth bluez) |
177 |
+ $(meson_feature cbor) |
178 |
+ $(meson_feature elogind) |
179 |
+ $(meson_feature gnutls) |
180 |
+ $(meson_feature gusb) |
181 |
+ $(meson_feature lzma) |
182 |
+ $(meson_use man) |
183 |
+ $(meson_feature introspection) |
184 |
+ $(meson_feature policykit polkit) |
185 |
+ $(meson_feature sqlite) |
186 |
+ $(meson_feature systemd) |
187 |
+ $(meson_use test tests) |
188 |
+ |
189 |
+ ${plugins[@]} |
190 |
+ ) |
191 |
+ use uefi && emesonargs+=( -Defi_os_dir="gentoo" ) |
192 |
+ export CACHE_DIRECTORY="${T}" |
193 |
+ meson_src_configure |
194 |
+} |
195 |
+ |
196 |
+src_install() { |
197 |
+ meson_src_install |
198 |
+ |
199 |
+ if ! use minimal ; then |
200 |
+ newinitd "${FILESDIR}"/${PN}-r2 ${PN} |
201 |
+ |
202 |
+ if ! use systemd ; then |
203 |
+ # Don't timeout when fwupd is running (#673140) |
204 |
+ sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \ |
205 |
+ -i "${ED}"/etc/${PN}/daemon.conf || die |
206 |
+ fi |
207 |
+ fi |
208 |
+} |
209 |
|
210 |
diff --git a/sys-apps/fwupd/metadata.xml b/sys-apps/fwupd/metadata.xml |
211 |
index 0016b0a19524..5ad610d49abe 100644 |
212 |
--- a/sys-apps/fwupd/metadata.xml |
213 |
+++ b/sys-apps/fwupd/metadata.xml |
214 |
@@ -12,6 +12,7 @@ |
215 |
<use> |
216 |
<flag name="archive">Use <pkg>app-arch/libarchive</pkg> for archives support</flag> |
217 |
<flag name="amt">Build and install Intel AMT plugin</flag> |
218 |
+ <flag name="cbor">Enable CBOR support for coSWID and uSWID via <pkg>dev-libs/libcbor</pkg></flag> |
219 |
<flag name="dell">Enable Dell-specific support</flag> |
220 |
<flag name="fastboot">Build and install fastboot plugin</flag> |
221 |
<flag name="flashrom">Enable flashrom plugin via <pkg>sys-apps/flashrom</pkg></flag> |