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