Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd/
Date: Sun, 01 Dec 2019 19:50:23
Message-Id: 1575229798.5cfa6035560f2f22f0b6b288d7cafc395800dcef.polynomial-c@gentoo
1 commit: 5cfa6035560f2f22f0b6b288d7cafc395800dcef
2 Author: David Heidelberg <david <AT> ixit <DOT> cz>
3 AuthorDate: Sun Dec 1 11:04:44 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 1 19:49:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cfa6035
7
8 sys-apps/fwupd: bump 1.3.5
9
10 Closes: https://bugs.gentoo.org/701648
11
12 Signed-off-by: David Heidelberg <david <AT> ixit.cz>
13 Closes: https://github.com/gentoo/gentoo/pull/13821
14 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
15
16 sys-apps/fwupd/Manifest | 1 +
17 sys-apps/fwupd/fwupd-1.3.5.ebuild | 159 ++++++++++++++++++++++++++++++++++++++
18 2 files changed, 160 insertions(+)
19
20 diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest
21 index d5fff80f106..1ace98b947c 100644
22 --- a/sys-apps/fwupd/Manifest
23 +++ b/sys-apps/fwupd/Manifest
24 @@ -2,3 +2,4 @@ DIST fwupd-1.2.11.tar.gz 1945646 BLAKE2B 4eb6d5008d0e515880147a94b2632ed70b5f7ab
25 DIST fwupd-1.2.8.tar.gz 1911999 BLAKE2B 61a24ce24f778b96f7ad23496890f7a1d20c09e6bbd707f29d154992668d5c0a25cfd31b5d0d11519740e086c098cbdfd440fe9f5cab4dde0ac43fe6b438e911 SHA512 d603f9f4e5a4c0fc6abb0b75f7d884eff47fb8a16285aa545f7140fe98ce781d127ff3769f9c206bb3bfd084bbc5bf6abf9424f70e727ff79162416fe7881154
26 DIST fwupd-1.3.3.tar.gz 2125604 BLAKE2B 4471d270ec7f99857dd811b2ba9d8f591a0787ee7ad2bf45edff90904483b8fe54483cde2722e7ee9afb426b17b4d4090f6935b3fa2712a277d058802fc2e9f5 SHA512 b8f0d88fa9c1c8219dd040775d76207f1be87294ebb5f38043b77a670a1601cc597a711f5635aa3d164a08ee0dd068dd22514acae96f6fc5ad20d35099d02f50
27 DIST fwupd-1.3.4.tar.gz 2151009 BLAKE2B 3ea171d4a9498963b6082ae2e3f9b41edde862b84f3f506e403bc2dd6a08ec27ccbac6c5891bdf567860f43b008ccd36a7e6d40e72f2d252eceb913833372719 SHA512 00b6ba394c74252c1c7eba5e5e1fd92f234fb6db6de8bca69fbc578bf3b12790867b6adaef6c422c801d28990d390bbe8af67ab0f5bd3a744adbeb053708a254
28 +DIST fwupd-1.3.5.tar.gz 2164874 BLAKE2B aa268f3d94b3c7104cad5e80de81a724ba978e3da468cd2d44833656c5b0a95b1f720f5c7a0dd9812b8afce4c58e8f777e13ea2e1f4ce0b8b582ee3c731b744a SHA512 b1944b06bed9cb10ec90219235b168a76fcf6ff7b8938dfba36259f07efed71a755d7b91fcbe8f6fda00ac971bd5d4734a49e045005e2e1c32b49fc5b86c48dd
29
30 diff --git a/sys-apps/fwupd/fwupd-1.3.5.ebuild b/sys-apps/fwupd/fwupd-1.3.5.ebuild
31 new file mode 100644
32 index 00000000000..684e4c548a4
33 --- /dev/null
34 +++ b/sys-apps/fwupd/fwupd-1.3.5.ebuild
35 @@ -0,0 +1,159 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python3_{5,6,7} )
42 +
43 +inherit linux-info meson python-single-r1 vala xdg toolchain-funcs
44 +
45 +DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
46 +HOMEPAGE="https://fwupd.org"
47 +SRC_URI="https://github.com/hughsie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="LGPL-2.1+"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~arm ~x86"
52 +IUSE="agent amt consolekit dell gtk-doc elogind minimal +gpg introspection +man nvme pkcs7 redfish synaptics systemd test thunderbolt uefi"
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
54 + ^^ ( consolekit elogind minimal systemd )
55 + dell? ( uefi )
56 + minimal? ( !introspection )
57 +"
58 +RESTRICT="!test? ( test )"
59 +
60 +BDEPEND="$(vala_depend)
61 + virtual/pkgconfig
62 + gtk-doc? ( dev-util/gtk-doc )
63 + introspection? ( dev-libs/gobject-introspection )
64 + man? (
65 + app-text/docbook-sgml-utils
66 + sys-apps/help2man
67 + )
68 + test? (
69 + thunderbolt? ( dev-util/umockdev )
70 + net-libs/gnutls[tools]
71 + )
72 +"
73 +DEPEND="${PYTHON_DEPS}
74 + >=app-arch/gcab-1.0
75 + app-arch/libarchive:=
76 + dev-db/sqlite
77 + >=dev-libs/glib-2.45.8:2
78 + dev-libs/json-glib
79 + dev-libs/libgpg-error
80 + dev-libs/libgudev:=
81 + >=dev-libs/libgusb-0.2.9[introspection?]
82 + >=dev-libs/libxmlb-0.1.13
83 + dev-python/pillow[${PYTHON_USEDEP}]
84 + dev-python/pycairo[${PYTHON_USEDEP}]
85 + dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
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 + gpg? (
96 + app-crypt/gpgme
97 + dev-libs/libgpg-error
98 + )
99 + !minimal? (
100 + >=sys-auth/polkit-0.103
101 + )
102 + nvme? ( sys-libs/efivar )
103 + pkcs7? ( >=net-libs/gnutls-3.4.4.1:= )
104 + redfish? ( sys-libs/efivar )
105 + systemd? ( >=sys-apps/systemd-211 )
106 + thunderbolt? (
107 + sys-apps/thunderbolt-software-user-space
108 + )
109 + uefi? (
110 + app-crypt/tpm2-tss
111 + media-libs/fontconfig
112 + media-libs/freetype
113 + sys-boot/gnu-efi
114 + sys-boot/efibootmgr
115 + >=sys-libs/efivar-33
116 + x11-libs/cairo
117 + )
118 +"
119 +RDEPEND="
120 + ${DEPEND}
121 + sys-apps/dbus
122 +"
123 +
124 +pkg_setup() {
125 + tc-ld-disable-gold # bug https://github.com/fwupd/fwupd/issues/1530
126 +
127 + python-single-r1_pkg_setup
128 + if use nvme; then
129 + kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4"
130 + fi
131 +}
132 +
133 +src_prepare() {
134 + default
135 + # c.f. https://github.com/fwupd/fwupd/issues/1414
136 + sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \
137 + -i plugins/thunderbolt/meson.build || die
138 + vala_src_prepare
139 +}
140 +
141 +src_configure() {
142 + local emesonargs=(
143 + --localstatedir "${EPREFIX}"/var
144 + -Dbuild="$(usex minimal standalone all)"
145 + $(meson_use agent)
146 + $(meson_use amt plugin_amt)
147 + $(meson_use consolekit)
148 + $(meson_use dell plugin_dell)
149 + $(meson_use elogind)
150 + $(meson_use gpg)
151 + $(meson_use gtk-doc gtkdoc)
152 + $(meson_use man)
153 + $(meson_use nvme plugin_nvme)
154 + $(meson_use pkcs7)
155 + $(meson_use redfish plugin_redfish)
156 + $(meson_use synaptics plugin_synaptics)
157 + $(meson_use systemd)
158 + $(meson_use test tests)
159 + $(meson_use thunderbolt plugin_thunderbolt)
160 + $(meson_use uefi plugin_uefi)
161 + # Requires libflashrom which our sys-apps/flashrom
162 + # package does not provide
163 + -Dplugin_flashrom="false"
164 + # Dependencies are not available (yet?)
165 + -Dplugin_modem_manager="false"
166 + )
167 + export CACHE_DIRECTORY="${T}"
168 + meson_src_configure
169 +}
170 +
171 +src_install() {
172 + meson_src_install
173 +
174 + if ! use minimal ; then
175 + sed "s@%SEAT_MANAGER%@$(usex elogind elogind consolekit)@" \
176 + "${FILESDIR}"/${PN}-r1 \
177 + > "${T}"/${PN} || die
178 + doinitd "${T}"/${PN}
179 +
180 + if ! use systemd ; then
181 + # Don't timeout when fwupd is running (#673140)
182 + sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
183 + -i "${ED}"/etc/${PN}/daemon.conf || die
184 + fi
185 + fi
186 +}
187 +
188 +pkg_postinst() {
189 + xdg_pkg_postinst
190 + elog "In case you are using openrc as init system"
191 + elog "and you're upgrading from <fwupd-1.1.0, you"
192 + elog "need to start the fwupd daemon via the openrc"
193 + elog "init script that comes with this package."
194 +}