1 |
commit: 3d3534f975274b16e088ca43d162586bf5a4b41e |
2 |
Author: Michael Everitt <gentoo <AT> veremit <DOT> xyz> |
3 |
AuthorDate: Wed Apr 22 21:18:48 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 23 14:56:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=3d3534f9 |
7 |
|
8 |
net-wireless/bluez: limits.h patch merged upstream in 2d249af, release 5.52 |
9 |
|
10 |
In-tree version builds fine: |
11 |
>>> Completed installing net-wireless/bluez-5.54 into /var/tmp/portage/net-wireless/bluez-5.54/image |
12 |
|
13 |
Signed-off-by: Michael Everitt <gentoo <AT> veremit.xyz> |
14 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
15 |
|
16 |
net-wireless/bluez/Manifest | 1 - |
17 |
net-wireless/bluez/bluez-5.51.ebuild | 290 --------------------- |
18 |
...xd-without-systemd-in-the-user-session-r1.patch | 58 ----- |
19 |
.../files/0001-Include-limits.h-for-PATH_MAX.patch | 64 ----- |
20 |
...-GLib-helper-function-to-manipulate-paths.patch | 38 --- |
21 |
net-wireless/bluez/files/69-btattach-bcm.rules | 33 --- |
22 |
net-wireless/bluez/files/bluetooth-init.d-r4 | 12 - |
23 |
.../bluez/files/bluez-5.39-systemd-quote.patch | 38 --- |
24 |
.../bluez/files/bluez-udevadm-path-r1.patch | 10 - |
25 |
net-wireless/bluez/files/btattach-bcm-service.sh | 30 --- |
26 |
net-wireless/bluez/files/btattach-bcm_at.service | 6 - |
27 |
net-wireless/bluez/metadata.xml | 26 -- |
28 |
12 files changed, 606 deletions(-) |
29 |
|
30 |
diff --git a/net-wireless/bluez/Manifest b/net-wireless/bluez/Manifest |
31 |
deleted file mode 100644 |
32 |
index 4f49136..0000000 |
33 |
--- a/net-wireless/bluez/Manifest |
34 |
+++ /dev/null |
35 |
@@ -1 +0,0 @@ |
36 |
-DIST bluez-5.51.tar.xz 1941904 BLAKE2B e8580388961c99305c6f723160e726232a097067815a88a056c1569c55c2ea410004cf92572afbef9b782807d8a940503b4501f9c6046cacac35136fbbe580a8 SHA512 8b14eea98f541b981162abce728e0f917654ad3c990721ec398fe41bdd68069fe55ff64b61bc3c3b9f813facf42c995b07619f6d5d153965de27154b1a7b578f |
37 |
|
38 |
diff --git a/net-wireless/bluez/bluez-5.51.ebuild b/net-wireless/bluez/bluez-5.51.ebuild |
39 |
deleted file mode 100644 |
40 |
index 8550b75..0000000 |
41 |
--- a/net-wireless/bluez/bluez-5.51.ebuild |
42 |
+++ /dev/null |
43 |
@@ -1,290 +0,0 @@ |
44 |
-# Copyright 1999-2020 Gentoo Authors |
45 |
-# Distributed under the terms of the GNU General Public License v2 |
46 |
- |
47 |
-EAPI=7 |
48 |
-PYTHON_COMPAT=( python2_7 ) |
49 |
- |
50 |
-inherit autotools python-single-r1 readme.gentoo-r1 systemd udev multilib-minimal |
51 |
- |
52 |
-DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
53 |
-HOMEPAGE="http://www.bluez.org" |
54 |
-SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz" |
55 |
- |
56 |
-LICENSE="GPL-2+ LGPL-2.1+" |
57 |
-SLOT="0/3" |
58 |
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86" |
59 |
-IUSE="btpclient cups doc debug deprecated extra-tools experimental +mesh midi +obex +readline selinux systemd test test-programs +udev user-session" |
60 |
- |
61 |
-# Since this release all remaining extra-tools need readline support, but this could |
62 |
-# change in the future, hence, this REQUIRED_USE constraint could be dropped |
63 |
-# again in the future. |
64 |
-REQUIRED_USE=" |
65 |
- extra-tools? ( deprecated readline ) |
66 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
67 |
- test-programs? ( ${PYTHON_REQUIRED_USE} ) |
68 |
-" |
69 |
- |
70 |
-TEST_DEPS="${PYTHON_DEPS} |
71 |
- $(python_gen_cond_dep ' |
72 |
- >=dev-python/dbus-python-1[${PYTHON_MULTI_USEDEP}] |
73 |
- dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] |
74 |
- ') |
75 |
-" |
76 |
-BDEPEND=" |
77 |
- virtual/pkgconfig |
78 |
- test? ( ${TEST_DEPS} ) |
79 |
-" |
80 |
-DEPEND=" |
81 |
- >=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}] |
82 |
- >=sys-apps/hwids-20121202.2 |
83 |
- btpclient? ( >=dev-libs/ell-0.14 ) |
84 |
- cups? ( net-print/cups:= ) |
85 |
- mesh? ( |
86 |
- >=dev-libs/ell-0.14 |
87 |
- dev-libs/json-c:= |
88 |
- sys-libs/readline:0= |
89 |
- ) |
90 |
- midi? ( media-libs/alsa-lib ) |
91 |
- obex? ( dev-libs/libical:= ) |
92 |
- readline? ( sys-libs/readline:0= ) |
93 |
- systemd? ( |
94 |
- >=sys-apps/dbus-1.6:=[user-session=] |
95 |
- sys-apps/systemd |
96 |
- ) |
97 |
- !systemd? ( >=sys-apps/dbus-1.6:= ) |
98 |
- udev? ( >=virtual/udev-172 ) |
99 |
-" |
100 |
-RDEPEND="${DEPEND} |
101 |
- selinux? ( sec-policy/selinux-bluetooth ) |
102 |
- test-programs? ( ${TEST_DEPS} ) |
103 |
-" |
104 |
- |
105 |
-RESTRICT="!test? ( test )" |
106 |
- |
107 |
-PATCHES=( |
108 |
- # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844) |
109 |
- # http://www.spinics.net/lists/linux-bluetooth/msg58739.html |
110 |
- # https://bugs.gentoo.org/539844 |
111 |
- "${FILESDIR}"/${PN}-udevadm-path-r1.patch |
112 |
- |
113 |
- # build: Quote systemd variable names, bug #527432 |
114 |
- # http://article.gmane.org/gmane.linux.bluez.kernel/67230 |
115 |
- "${FILESDIR}"/${PN}-5.39-systemd-quote.patch |
116 |
- |
117 |
- # Fedora patches |
118 |
- # http://www.spinics.net/lists/linux-bluetooth/msg40136.html |
119 |
- "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
120 |
- |
121 |
- # Fix missing includes for non glibc systems |
122 |
- "${FILESDIR}"/0001-Include-limits.h-for-PATH_MAX.patch |
123 |
-) |
124 |
- |
125 |
-pkg_setup() { |
126 |
- if use test || use test-programs; then |
127 |
- python-single-r1_pkg_setup |
128 |
- fi |
129 |
- |
130 |
- if ! use udev; then |
131 |
- ewarn |
132 |
- ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
133 |
- ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
134 |
- ewarn "and hid2hci will not be available." |
135 |
- ewarn |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-src_prepare() { |
140 |
- default |
141 |
- |
142 |
- # http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
143 |
- if ! use user-session || ! use systemd; then |
144 |
- eapply "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-session-r1.patch |
145 |
- fi |
146 |
- |
147 |
- if use cups; then |
148 |
- sed -i \ |
149 |
- -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ |
150 |
- Makefile.{in,tools} || die |
151 |
- fi |
152 |
- |
153 |
- # Broken test https://bugzilla.kernel.org/show_bug.cgi?id=196621 |
154 |
- # https://bugs.gentoo.org/618548 |
155 |
- sed -i -e '/unit_tests += unit\/test-gatt\b/d' Makefile.am || die |
156 |
- |
157 |
- eautoreconf |
158 |
- |
159 |
- multilib_copy_sources |
160 |
-} |
161 |
- |
162 |
-multilib_src_configure() { |
163 |
- local myconf=( |
164 |
- # readline is automagic when client is enabled |
165 |
- # --enable-client always needs readline, bug #504038 |
166 |
- # --enable-mesh is handled in the same way |
167 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex readline) |
168 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex mesh) |
169 |
- ) |
170 |
- |
171 |
- if ! multilib_is_native_abi; then |
172 |
- myconf+=( |
173 |
- # deps not used for the library |
174 |
- {DBUS,GLIB}_{CFLAGS,LIBS}=' ' |
175 |
- ) |
176 |
- fi |
177 |
- |
178 |
- econf \ |
179 |
- --localstatedir=/var \ |
180 |
- --disable-android \ |
181 |
- --enable-datafiles \ |
182 |
- --enable-optimization \ |
183 |
- $(use_enable debug) \ |
184 |
- --enable-pie \ |
185 |
- --enable-threads \ |
186 |
- --enable-library \ |
187 |
- --enable-tools \ |
188 |
- --enable-manpages \ |
189 |
- --enable-monitor \ |
190 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
191 |
- --with-systemduserunitdir="$(systemd_get_userunitdir)" \ |
192 |
- $(multilib_native_use_enable btpclient) \ |
193 |
- $(multilib_native_use_enable btpclient external-ell) \ |
194 |
- $(multilib_native_use_enable cups) \ |
195 |
- $(multilib_native_use_enable deprecated) \ |
196 |
- $(multilib_native_use_enable experimental) \ |
197 |
- $(multilib_native_use_enable mesh) \ |
198 |
- $(multilib_native_use_enable mesh external-ell) \ |
199 |
- $(multilib_native_use_enable midi) \ |
200 |
- $(multilib_native_use_enable obex) \ |
201 |
- $(multilib_native_use_enable readline client) \ |
202 |
- $(multilib_native_use_enable systemd) \ |
203 |
- $(multilib_native_use_enable test-programs test) \ |
204 |
- $(multilib_native_use_enable udev) \ |
205 |
- $(multilib_native_use_enable udev sixaxis) |
206 |
-} |
207 |
- |
208 |
-multilib_src_compile() { |
209 |
- if multilib_is_native_abi; then |
210 |
- default |
211 |
- else |
212 |
- emake -f Makefile -f - libs \ |
213 |
- <<<'libs: $(lib_LTLIBRARIES)' |
214 |
- fi |
215 |
-} |
216 |
- |
217 |
-multilib_src_test() { |
218 |
- multilib_is_native_abi && default |
219 |
-} |
220 |
- |
221 |
-multilib_src_install() { |
222 |
- if multilib_is_native_abi; then |
223 |
- emake DESTDIR="${D}" install |
224 |
- |
225 |
- # Only install extra-tools when relevant USE flag is enabled |
226 |
- if use extra-tools; then |
227 |
- ewarn "Upstream doesn't support using this tools and their bugs are" |
228 |
- ewarn "likely to be ignored forever, also that tools can break" |
229 |
- ewarn "without previous announcement." |
230 |
- ewarn "Upstream also states all this tools are not really needed," |
231 |
- ewarn "then, if you still need to rely on them, you must ask them" |
232 |
- ewarn "to either install that tool by default or add the needed" |
233 |
- ewarn "functionality to the existing 'official' tools." |
234 |
- ewarn "Please report this issues to:" |
235 |
- ewarn "http://www.bluez.org/development/lists/" |
236 |
- |
237 |
- # Upstream doesn't install this, bug #524640 |
238 |
- # http://permalink.gmane.org/gmane.linux.bluez.kernel/53115 |
239 |
- # http://comments.gmane.org/gmane.linux.bluez.kernel/54564 |
240 |
- dobin tools/btmgmt |
241 |
- # gatttool is only built with readline, bug #530776 |
242 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1141909 |
243 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720486 |
244 |
- # https://bugs.archlinux.org/task/37686 |
245 |
- dobin attrib/gatttool |
246 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1699680 |
247 |
- dobin tools/avinfo |
248 |
- fi |
249 |
- |
250 |
- # Not installed by default after being built, bug #666756 |
251 |
- use btpclient && dobin tools/btpclient |
252 |
- |
253 |
- # Unittests are not that useful once installed, so make them optional |
254 |
- if use test-programs; then |
255 |
- # Few are needing python3, the others are python2 only. Remove |
256 |
- # until we see how to pull in python2 and python3 for runtime |
257 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/example-gatt-server || die |
258 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/example-gatt-client || die |
259 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/agent.py || die |
260 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/test-mesh || die |
261 |
- |
262 |
- python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test |
263 |
- |
264 |
- for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do |
265 |
- dosym "${i}" /usr/bin/bluez-"${i##*/}" |
266 |
- done |
267 |
- fi |
268 |
- else |
269 |
- emake DESTDIR="${D}" \ |
270 |
- install-pkgincludeHEADERS \ |
271 |
- install-libLTLIBRARIES \ |
272 |
- install-pkgconfigDATA |
273 |
- fi |
274 |
-} |
275 |
- |
276 |
-multilib_src_install_all() { |
277 |
- # We need to ensure obexd can be spawned automatically by systemd |
278 |
- # when user-session is enabled: |
279 |
- # http://marc.info/?l=linux-bluetooth&m=148096094716386&w=2 |
280 |
- # https://bugs.gentoo.org/show_bug.cgi?id=577842 |
281 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804908 |
282 |
- # https://bugs.archlinux.org/task/45816 |
283 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1318441 |
284 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1389347 |
285 |
- if use user-session && use systemd; then |
286 |
- ln -s "${ED}"/usr/lib/systemd/user/obex.service "${ED}"/usr/lib/systemd/user/dbus-org.bluez.obex.service |
287 |
- fi |
288 |
- |
289 |
- find "${D}" -name '*.la' -type f -delete || die |
290 |
- |
291 |
- keepdir /var/lib/bluetooth |
292 |
- |
293 |
- # Upstream don't want people to play with them |
294 |
- # But we keep installing them due to 'historical' reasons |
295 |
- insinto /etc/bluetooth |
296 |
- local d |
297 |
- for d in input network; do |
298 |
- doins profiles/${d}/${d}.conf |
299 |
- done |
300 |
- # Setup auto enable as Fedora does for allowing to use |
301 |
- # keyboards/mouse as soon as possible |
302 |
- sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' src/main.conf || die |
303 |
- doins src/main.conf |
304 |
- |
305 |
- newinitd "${FILESDIR}"/bluetooth-init.d-r4 bluetooth |
306 |
- |
307 |
- einstalldocs |
308 |
- use doc && dodoc doc/*.txt |
309 |
- # Install .json files as examples to be used by meshctl |
310 |
- if use mesh; then |
311 |
- dodoc tools/mesh/*.json |
312 |
- local DOC_CONTENTS="Some example .json files were installed into |
313 |
- /usr/share/doc/${PF} to be used with meshctl. Feel free to |
314 |
- uncompress and copy them to ~/.config/meshctl to use them." |
315 |
- readme.gentoo_create_doc |
316 |
- fi |
317 |
- |
318 |
- # From Fedora: |
319 |
- # Scripts for automatically btattach-ing serial ports connected to Broadcom HCIs |
320 |
- # as found on some Atom based x86 hardware |
321 |
- udev_dorules "${FILESDIR}/69-btattach-bcm.rules" |
322 |
- systemd_newunit "${FILESDIR}/btattach-bcm_at.service" "btattach-bcm@.service" |
323 |
- exeinto /usr/libexec/bluetooth |
324 |
- doexe "${FILESDIR}/btattach-bcm-service.sh" |
325 |
-} |
326 |
- |
327 |
-pkg_postinst() { |
328 |
- use udev && udev_reload |
329 |
- systemd_reenable bluetooth.service |
330 |
- |
331 |
- has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp" |
332 |
- use mesh && readme.gentoo_print_elog |
333 |
-} |
334 |
|
335 |
diff --git a/net-wireless/bluez/files/0001-Allow-using-obexd-without-systemd-in-the-user-session-r1.patch b/net-wireless/bluez/files/0001-Allow-using-obexd-without-systemd-in-the-user-session-r1.patch |
336 |
deleted file mode 100644 |
337 |
index dec9307..0000000 |
338 |
--- a/net-wireless/bluez/files/0001-Allow-using-obexd-without-systemd-in-the-user-session-r1.patch |
339 |
+++ /dev/null |
340 |
@@ -1,58 +0,0 @@ |
341 |
-From 3027cb7141fb65cf3eeda69c688db8c4045e2d3f Mon Sep 17 00:00:00 2001 |
342 |
-From: Giovanni Campagna <gcampagna-cNUdlRotFMnNLxjTenLetw@××××××××××××.org> |
343 |
-Date: Sat, 12 Oct 2013 17:45:25 +0200 |
344 |
-Subject: [PATCH] Allow using obexd without systemd in the user session |
345 |
- |
346 |
-Not all sessions run systemd --user (actually, the majority |
347 |
-doesn't), so the dbus daemon must be able to spawn obexd |
348 |
-directly, and to do so it needs the full path of the daemon. |
349 |
---- |
350 |
- Makefile.obexd | 4 ++-- |
351 |
- obexd/src/org.bluez.obex.service | 4 ---- |
352 |
- obexd/src/org.bluez.obex.service.in | 4 ++++ |
353 |
- 3 files changed, 6 insertions(+), 6 deletions(-) |
354 |
- delete mode 100644 obexd/src/org.bluez.obex.service |
355 |
- create mode 100644 obexd/src/org.bluez.obex.service.in |
356 |
- |
357 |
-diff --git a/Makefile.obexd b/Makefile.obexd |
358 |
-index 3760867..142e7c3 100644 |
359 |
---- a/Makefile.obexd |
360 |
-+++ b/Makefile.obexd |
361 |
-@@ -2,12 +2,12 @@ |
362 |
- if SYSTEMD |
363 |
- systemduserunitdir = $(SYSTEMD_USERUNITDIR) |
364 |
- systemduserunit_DATA = obexd/src/obex.service |
365 |
-+endif |
366 |
- |
367 |
- dbussessionbusdir = $(DBUS_SESSIONBUSDIR) |
368 |
- dbussessionbus_DATA = obexd/src/org.bluez.obex.service |
369 |
--endif |
370 |
- |
371 |
--EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service |
372 |
-+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in |
373 |
- |
374 |
- obex_plugindir = $(libdir)/obex/plugins |
375 |
- |
376 |
-diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service |
377 |
-deleted file mode 100644 |
378 |
-index a538088..0000000 |
379 |
---- a/obexd/src/org.bluez.obex.service |
380 |
-+++ /dev/null |
381 |
-@@ -1,4 +0,0 @@ |
382 |
--[D-BUS Service] |
383 |
--Name=org.bluez.obex |
384 |
--Exec=/bin/false |
385 |
--SystemdService=dbus-org.bluez.obex.service |
386 |
-diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in |
387 |
-new file mode 100644 |
388 |
-index 0000000..9c815f2 |
389 |
---- /dev/null |
390 |
-+++ b/obexd/src/org.bluez.obex.service.in |
391 |
-@@ -0,0 +1,4 @@ |
392 |
-+[D-BUS Service] |
393 |
-+Name=org.bluez.obex |
394 |
-+Exec=@libexecdir@/obexd |
395 |
-+SystemdService=dbus-org.bluez.obex.service |
396 |
--- |
397 |
-1.8.3.1 |
398 |
- |
399 |
|
400 |
diff --git a/net-wireless/bluez/files/0001-Include-limits.h-for-PATH_MAX.patch b/net-wireless/bluez/files/0001-Include-limits.h-for-PATH_MAX.patch |
401 |
deleted file mode 100644 |
402 |
index ccbc152..0000000 |
403 |
--- a/net-wireless/bluez/files/0001-Include-limits.h-for-PATH_MAX.patch |
404 |
+++ /dev/null |
405 |
@@ -1,64 +0,0 @@ |
406 |
-From 20128c5c95fbae93c9fd996d5ad2584cf6ad8032 Mon Sep 17 00:00:00 2001 |
407 |
-From: Jory Pratt <anarchy@g.o> |
408 |
-Date: Mon, 30 Sep 2019 18:35:56 -0500 |
409 |
-Subject: [PATCH] Include limits.h for PATH_MAX |
410 |
- |
411 |
-Signed-off-by: Jory Pratt <anarchy@g.o> |
412 |
---- |
413 |
- mesh/keyring.c | 1 + |
414 |
- mesh/mesh-config-json.c | 1 + |
415 |
- mesh/node.c | 1 + |
416 |
- mesh/util.c | 1 + |
417 |
- 4 files changed, 4 insertions(+) |
418 |
- |
419 |
-diff --git a/mesh/keyring.c b/mesh/keyring.c |
420 |
-index 3a7f92f..9fa7d6b 100644 |
421 |
---- a/mesh/keyring.c |
422 |
-+++ b/mesh/keyring.c |
423 |
-@@ -24,6 +24,7 @@ |
424 |
- #define _GNU_SOURCE |
425 |
- #include <fcntl.h> |
426 |
- #include <dirent.h> |
427 |
-+#include <limits.h> |
428 |
- #include <stdio.h> |
429 |
- #include <unistd.h> |
430 |
- #include <dirent.h> |
431 |
-diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c |
432 |
-index cafa2fd..74ca495 100644 |
433 |
---- a/mesh/mesh-config-json.c |
434 |
-+++ b/mesh/mesh-config-json.c |
435 |
-@@ -27,6 +27,7 @@ |
436 |
- #include <fcntl.h> |
437 |
- #include <ftw.h> |
438 |
- #include <libgen.h> |
439 |
-+#include <limits.h> |
440 |
- #include <stdio.h> |
441 |
- #include <string.h> |
442 |
- #include <unistd.h> |
443 |
-diff --git a/mesh/node.c b/mesh/node.c |
444 |
-index b6824f5..15dcb97 100644 |
445 |
---- a/mesh/node.c |
446 |
-+++ b/mesh/node.c |
447 |
-@@ -23,6 +23,7 @@ |
448 |
- |
449 |
- #define _GNU_SOURCE |
450 |
- #include <dirent.h> |
451 |
-+#include <limits.h> |
452 |
- #include <stdio.h> |
453 |
- #include <sys/time.h> |
454 |
- |
455 |
-diff --git a/mesh/util.c b/mesh/util.c |
456 |
-index 1455bde..986ba4b 100644 |
457 |
---- a/mesh/util.c |
458 |
-+++ b/mesh/util.c |
459 |
-@@ -25,6 +25,7 @@ |
460 |
- #include <dirent.h> |
461 |
- #include <ftw.h> |
462 |
- #include <stdio.h> |
463 |
-+#include <limits.h> |
464 |
- #include <time.h> |
465 |
- #include <sys/time.h> |
466 |
- |
467 |
--- |
468 |
-2.23.0 |
469 |
- |
470 |
|
471 |
diff --git a/net-wireless/bluez/files/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch b/net-wireless/bluez/files/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
472 |
deleted file mode 100644 |
473 |
index 004a389..0000000 |
474 |
--- a/net-wireless/bluez/files/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
475 |
+++ /dev/null |
476 |
@@ -1,38 +0,0 @@ |
477 |
-From f7861d27fbcbc519f57d8496aa9486f487908821 Mon Sep 17 00:00:00 2001 |
478 |
-From: Bastien Nocera <hadess@××××××.net> |
479 |
-Date: Sat, 9 Nov 2013 18:13:43 +0100 |
480 |
-Subject: [PATCH 1/5] obex: Use GLib helper function to manipulate paths |
481 |
- |
482 |
-Instead of trying to do it by hand. This also makes sure that |
483 |
-relative paths aren't used by the agent. |
484 |
---- |
485 |
- obexd/src/manager.c | 10 +++++----- |
486 |
- 1 file changed, 5 insertions(+), 5 deletions(-) |
487 |
- |
488 |
-diff --git a/obexd/src/manager.c b/obexd/src/manager.c |
489 |
-index cec8a39..f18896e 100644 |
490 |
---- a/obexd/src/manager.c |
491 |
-+++ b/obexd/src/manager.c |
492 |
-@@ -651,14 +651,14 @@ static void agent_reply(DBusPendingCall *call, void *user_data) |
493 |
- DBUS_TYPE_STRING, &name, |
494 |
- DBUS_TYPE_INVALID)) { |
495 |
- /* Splits folder and name */ |
496 |
-- const char *slash = strrchr(name, '/'); |
497 |
-+ gboolean is_relative = !g_path_is_absolute(name); |
498 |
- DBG("Agent replied with %s", name); |
499 |
-- if (!slash) { |
500 |
-- agent->new_name = g_strdup(name); |
501 |
-+ if (is_relative) { |
502 |
-+ agent->new_name = g_path_get_basename(name); |
503 |
- agent->new_folder = NULL; |
504 |
- } else { |
505 |
-- agent->new_name = g_strdup(slash + 1); |
506 |
-- agent->new_folder = g_strndup(name, slash - name); |
507 |
-+ agent->new_name = g_path_get_basename(name); |
508 |
-+ agent->new_folder = g_path_get_dirname(name); |
509 |
- } |
510 |
- } |
511 |
- |
512 |
--- |
513 |
-1.8.4.2 |
514 |
- |
515 |
|
516 |
diff --git a/net-wireless/bluez/files/69-btattach-bcm.rules b/net-wireless/bluez/files/69-btattach-bcm.rules |
517 |
deleted file mode 100644 |
518 |
index dfe8d1e..0000000 |
519 |
--- a/net-wireless/bluez/files/69-btattach-bcm.rules |
520 |
+++ /dev/null |
521 |
@@ -1,33 +0,0 @@ |
522 |
-# Some devices have a bluetooth HCI connected to an uart, these needs to be |
523 |
-# setup by calling btattach. The systemd btattach-bcm.service takes care of |
524 |
-# this. These udev rules hardware-activate that service when necessary. |
525 |
-# |
526 |
-# For now this only suports ACPI enumerated Broadcom BT HCIs. |
527 |
-# This has been tested on Bay and Cherry Trail devices with both ACPI and |
528 |
-# PCI enumerated UARTs. |
529 |
- |
530 |
-# Note we check for the platform device not for the acpi device, because |
531 |
-# some DSDTs list multiple bluetooth adapters, but only some (or none) |
532 |
-# are enabled. Only enabled adapters get a platform device created. |
533 |
-ACTION!="add", GOTO="btattach_bcm_rules_end" |
534 |
-SUBSYSTEM!="platform", GOTO="btattach_bcm_rules_end" |
535 |
- |
536 |
-KERNEL=="BCM2E1A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
537 |
-KERNEL=="BCM2E39:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
538 |
-KERNEL=="BCM2E3A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
539 |
-KERNEL=="BCM2E3D:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
540 |
-KERNEL=="BCM2E3F:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
541 |
-KERNEL=="BCM2E40:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
542 |
-KERNEL=="BCM2E54:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
543 |
-KERNEL=="BCM2E55:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
544 |
-KERNEL=="BCM2E64:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
545 |
-KERNEL=="BCM2E65:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
546 |
-KERNEL=="BCM2E67:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
547 |
-KERNEL=="BCM2E71:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
548 |
-KERNEL=="BCM2E7B:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
549 |
-KERNEL=="BCM2E7C:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
550 |
-KERNEL=="BCM2E7E:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
551 |
-KERNEL=="BCM2E95:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
552 |
-KERNEL=="BCM2E96:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" |
553 |
- |
554 |
-LABEL="btattach_bcm_rules_end" |
555 |
|
556 |
diff --git a/net-wireless/bluez/files/bluetooth-init.d-r4 b/net-wireless/bluez/files/bluetooth-init.d-r4 |
557 |
deleted file mode 100644 |
558 |
index e69c668..0000000 |
559 |
--- a/net-wireless/bluez/files/bluetooth-init.d-r4 |
560 |
+++ /dev/null |
561 |
@@ -1,12 +0,0 @@ |
562 |
-#!/sbin/openrc-run |
563 |
-# Copyright 1999-2019 Gentoo Authors |
564 |
-# Distributed under the terms of the GNU General Public License v2 |
565 |
- |
566 |
-pidfile="/run/bluetoothd.pid" |
567 |
-command="/usr/libexec/bluetooth/bluetoothd" |
568 |
-command_background=1 |
569 |
- |
570 |
-depend() { |
571 |
- after coldplug |
572 |
- need dbus localmount hostname |
573 |
-} |
574 |
|
575 |
diff --git a/net-wireless/bluez/files/bluez-5.39-systemd-quote.patch b/net-wireless/bluez/files/bluez-5.39-systemd-quote.patch |
576 |
deleted file mode 100644 |
577 |
index d23c877..0000000 |
578 |
--- a/net-wireless/bluez/files/bluez-5.39-systemd-quote.patch |
579 |
+++ /dev/null |
580 |
@@ -1,38 +0,0 @@ |
581 |
-From f554e152715a3c06a69954d9d4f15415c798e083 Mon Sep 17 00:00:00 2001 |
582 |
-From: Mike Gilbert <floppym@g.o> |
583 |
-Date: Sun, 3 Apr 2016 14:30:02 -0400 |
584 |
-Subject: [PATCH] build: Quote systemd variable names |
585 |
- |
586 |
-If the systemd-m4 package has been installed, SYSTEMD_USERUNITDIR is |
587 |
-defined as a macro. Quote this name to prevent macro expansion. |
588 |
- |
589 |
-Bug: https://bugs.gentoo.org/527432 |
590 |
---- |
591 |
- configure.ac | 4 ++-- |
592 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
593 |
- |
594 |
-diff --git a/configure.ac b/configure.ac |
595 |
-index 1679a47..4664003 100644 |
596 |
---- a/configure.ac |
597 |
-+++ b/configure.ac |
598 |
-@@ -216,7 +216,7 @@ if (test "${enable_systemd}" != "no" && test -z "${path_systemunitdir}"); then |
599 |
- fi |
600 |
- AC_MSG_RESULT([${path_systemunitdir}]) |
601 |
- fi |
602 |
--AC_SUBST(SYSTEMD_SYSTEMUNITDIR, [${path_systemunitdir}]) |
603 |
-+AC_SUBST([SYSTEMD_SYSTEMUNITDIR], [${path_systemunitdir}]) |
604 |
- |
605 |
- AC_ARG_WITH([systemduserunitdir], |
606 |
- AC_HELP_STRING([--with-systemduserunitdir=DIR], |
607 |
-@@ -230,7 +230,7 @@ if (test "${enable_systemd}" != "no" && test -z "${path_userunitdir}"); then |
608 |
- fi |
609 |
- AC_MSG_RESULT([${path_userunitdir}]) |
610 |
- fi |
611 |
--AC_SUBST(SYSTEMD_USERUNITDIR, [${path_userunitdir}]) |
612 |
-+AC_SUBST([SYSTEMD_USERUNITDIR], [${path_userunitdir}]) |
613 |
- |
614 |
- AC_ARG_ENABLE(datafiles, AC_HELP_STRING([--disable-datafiles], |
615 |
- [do not install configuration and data files]), |
616 |
--- |
617 |
-2.8.0 |
618 |
- |
619 |
|
620 |
diff --git a/net-wireless/bluez/files/bluez-udevadm-path-r1.patch b/net-wireless/bluez/files/bluez-udevadm-path-r1.patch |
621 |
deleted file mode 100644 |
622 |
index ac1c94c..0000000 |
623 |
--- a/net-wireless/bluez/files/bluez-udevadm-path-r1.patch |
624 |
+++ /dev/null |
625 |
@@ -1,10 +0,0 @@ |
626 |
---- a/tools/hid2hci.rules |
627 |
-+++ b/tools/hid2hci.rules |
628 |
-@@ -20,6 +20,7 @@ |
629 |
- # Unfortunately the only event seen is the BT device disappearing, so the mouse |
630 |
- # device needs to be chased down on the USB bus. |
631 |
- ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", ATTR{idVendor}=="413c", \ |
632 |
-+ ENV{REMOVE_CMD}="/bin/udevadm trigger --action=change --subsystem-match=usb --property-match=HID2HCI_SWITCH=1" \ |
633 |
- ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change --subsystem-match=usb --property-match=HID2HCI_SWITCH=1" |
634 |
- |
635 |
- # CSR devices |
636 |
|
637 |
diff --git a/net-wireless/bluez/files/btattach-bcm-service.sh b/net-wireless/bluez/files/btattach-bcm-service.sh |
638 |
deleted file mode 100644 |
639 |
index c7f8b17..0000000 |
640 |
--- a/net-wireless/bluez/files/btattach-bcm-service.sh |
641 |
+++ /dev/null |
642 |
@@ -1,30 +0,0 @@ |
643 |
-#!/bin/bash |
644 |
- |
645 |
-# Simple shell script to wait for the tty for an uart using BT HCI to show up |
646 |
-# and then invoke btattach with the right parameters, this is intended to be |
647 |
-# invoked from a hardware-activated systemd service |
648 |
-# |
649 |
-# For now this only suports ACPI enumerated Broadcom BT HCIs. |
650 |
-# This has been tested on Bay and Cherry Trail devices with both ACPI and |
651 |
-# PCI enumerated UARTs. |
652 |
-# |
653 |
-# Note the kernel bt developers are working on solving this entirely in the |
654 |
-# kernel, so it is not worth the trouble to write something better then this. |
655 |
- |
656 |
-BT_DEV="/sys/bus/platform/devices/$1" |
657 |
-BT_DEV="$(readlink -f $BT_DEV)" |
658 |
-UART_DEV="$(dirname $BT_DEV)" |
659 |
- |
660 |
-# Stupid GPD-pocket has USB BT with id 0000:0000, but still claims to have |
661 |
-# an uart attached bt |
662 |
-if [ "$1" = "BCM2E7E:00" ] && lsusb | grep -q "ID 0000:0000"; then |
663 |
- exit 0 |
664 |
-fi |
665 |
- |
666 |
-while [ ! -d "$UART_DEV/tty" ]; do |
667 |
- sleep .2 |
668 |
-done |
669 |
- |
670 |
-TTY="$(ls $UART_DEV/tty)" |
671 |
- |
672 |
-exec btattach --bredr "/dev/$TTY" -P bcm |
673 |
|
674 |
diff --git a/net-wireless/bluez/files/btattach-bcm_at.service b/net-wireless/bluez/files/btattach-bcm_at.service |
675 |
deleted file mode 100644 |
676 |
index 1e7c7db..0000000 |
677 |
--- a/net-wireless/bluez/files/btattach-bcm_at.service |
678 |
+++ /dev/null |
679 |
@@ -1,6 +0,0 @@ |
680 |
-[Unit] |
681 |
-Description=btattach for Broadcom devices |
682 |
- |
683 |
-[Service] |
684 |
-Type=simple |
685 |
-ExecStart=/usr/libexec/bluetooth/btattach-bcm-service.sh %I |
686 |
|
687 |
diff --git a/net-wireless/bluez/metadata.xml b/net-wireless/bluez/metadata.xml |
688 |
deleted file mode 100644 |
689 |
index 31e8695..0000000 |
690 |
--- a/net-wireless/bluez/metadata.xml |
691 |
+++ /dev/null |
692 |
@@ -1,26 +0,0 @@ |
693 |
-<?xml version="1.0" encoding="UTF-8"?> |
694 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
695 |
-<pkgmetadata> |
696 |
-<maintainer type="person"> |
697 |
- <email>pacho@g.o</email> |
698 |
- <name>Pacho Ramos</name> |
699 |
- </maintainer> |
700 |
-<use> |
701 |
- <flag name="btpclient">Enable BTP client</flag> |
702 |
- <flag name="deprecated">Build deprecated plugins</flag> |
703 |
- <flag name="experimental">Build experimental plugins</flag> |
704 |
- <flag name="extra-tools">Install tools that upstream doesn't install on |
705 |
- purpose by default. All this tools shouldn't be used. Then, please |
706 |
- notify upstream about you still need them to let them know the |
707 |
- situation.</flag> |
708 |
- <flag name="mesh">Add support for Bluetooth Mesh control application and advertising bearer.</flag> |
709 |
- <flag name="midi">Enable MIDI support</flag> |
710 |
- <flag name="obex">Enable OBEX transfer support</flag> |
711 |
- <flag name="test-programs">Install tools for testing of various Bluetooth functions</flag> |
712 |
- <flag name="user-session">Allow compatibility with user-session semantics for session bus under systemd</flag> |
713 |
-</use> |
714 |
-<upstream> |
715 |
- <remote-id type="cpe">cpe:/a:bluez:bluez</remote-id> |
716 |
- <remote-id type="cpe">cpe:/a:bluez:bluez-libs</remote-id> |
717 |
-</upstream> |
718 |
-</pkgmetadata> |