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: Mon, 29 Jun 2020 14:10:39
Message-Id: 1593439805.1ce9ba4c9e139be0110a6801d941bd9ea5344ef2.polynomial-c@gentoo
1 commit: 1ce9ba4c9e139be0110a6801d941bd9ea5344ef2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 29 14:08:21 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 29 14:10:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ce9ba4c
7
8 sys-apps/fwupd: Security cleanup
9
10 Bug: https://bugs.gentoo.org/727656
11 Package-Manager: Portage-2.3.103, Repoman-2.3.23
12 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
13
14 sys-apps/fwupd/Manifest | 1 -
15 sys-apps/fwupd/fwupd-1.2.11.ebuild | 144 -------------------------------------
16 sys-apps/fwupd/metadata.xml | 1 -
17 3 files changed, 146 deletions(-)
18
19 diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest
20 index 79f3f3a7349..109db0674b8 100644
21 --- a/sys-apps/fwupd/Manifest
22 +++ b/sys-apps/fwupd/Manifest
23 @@ -1,4 +1,3 @@
24 -DIST fwupd-1.2.11.tar.gz 1945646 BLAKE2B 4eb6d5008d0e515880147a94b2632ed70b5f7ab1891775ac121347653c06bf4403ab7f4a1fe160000a6195d360fe06d64c8971dd53c1538aeac40d155f59979a SHA512 a8d6a76ac59937547c6866d414e95a67779574901b0a15ecfde763f49b434b284be2ade1194179225785006e5f93836667469d08f32d4c87fc85927aa0bfe9de
25 DIST fwupd-1.3.10.tar.gz 2255394 BLAKE2B 39f517b7648236f39df6f41b5950fcba45a1184f269e533facd752f8e132bb979b32a1420ce4bfcad5bb5d5546ea3f28b357603f7754267550fc02c2125642c5 SHA512 a30ef2933fc01136a9296e99a0b1b9220f952a058aa28339ff944633a8966678b374f479b3a93a1e63bd97491679d3ce304cb621f6e63b86238a8746768daac2
26 DIST fwupd-1.3.11.tar.gz 2255359 BLAKE2B 0f91c32602459d31e53c63647762307cfe2313c553e16836cc646eb04e3ac54ebd53d2e8615afb7f43b8cd79b7e6315ed688ae04b57de851be62ed6065579ebf SHA512 e300a84a1c2d7e44e2a1d5d86300487783fc3990b20b540065f9899705569bee8996eae951f32b6fac559e76955ff9b661aa9b181e4dc0211a33a514613ffddd
27 DIST fwupd-1.4.2.tar.gz 2304086 BLAKE2B 9a725cc49479984c3a98b75e9c52211a26f81d4a7ecec3b261ff4486201a967a6c82df9a1dbd591b91d9cd6eb9d1a8cd8cccfd2c8dd98d5bb3f82cb03bbd0a52 SHA512 b092eedf3e5e84874de1fddb7f14ca87975d5895721ac4f87b6c88ec7c7b2367e573b30906588f9adad4cea52da5ebbaaa4a9c38a2273e8f31d26399e719166e
28
29 diff --git a/sys-apps/fwupd/fwupd-1.2.11.ebuild b/sys-apps/fwupd/fwupd-1.2.11.ebuild
30 deleted file mode 100644
31 index 7239b28afea..00000000000
32 --- a/sys-apps/fwupd/fwupd-1.2.11.ebuild
33 +++ /dev/null
34 @@ -1,144 +0,0 @@
35 -# Copyright 1999-2020 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -PYTHON_COMPAT=( python3_{6,7} )
41 -
42 -inherit meson python-single-r1 vala xdg-utils
43 -
44 -DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
45 -HOMEPAGE="https://fwupd.org"
46 -SRC_URI="https://github.com/hughsie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 -
48 -LICENSE="LGPL-2.1+"
49 -SLOT="0"
50 -KEYWORDS="amd64 ~arm x86"
51 -IUSE="agent colorhug consolekit dell doc elogind +gpg +man nvme pkcs7 redfish systemd test thunderbolt uefi"
52 -RESTRICT="!test? ( test )"
53 -
54 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
55 - ^^ ( consolekit elogind systemd )
56 - dell? ( uefi )
57 -"
58 -
59 -RDEPEND="${PYTHON_DEPS}
60 - app-arch/gcab
61 - app-arch/libarchive:=
62 - dev-db/sqlite
63 - >=dev-libs/glib-2.45.8:2
64 - dev-libs/json-glib
65 - dev-libs/libgpg-error
66 - dev-libs/libgudev:=
67 - >=dev-libs/libgusb-0.2.9[introspection]
68 - >=dev-libs/libxmlb-0.1.7
69 - $(python_gen_cond_dep '
70 - dev-python/pillow[${PYTHON_MULTI_USEDEP}]
71 - dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
72 - dev-python/pygobject:3[cairo,${PYTHON_MULTI_USEDEP}]
73 - ')
74 - >=net-libs/libsoup-2.51.92:2.4[introspection]
75 - >=sys-auth/polkit-0.103
76 - virtual/libelf:0=
77 - colorhug? ( >=x11-misc/colord-1.2.12:0= )
78 - consolekit? ( >=sys-auth/consolekit-1.0.0 )
79 - dell? (
80 - sys-libs/efivar
81 - >=sys-libs/libsmbios-2.4.0
82 - )
83 - elogind? ( sys-auth/elogind )
84 - gpg? (
85 - app-crypt/gpgme
86 - dev-libs/libgpg-error
87 - )
88 - nvme? ( sys-libs/efivar )
89 - pkcs7? ( >=net-libs/gnutls-3.4.4.1:= )
90 - redfish? ( sys-libs/efivar )
91 - systemd? ( >=sys-apps/systemd-211 )
92 - uefi? (
93 - media-libs/fontconfig
94 - media-libs/freetype
95 - sys-boot/gnu-efi
96 - >=sys-libs/efivar-33
97 - x11-libs/cairo
98 - )
99 -"
100 -DEPEND="${RDEPEND}
101 - $(vala_depend)
102 - x11-libs/pango[introspection]
103 - nvme? ( >=sys-kernel/linux-headers-4.4 )
104 - test? ( net-libs/gnutls[tools] )
105 -"
106 -BDEPEND="
107 - >=dev-util/meson-0.47.0
108 - virtual/pkgconfig
109 - doc? ( dev-util/gtk-doc )
110 - man? (
111 - app-text/docbook-sgml-utils
112 - sys-apps/help2man
113 - )
114 -"
115 -
116 -# required for fwupd daemon to run.
117 -# NOT a build time dependency. The build system does not check for dbus.
118 -PDEPEND="sys-apps/dbus"
119 -
120 -src_prepare() {
121 - default
122 - sed -e "s/'--create'/'--absolute-name', '--create'/" \
123 - -i data/tests/builder/meson.build || die
124 - sed -e "/'-Werror',/d" \
125 - -i plugins/uefi/efi/meson.build || die
126 - vala_src_prepare
127 -}
128 -
129 -src_configure() {
130 - xdg_environment_reset
131 - local emesonargs=(
132 - --localstatedir "${EPREFIX}"/var
133 - -Dagent="$(usex agent true false)"
134 - -Dconsolekit="$(usex consolekit true false)"
135 - -Dgtkdoc="$(usex doc true false)"
136 - -Delogind="$(usex elogind true false)"
137 - -Dgpg="$(usex gpg true false)"
138 - -Dman="$(usex man true false)"
139 - -Dpkcs7="$(usex pkcs7 true false)"
140 - -Dplugin_dell="$(usex dell true false)"
141 - # Requires libflashrom which our sys-apps/flashrom
142 - # package does not provide
143 - -Dplugin_flashrom="false"
144 - # Dependencies are not available (yet?)
145 - -Dplugin_modem_manager="false"
146 - -Dplugin_nvme="$(usex nvme true false)"
147 - -Dplugin_redfish="$(usex redfish true false)"
148 - -Dplugin_synaptics="$(usex dell true false)"
149 - -Dplugin_thunderbolt="$(usex thunderbolt true false)"
150 - -Dplugin_uefi="$(usex uefi true false)"
151 - -Dsystemd="$(usex systemd true false)"
152 - -Dtests="$(usex test true false)"
153 - )
154 -
155 - meson_src_configure
156 -}
157 -
158 -src_install() {
159 - meson_src_install
160 -
161 - sed "s@%SEAT_MANAGER%@$(usex elogind elogind consolekit)@" \
162 - "${FILESDIR}"/${PN}-r1 \
163 - > "${T}"/${PN} || die
164 - doinitd "${T}"/${PN}
165 -
166 - if ! use systemd ; then
167 - # Don't timeout when fwupd is running (#673140)
168 - sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
169 - -i "${ED}"/etc/${PN}/daemon.conf || die
170 - fi
171 -}
172 -
173 -pkg_postinst() {
174 - elog "In case you are using openrc as init system"
175 - elog "and you're upgrading from <fwupd-1.1.0, you"
176 - elog "need to start the fwupd daemon via the openrc"
177 - elog "init script that comes with this package."
178 -}
179
180 diff --git a/sys-apps/fwupd/metadata.xml b/sys-apps/fwupd/metadata.xml
181 index 5543dd01883..9ff465d6aed 100644
182 --- a/sys-apps/fwupd/metadata.xml
183 +++ b/sys-apps/fwupd/metadata.xml
184 @@ -8,7 +8,6 @@
185 <use>
186 <flag name="agent">Enable update notification agent</flag>
187 <flag name="amt">Build and install Intel AMT plugin</flag>
188 - <flag name="colorhug">Enable ColorHug support through<pkg>x11-misc/colord</pkg> package</flag>
189 <flag name="consolekit">Use <pkg>sys-auth/consolekit</pkg> for session tracking</flag>
190 <flag name="dell">Enable Dell-specific support.</flag>
191 <flag name="gpg">Enable GPG support.</flag>