1 |
commit: d55f77e871a9ff9d09e330e957a2f5ec3a77af64 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 19 08:42:51 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 19 08:49:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d55f77e8 |
7 |
|
8 |
sys-apps/fwupd: Bump to version 1.4.5 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-apps/fwupd/Manifest | 1 + |
14 |
sys-apps/fwupd/fwupd-1.4.5.ebuild | 165 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 166 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest |
18 |
index 109db0674b8..26b19a70483 100644 |
19 |
--- a/sys-apps/fwupd/Manifest |
20 |
+++ b/sys-apps/fwupd/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST fwupd-1.3.10.tar.gz 2255394 BLAKE2B 39f517b7648236f39df6f41b5950fcba45a1184 |
22 |
DIST fwupd-1.3.11.tar.gz 2255359 BLAKE2B 0f91c32602459d31e53c63647762307cfe2313c553e16836cc646eb04e3ac54ebd53d2e8615afb7f43b8cd79b7e6315ed688ae04b57de851be62ed6065579ebf SHA512 e300a84a1c2d7e44e2a1d5d86300487783fc3990b20b540065f9899705569bee8996eae951f32b6fac559e76955ff9b661aa9b181e4dc0211a33a514613ffddd |
23 |
DIST fwupd-1.4.2.tar.gz 2304086 BLAKE2B 9a725cc49479984c3a98b75e9c52211a26f81d4a7ecec3b261ff4486201a967a6c82df9a1dbd591b91d9cd6eb9d1a8cd8cccfd2c8dd98d5bb3f82cb03bbd0a52 SHA512 b092eedf3e5e84874de1fddb7f14ca87975d5895721ac4f87b6c88ec7c7b2367e573b30906588f9adad4cea52da5ebbaaa4a9c38a2273e8f31d26399e719166e |
24 |
DIST fwupd-1.4.4.tar.gz 2311975 BLAKE2B 04ba05e157a1662dcd5fa8a3835701ff6c39935aa5e2d91e2aad3f7c7f5449ce56ac8f85bd4df4c3f4901c1d55d036f159eaf761761086bb1eda770021d38160 SHA512 9ce2ee8963789b99e43ebd3a76ba2851339bde6bda0c85198bbac11ebca76525385f41223956410bc1cff72318de463031f7e38b784fc5a4bf9bc2a85788db1a |
25 |
+DIST fwupd-1.4.5.tar.gz 2318208 BLAKE2B 1e46137f5b72ff104d920771e54e3123bd0665cafd20c75327682a7e4284be93f8e284947db91892c29a153803013bab8ac45e5a0263fcda33b7491c53dd5558 SHA512 47eb40e8d84dc49af783b661db0fce0fb800c4581929becffb03b79c41ed8bfb0987f40fbb8262292b24af85b7f91978a6979ea7458058ee2bfc1a4353d0bd31 |
26 |
|
27 |
diff --git a/sys-apps/fwupd/fwupd-1.4.5.ebuild b/sys-apps/fwupd/fwupd-1.4.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..246c5406ba1 |
30 |
--- /dev/null |
31 |
+++ b/sys-apps/fwupd/fwupd-1.4.5.ebuild |
32 |
@@ -0,0 +1,165 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
39 |
+ |
40 |
+inherit linux-info meson python-single-r1 vala xdg toolchain-funcs |
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 ~x86" |
49 |
+IUSE="agent amt consolekit dell gtk-doc elogind minimal introspection +man nvme redfish synaptics systemd test thunderbolt tpm uefi" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
51 |
+ ^^ ( consolekit elogind minimal systemd ) |
52 |
+ dell? ( uefi ) |
53 |
+ minimal? ( !introspection ) |
54 |
+" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+BDEPEND="$(vala_depend) |
58 |
+ virtual/pkgconfig |
59 |
+ gtk-doc? ( dev-util/gtk-doc ) |
60 |
+ introspection? ( dev-libs/gobject-introspection ) |
61 |
+ man? ( |
62 |
+ app-text/docbook-sgml-utils |
63 |
+ sys-apps/help2man |
64 |
+ ) |
65 |
+ test? ( |
66 |
+ thunderbolt? ( dev-util/umockdev ) |
67 |
+ net-libs/gnutls[tools] |
68 |
+ ) |
69 |
+" |
70 |
+CDEPEND="${PYTHON_DEPS} |
71 |
+ >=app-arch/gcab-1.0 |
72 |
+ app-arch/libarchive:= |
73 |
+ dev-db/sqlite |
74 |
+ >=dev-libs/glib-2.45.8:2 |
75 |
+ dev-libs/json-glib |
76 |
+ dev-libs/libgpg-error |
77 |
+ dev-libs/libgudev:= |
78 |
+ >=dev-libs/libgusb-0.2.9[introspection?] |
79 |
+ >=dev-libs/libjcat-0.1.0[gpg,pkcs7] |
80 |
+ >=dev-libs/libxmlb-0.1.13:= |
81 |
+ $(python_gen_cond_dep ' |
82 |
+ dev-python/pillow[${PYTHON_MULTI_USEDEP}] |
83 |
+ dev-python/pycairo[${PYTHON_MULTI_USEDEP}] |
84 |
+ dev-python/pygobject:3[cairo,${PYTHON_MULTI_USEDEP}] |
85 |
+ ') |
86 |
+ >=net-libs/libsoup-2.51.92:2.4[introspection?] |
87 |
+ virtual/libelf:0= |
88 |
+ virtual/udev |
89 |
+ consolekit? ( >=sys-auth/consolekit-1.0.0 ) |
90 |
+ dell? ( |
91 |
+ sys-libs/efivar |
92 |
+ >=sys-libs/libsmbios-2.4.0 |
93 |
+ ) |
94 |
+ elogind? ( sys-auth/elogind ) |
95 |
+ !minimal? ( |
96 |
+ >=sys-auth/polkit-0.103 |
97 |
+ ) |
98 |
+ nvme? ( sys-libs/efivar ) |
99 |
+ redfish? ( sys-libs/efivar ) |
100 |
+ systemd? ( >=sys-apps/systemd-211 ) |
101 |
+ tpm? ( app-crypt/tpm2-tss ) |
102 |
+ uefi? ( |
103 |
+ app-crypt/tpm2-tss |
104 |
+ media-libs/fontconfig |
105 |
+ media-libs/freetype |
106 |
+ sys-boot/gnu-efi |
107 |
+ sys-boot/efibootmgr |
108 |
+ >=sys-libs/efivar-33 |
109 |
+ x11-libs/cairo |
110 |
+ ) |
111 |
+" |
112 |
+# Block sci-chemistry/chemical-mime-data for bug #701900 |
113 |
+RDEPEND=" |
114 |
+ !<sci-chemistry/chemical-mime-data-0.1.94-r4 |
115 |
+ ${CDEPEND} |
116 |
+ sys-apps/dbus |
117 |
+" |
118 |
+ |
119 |
+DEPEND=" |
120 |
+ ${CDEPEND} |
121 |
+ x11-libs/pango[introspection] |
122 |
+" |
123 |
+ |
124 |
+PATCHES=( |
125 |
+ "${FILESDIR}/${PN}-1.3.9-logind_plugin.patch" |
126 |
+ "${FILESDIR}/${PN}-1.4.4-help2man_var.patch" #728484 |
127 |
+) |
128 |
+ |
129 |
+pkg_setup() { |
130 |
+ python-single-r1_pkg_setup |
131 |
+ if use nvme; then |
132 |
+ kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4" |
133 |
+ fi |
134 |
+} |
135 |
+ |
136 |
+src_prepare() { |
137 |
+ default |
138 |
+ # c.f. https://github.com/fwupd/fwupd/issues/1414 |
139 |
+ sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \ |
140 |
+ -i plugins/thunderbolt/meson.build || die |
141 |
+ vala_src_prepare |
142 |
+} |
143 |
+ |
144 |
+src_configure() { |
145 |
+ local emesonargs=( |
146 |
+ --localstatedir "${EPREFIX}"/var |
147 |
+ -Dbuild="$(usex minimal standalone all)" |
148 |
+ $(meson_use agent) |
149 |
+ $(meson_use amt plugin_amt) |
150 |
+ $(meson_use consolekit) |
151 |
+ $(meson_use dell plugin_dell) |
152 |
+ $(meson_use elogind) |
153 |
+ $(meson_use gtk-doc gtkdoc) |
154 |
+ $(meson_use man) |
155 |
+ $(meson_use nvme plugin_nvme) |
156 |
+ $(meson_use introspection) |
157 |
+ $(meson_use redfish plugin_redfish) |
158 |
+ $(meson_use synaptics plugin_synaptics) |
159 |
+ $(meson_use systemd) |
160 |
+ $(meson_use test tests) |
161 |
+ $(meson_use thunderbolt plugin_thunderbolt) |
162 |
+ $(meson_use tpm plugin_tpm) |
163 |
+ $(meson_use uefi plugin_uefi) |
164 |
+ # Although our sys-apps/flashrom package now provides |
165 |
+ # libflashrom.a, meson still can't find it |
166 |
+ -Dplugin_flashrom="false" |
167 |
+ # Dependencies are not available (yet?) |
168 |
+ -Dplugin_modem_manager="false" |
169 |
+ ) |
170 |
+ export CACHE_DIRECTORY="${T}" |
171 |
+ meson_src_configure |
172 |
+} |
173 |
+ |
174 |
+src_install() { |
175 |
+ meson_src_install |
176 |
+ |
177 |
+ if ! use minimal ; then |
178 |
+ sed "s@%SEAT_MANAGER%@$(usex elogind elogind consolekit)@" \ |
179 |
+ "${FILESDIR}"/${PN}-r1 \ |
180 |
+ > "${T}"/${PN} || die |
181 |
+ doinitd "${T}"/${PN} |
182 |
+ |
183 |
+ if ! use systemd ; then |
184 |
+ # Don't timeout when fwupd is running (#673140) |
185 |
+ sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \ |
186 |
+ -i "${ED}"/etc/${PN}/daemon.conf || die |
187 |
+ fi |
188 |
+ fi |
189 |
+} |
190 |
+ |
191 |
+pkg_postinst() { |
192 |
+ xdg_pkg_postinst |
193 |
+ elog "In case you are using openrc as init system" |
194 |
+ elog "and you're upgrading from <fwupd-1.1.0, you" |
195 |
+ elog "need to start the fwupd daemon via the openrc" |
196 |
+ elog "init script that comes with this package." |
197 |
+} |