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/files/, sys-apps/fwupd/
Date: Thu, 28 Mar 2019 11:50:47
Message-Id: 1553773835.a97e004a0479196f3491137b23aa62eb613e5e3d.polynomial-c@gentoo
1 commit: a97e004a0479196f3491137b23aa62eb613e5e3d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 28 11:50:19 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 28 11:50:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a97e004a
7
8 sys-apps/fwupd: Removed old.
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/fwupd/Manifest | 1 -
14 sys-apps/fwupd/files/fwupd-1.2.4-elogind.patch | 105 --------------------
15 sys-apps/fwupd/fwupd-1.2.4-r2.ebuild | 132 -------------------------
16 3 files changed, 238 deletions(-)
17
18 diff --git a/sys-apps/fwupd/Manifest b/sys-apps/fwupd/Manifest
19 index d92d7642b33..7feb538b37b 100644
20 --- a/sys-apps/fwupd/Manifest
21 +++ b/sys-apps/fwupd/Manifest
22 @@ -1,3 +1,2 @@
23 -DIST fwupd-1.2.4.tar.gz 1808778 BLAKE2B 4dd8db0e73b148cba8ca43ec7942efa183f331a376b947421b8673d473ef868cef57e3abf4f50e031eb22f97fa8eb199b8bd7ef3b96efb598f842d0824c235a7 SHA512 7734be90459364c2e9ca35d9a9327e7becabe64cd0129d5c8f3cb4a95ef0195726c519862e843636952a3251ecea080907d1e6814c3037e9f90e8dde53b406ad
24 DIST fwupd-1.2.5.tar.gz 1818559 BLAKE2B 0d30248bf3be093d3764624294fdd6e26b979560d70b47e67b3ca5f213177d807e749f5e30abd4d7d7d15e4be507103583834062b6a3243367169019e24a1bc7 SHA512 dc6a0def49225ce50bc89c3f76137497d4c8b71f94e42546fbf5221dc0af504ce6090f803ea9dca175f6166ff1341f6a3eab04652d744257c9e88dbd6875abc7
25 DIST fwupd-1.2.6.tar.gz 1861765 BLAKE2B 160af03c0c08bed730657520a15f96c9881996807d186a26074f10b6b340e27b0e783ae7a6b1fc433e4347cba535d49bca60b4d242101a9097fc2749f3cca0ee SHA512 c1111fd881126bf85424dec004e4321948cbdd603ed79989eee51f48197f8f0f391371834964dd1bff52eb3b353cc4c2e5714f6ff674b23dbd8e8d0e8a87ff27
26
27 diff --git a/sys-apps/fwupd/files/fwupd-1.2.4-elogind.patch b/sys-apps/fwupd/files/fwupd-1.2.4-elogind.patch
28 deleted file mode 100644
29 index 1a8b7760001..00000000000
30 --- a/sys-apps/fwupd/files/fwupd-1.2.4-elogind.patch
31 +++ /dev/null
32 @@ -1,105 +0,0 @@
33 -From de2b70bc7d0ca092659a0b5a4719e41444660b14 Mon Sep 17 00:00:00 2001
34 -From: Marcin Sucharski <marcin.sucharski@××××××××××.com>
35 -Date: Sun, 24 Feb 2019 00:28:10 +0100
36 -Subject: [PATCH] Add elogind support
37 -
38 ----
39 - data/meson.build | 27 ++++++++++++++++-----------
40 - meson.build | 6 ++++++
41 - meson_options.txt | 1 +
42 - src/fu-util-common.c | 4 ++--
43 - 4 files changed, 25 insertions(+), 13 deletions(-)
44 -
45 -diff --git a/data/meson.build b/data/meson.build
46 -index 2d7fb632a..f9377c803 100644
47 ---- a/data/meson.build
48 -+++ b/data/meson.build
49 -@@ -63,17 +63,6 @@ if get_option('systemd')
50 - endif
51 - con2.set('dynamic_options', '\n'.join(dynamic_options))
52 -
53 -- # replace @libexecdir@
54 -- configure_file(
55 -- input : 'org.freedesktop.fwupd.service.in',
56 -- output : 'org.freedesktop.fwupd.service',
57 -- configuration : con2,
58 -- install: true,
59 -- install_dir: join_paths(datadir,
60 -- 'dbus-1',
61 -- 'system-services'),
62 -- )
63 --
64 - # replace @bindir@
65 - configure_file(
66 - input : 'fwupd-offline-update.service.in',
67 -@@ -92,3 +81,19 @@ if get_option('systemd')
68 - install_dir: systemdunitdir,
69 - )
70 - endif
71 -+
72 -+if get_option('systemd') or get_option('elogind')
73 -+ con2 = configuration_data()
74 -+ con2.set('libexecdir', libexecdir)
75 -+
76 -+ # replace @libexecdir@
77 -+ configure_file(
78 -+ input : 'org.freedesktop.fwupd.service.in',
79 -+ output : 'org.freedesktop.fwupd.service',
80 -+ configuration : con2,
81 -+ install: true,
82 -+ install_dir: join_paths(datadir,
83 -+ 'dbus-1',
84 -+ 'system-services'),
85 -+ )
86 -+endif
87 -diff --git a/meson.build b/meson.build
88 -index f4f0af192..d645db2ae 100644
89 ---- a/meson.build
90 -+++ b/meson.build
91 -@@ -270,6 +270,12 @@ endif
92 - if get_option('systemd')
93 - systemd = dependency('systemd', version : '>= 211')
94 - conf.set('HAVE_SYSTEMD' , '1')
95 -+ conf.set('HAVE_LOGIND' , '1')
96 -+endif
97 -+
98 -+if get_option('elogind')
99 -+ elogind = dependency('libelogind', version : '>= 211')
100 -+ conf.set('HAVE_LOGIND' , '1')
101 - endif
102 -
103 - if get_option('consolekit')
104 -diff --git a/meson_options.txt b/meson_options.txt
105 -index c9b7ba675..6b0902225 100644
106 ---- a/meson_options.txt
107 -+++ b/meson_options.txt
108 -@@ -18,6 +18,7 @@ option('plugin_uefi', type : 'boolean', value : true, description : 'enable UEFI
109 - option('plugin_nvme', type : 'boolean', value : true, description : 'enable NVMe support')
110 - option('systemd', type : 'boolean', value : true, description : 'enable systemd support')
111 - option('systemdunitdir', type: 'string', value: '', description: 'Directory for systemd units')
112 -+option('elogind', type : 'boolean', value : false, description : 'enable elogind support')
113 - option('tests', type : 'boolean', value : true, description : 'enable tests')
114 - option('udevdir', type: 'string', value: '', description: 'Directory for udev rules')
115 - option('efi-cc', type : 'string', value : 'gcc', description : 'the compiler to use for EFI modules')
116 -diff --git a/src/fu-util-common.c b/src/fu-util-common.c
117 -index cdeb2ff6b..667c142fb 100644
118 ---- a/src/fu-util-common.c
119 -+++ b/src/fu-util-common.c
120 -@@ -184,7 +184,7 @@ fu_util_update_shutdown (GError **error)
121 - if (connection == NULL)
122 - return FALSE;
123 -
124 --#ifdef HAVE_SYSTEMD
125 -+#ifdef HAVE_LOGIND
126 - /* shutdown using logind */
127 - val = g_dbus_connection_call_sync (connection,
128 - "org.freedesktop.login1",
129 -@@ -229,7 +229,7 @@ fu_util_update_reboot (GError **error)
130 - if (connection == NULL)
131 - return FALSE;
132 -
133 --#ifdef HAVE_SYSTEMD
134 -+#ifdef HAVE_LOGIND
135 - /* reboot using logind */
136 - val = g_dbus_connection_call_sync (connection,
137 - "org.freedesktop.login1",
138
139 diff --git a/sys-apps/fwupd/fwupd-1.2.4-r2.ebuild b/sys-apps/fwupd/fwupd-1.2.4-r2.ebuild
140 deleted file mode 100644
141 index 43db76e1c25..00000000000
142 --- a/sys-apps/fwupd/fwupd-1.2.4-r2.ebuild
143 +++ /dev/null
144 @@ -1,132 +0,0 @@
145 -# Copyright 1999-2019 Gentoo Authors
146 -# Distributed under the terms of the GNU General Public License v2
147 -
148 -EAPI=7
149 -
150 -PYTHON_COMPAT=( python3_{4,5,6,7} )
151 -
152 -inherit meson python-single-r1 vala xdg-utils
153 -
154 -DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
155 -HOMEPAGE="https://fwupd.org"
156 -SRC_URI="https://github.com/hughsie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
157 -
158 -LICENSE="LGPL-2.1+"
159 -SLOT="0"
160 -KEYWORDS="~amd64 ~x86"
161 -IUSE="colorhug dell doc elogind +gpg +man nvme pkcs7 redfish systemd test thunderbolt uefi"
162 -
163 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
164 - ?? ( elogind systemd )
165 - dell? ( uefi )
166 -"
167 -
168 -RDEPEND="${PYTHON_DEPS}
169 - app-arch/gcab
170 - app-arch/libarchive:=
171 - dev-db/sqlite
172 - >=dev-libs/glib-2.45.8:2
173 - dev-libs/json-glib
174 - dev-libs/libgpg-error
175 - dev-libs/libgudev:=
176 - >=dev-libs/libgusb-0.2.9[introspection]
177 - >=dev-libs/libxmlb-0.1.5
178 - dev-python/pillow[${PYTHON_USEDEP}]
179 - dev-python/pycairo[${PYTHON_USEDEP}]
180 - dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
181 - >=net-libs/libsoup-2.51.92:2.4[introspection]
182 - >=sys-auth/polkit-0.103
183 - virtual/libelf:0=
184 - colorhug? ( >=x11-misc/colord-1.2.12:0= )
185 - dell? (
186 - sys-libs/efivar
187 - >=sys-libs/libsmbios-2.4.0
188 - )
189 - gpg? (
190 - app-crypt/gpgme
191 - dev-libs/libgpg-error
192 - )
193 - nvme? ( sys-libs/efivar )
194 - pkcs7? ( >=net-libs/gnutls-3.4.4.1:= )
195 - redfish? ( sys-libs/efivar )
196 - !systemd? (
197 - !elogind? ( >=sys-auth/consolekit-1.0.0 )
198 - elogind? ( sys-auth/elogind )
199 - )
200 - systemd? ( >=sys-apps/systemd-211 )
201 - thunderbolt? ( sys-apps/thunderbolt-software-user-space )
202 - uefi? (
203 - media-libs/fontconfig
204 - media-libs/freetype
205 - sys-boot/gnu-efi
206 - >=sys-libs/efivar-33
207 - x11-libs/cairo
208 - )
209 -"
210 -DEPEND="${RDEPEND}
211 - $(vala_depend)
212 - x11-libs/pango[introspection]
213 - nvme? ( >=sys-kernel/linux-headers-4.4 )
214 - test? ( net-libs/gnutls[tools] )
215 -"
216 -BDEPEND="
217 - >=dev-util/meson-0.47.0
218 - virtual/pkgconfig
219 - doc? ( dev-util/gtk-doc )
220 - man? ( app-text/docbook-sgml-utils )
221 -"
222 -
223 -# required for fwupd daemon to run.
224 -# NOT a build time dependency. The build system does not check for dbus.
225 -PDEPEND="sys-apps/dbus"
226 -
227 -PATCHES=( "${FILESDIR}/${P}-elogind.patch" ) # bug 668522
228 -
229 -src_prepare() {
230 - default
231 - sed -e "s/'--create'/'--absolute-name', '--create'/" \
232 - -i data/tests/builder/meson.build || die
233 - sed -e "/'-Werror',/d" \
234 - -i plugins/uefi/efi/meson.build || die
235 - vala_src_prepare
236 -}
237 -
238 -src_configure() {
239 - xdg_environment_reset
240 - local emesonargs=(
241 - --localstatedir "${EPREFIX}"/var
242 - -Dgtkdoc="$(usex doc true false)"
243 - -Delogind="$(usex elogind true false)"
244 - -Dgpg="$(usex gpg true false)"
245 - -Dman="$(usex man true false)"
246 - -Dpkcs7="$(usex pkcs7 true false)"
247 - -Dplugin_dell="$(usex dell true false)"
248 - -Dplugin_nvme="$(usex nvme true false)"
249 - -Dplugin_redfish="$(usex redfish true false)"
250 - -Dplugin_synaptics="$(usex dell true false)"
251 - -Dplugin_thunderbolt="$(usex thunderbolt true false)"
252 - -Dplugin_uefi="$(usex uefi true false)"
253 - -Dsystemd="$(usex systemd true false)"
254 - -Dtests="$(usex test true false)"
255 - )
256 - use elogind || use systemd || emesonargs+=( -Dconsolekit=true )
257 - meson_src_configure
258 -}
259 -
260 -src_install() {
261 - meson_src_install
262 - doinitd "${FILESDIR}"/${PN}
263 -
264 - if ! use systemd && ! use elogind ; then
265 - # Don't timeout when fwupd is running (#673140)
266 - sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
267 - -i "${ED}"/etc/${PN}/daemon.conf || die
268 - fi
269 -}
270 -
271 -pkg_postinst() {
272 - elog "In case you are using openrc as init system"
273 - elog "and you're upgrading from <fwupd-1.1.0, you"
274 - elog "need to start the fwupd daemon via the openrc"
275 - elog "init script that comes with this package."
276 -}