1 |
commit: c1ef568276b8d89b56ec403a52df396e872dde9b |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 19:24:34 2022 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 19:24:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1ef5682 |
7 |
|
8 |
net-wireless/bluez: Drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
net-wireless/bluez/bluez-5.63.ebuild | 302 ----------------------------------- |
14 |
1 file changed, 302 deletions(-) |
15 |
|
16 |
diff --git a/net-wireless/bluez/bluez-5.63.ebuild b/net-wireless/bluez/bluez-5.63.ebuild |
17 |
deleted file mode 100644 |
18 |
index b2c07f35899e..000000000000 |
19 |
--- a/net-wireless/bluez/bluez-5.63.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,302 +0,0 @@ |
22 |
-# Copyright 1999-2022 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=8 |
26 |
-PYTHON_COMPAT=( python3_{8..10} ) |
27 |
- |
28 |
-inherit autotools linux-info python-single-r1 readme.gentoo-r1 systemd udev multilib-minimal |
29 |
- |
30 |
-DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
31 |
-HOMEPAGE="http://www.bluez.org" |
32 |
-SRC_URI="https://www.kernel.org/pub/linux/bluetooth/${P}.tar.xz" |
33 |
- |
34 |
-LICENSE="GPL-2+ LGPL-2.1+" |
35 |
-SLOT="0/3" |
36 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~x86" |
37 |
-IUSE="btpclient cups doc debug deprecated extra-tools experimental +mesh midi +obex +readline selinux systemd test test-programs +udev" |
38 |
- |
39 |
-# Since this release all remaining extra-tools need readline support, but this could |
40 |
-# change in the future, hence, this REQUIRED_USE constraint could be dropped |
41 |
-# again in the future. |
42 |
-# btpclient needs mesh, bug #790587 |
43 |
-REQUIRED_USE=" |
44 |
- extra-tools? ( deprecated readline ) |
45 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
46 |
- test-programs? ( ${PYTHON_REQUIRED_USE} ) |
47 |
-" |
48 |
- |
49 |
-TEST_DEPS="${PYTHON_DEPS} |
50 |
- $(python_gen_cond_dep ' |
51 |
- >=dev-python/dbus-python-1[${PYTHON_USEDEP}] |
52 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
53 |
- ') |
54 |
-" |
55 |
-BDEPEND=" |
56 |
- dev-python/docutils |
57 |
- virtual/pkgconfig |
58 |
- test? ( ${TEST_DEPS} ) |
59 |
-" |
60 |
-DEPEND=" |
61 |
- >=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}] |
62 |
- btpclient? ( >=dev-libs/ell-0.39 ) |
63 |
- cups? ( net-print/cups:= ) |
64 |
- mesh? ( |
65 |
- >=dev-libs/ell-0.39 |
66 |
- >=dev-libs/json-c-0.13:= |
67 |
- sys-libs/readline:0= |
68 |
- ) |
69 |
- midi? ( media-libs/alsa-lib ) |
70 |
- obex? ( dev-libs/libical:= ) |
71 |
- readline? ( sys-libs/readline:0= ) |
72 |
- systemd? ( sys-apps/systemd ) |
73 |
- >=sys-apps/dbus-1.6:= |
74 |
- udev? ( >=virtual/udev-172 ) |
75 |
-" |
76 |
-RDEPEND="${DEPEND} |
77 |
- selinux? ( sec-policy/selinux-bluetooth ) |
78 |
- test-programs? ( ${TEST_DEPS} ) |
79 |
-" |
80 |
- |
81 |
-RESTRICT="!test? ( test )" |
82 |
- |
83 |
-PATCHES=( |
84 |
- # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844) |
85 |
- # http://www.spinics.net/lists/linux-bluetooth/msg58739.html |
86 |
- # https://bugs.gentoo.org/539844 |
87 |
- # https://github.com/bluez/bluez/issues/268 |
88 |
- "${FILESDIR}"/${PN}-udevadm-path-r1.patch |
89 |
- |
90 |
- # https://github.com/bluez/bluez/issues/267 |
91 |
- "${FILESDIR}"/${PN}-5.63-musl-limits.patch |
92 |
- |
93 |
- # Fedora patches |
94 |
- # http://www.spinics.net/lists/linux-bluetooth/msg40136.html |
95 |
- "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
96 |
- |
97 |
- # This reverts commit ac2c2e10b3adb432a572b618c6f53cabb6b3c80b. It |
98 |
- # causes problems with Logitech MX wireless input devices (see |
99 |
- # https://github.com/bluez/bluez/issues/220 ) |
100 |
- #"${FILESDIR}"/0001-Revert-attrib-Make-use-of-bt_att_resend.patch |
101 |
- # Instead of reverting, try another fix that seems to work as |
102 |
- # reported in upstream bug |
103 |
- "${FILESDIR}"/${PN}-5.63-use-queue_push_tail.patch |
104 |
-) |
105 |
- |
106 |
-pkg_setup() { |
107 |
- # From http://www.linuxfromscratch.org/blfs/view/svn/general/bluez.html |
108 |
- # to prevent bugs like: |
109 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=196621 |
110 |
- CONFIG_CHECK="~NET ~BT ~BT_RFCOMM ~BT_RFCOMM_TTY ~BT_BNEP ~BT_BNEP_MC_FILTER |
111 |
- ~BT_BNEP_PROTO_FILTER ~BT_HIDP ~CRYPTO_USER_API_HASH ~CRYPTO_USER_API_SKCIPHER ~RFKILL" |
112 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=196621 |
113 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206815 |
114 |
- if use mesh || use test; then |
115 |
- CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_USER |
116 |
- ~CRYPTO_USER_API ~CRYPTO_USER_API_AEAD ~CRYPTO_AES ~CRYPTO_CCM ~CRYPTO_AEAD ~CRYPTO_CMAC |
117 |
- ~CRYPTO_MD5 ~CRYPTO_SHA1 ~KEY_DH_OPERATIONS" |
118 |
- fi |
119 |
- linux-info_pkg_setup |
120 |
- |
121 |
- if use test || use test-programs; then |
122 |
- python-single-r1_pkg_setup |
123 |
- fi |
124 |
- |
125 |
- if ! use udev; then |
126 |
- ewarn |
127 |
- ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
128 |
- ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
129 |
- ewarn "and hid2hci will not be available." |
130 |
- ewarn |
131 |
- fi |
132 |
-} |
133 |
- |
134 |
-src_prepare() { |
135 |
- default |
136 |
- |
137 |
- # Skip test failing due to fixes for https://github.com/bluez/bluez/issues/220 |
138 |
- sed -i -e 's:unit_tests += unit/test-hog::' Makefile.am || die |
139 |
- |
140 |
- # http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
141 |
- if ! use systemd; then |
142 |
- eapply "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-session-r2.patch |
143 |
- fi |
144 |
- |
145 |
- eautoreconf |
146 |
- |
147 |
- if use cups; then |
148 |
- # Only not .am to not need to run eautoreconf only because of this |
149 |
- sed -i \ |
150 |
- -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ |
151 |
- Makefile.{in,tools} || die |
152 |
- fi |
153 |
- |
154 |
- multilib_copy_sources |
155 |
-} |
156 |
- |
157 |
-multilib_src_configure() { |
158 |
- local myconf=( |
159 |
- # readline is automagic when client is enabled |
160 |
- # --enable-client always needs readline, bug #504038 |
161 |
- # --enable-mesh is handled in the same way |
162 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex readline) |
163 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex mesh) |
164 |
- ) |
165 |
- |
166 |
- if ! multilib_is_native_abi; then |
167 |
- myconf+=( |
168 |
- # deps not used for the library |
169 |
- {DBUS,GLIB}_{CFLAGS,LIBS}=' ' |
170 |
- ) |
171 |
- fi |
172 |
- |
173 |
- econf \ |
174 |
- --localstatedir=/var \ |
175 |
- --disable-android \ |
176 |
- --enable-datafiles \ |
177 |
- --enable-optimization \ |
178 |
- $(use_enable debug) \ |
179 |
- --enable-pie \ |
180 |
- --enable-threads \ |
181 |
- --enable-library \ |
182 |
- --enable-tools \ |
183 |
- --enable-manpages \ |
184 |
- --enable-monitor \ |
185 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
186 |
- --with-systemduserunitdir="$(systemd_get_userunitdir)" \ |
187 |
- $(multilib_native_use_enable btpclient) \ |
188 |
- $(multilib_native_use_enable btpclient external-ell) \ |
189 |
- $(multilib_native_use_enable cups) \ |
190 |
- $(multilib_native_use_enable deprecated) \ |
191 |
- $(multilib_native_use_enable experimental) \ |
192 |
- $(multilib_native_use_enable mesh) \ |
193 |
- $(multilib_native_use_enable mesh external-ell) \ |
194 |
- $(multilib_native_use_enable midi) \ |
195 |
- $(multilib_native_use_enable obex) \ |
196 |
- $(multilib_native_use_enable readline client) \ |
197 |
- $(multilib_native_use_enable systemd) \ |
198 |
- $(multilib_native_use_enable test-programs test) \ |
199 |
- $(multilib_native_use_enable udev) \ |
200 |
- $(multilib_native_use_enable udev hid2hci) \ |
201 |
- $(multilib_native_use_enable udev sixaxis) |
202 |
-} |
203 |
- |
204 |
-multilib_src_compile() { |
205 |
- if multilib_is_native_abi; then |
206 |
- default |
207 |
- else |
208 |
- emake -f Makefile -f - libs \ |
209 |
- <<<'libs: $(lib_LTLIBRARIES)' |
210 |
- fi |
211 |
-} |
212 |
- |
213 |
-multilib_src_test() { |
214 |
- multilib_is_native_abi && default |
215 |
-} |
216 |
- |
217 |
-multilib_src_install() { |
218 |
- if multilib_is_native_abi; then |
219 |
- emake DESTDIR="${D}" install |
220 |
- |
221 |
- # Only install extra-tools when relevant USE flag is enabled |
222 |
- if use extra-tools; then |
223 |
- ewarn "Upstream doesn't support using this tools and their bugs are" |
224 |
- ewarn "likely to be ignored forever, also they can break without" |
225 |
- ewarn "previous announcement." |
226 |
- ewarn "Upstream also states all this tools are not really needed," |
227 |
- ewarn "then, if you still need to rely on them, you must ask them" |
228 |
- ewarn "to either install that tool by default or add the needed" |
229 |
- ewarn "functionality to the existing 'official' tools." |
230 |
- ewarn "Please report this issues to:" |
231 |
- ewarn "http://www.bluez.org/development/lists/" |
232 |
- |
233 |
- # Upstream doesn't install this, bug #524640 |
234 |
- # http://permalink.gmane.org/gmane.linux.bluez.kernel/53115 |
235 |
- # http://comments.gmane.org/gmane.linux.bluez.kernel/54564 |
236 |
- dobin tools/btmgmt |
237 |
- # gatttool is only built with readline, bug #530776 |
238 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1141909 |
239 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720486 |
240 |
- # https://bugs.archlinux.org/task/37686 |
241 |
- dobin attrib/gatttool |
242 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1699680 |
243 |
- dobin tools/avinfo |
244 |
- fi |
245 |
- |
246 |
- # Not installed by default after being built, bug #666756 |
247 |
- use btpclient && dobin tools/btpclient |
248 |
- |
249 |
- # Unittests are not that useful once installed, so make them optional |
250 |
- if use test-programs; then |
251 |
- # Drop python2 only test tools |
252 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206819 |
253 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/simple-player || die |
254 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206821 |
255 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/test-hfp || die |
256 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206823 |
257 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/test-sap-server || die |
258 |
- |
259 |
- python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test |
260 |
- |
261 |
- for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do |
262 |
- dosym "${i}" /usr/bin/bluez-"${i##*/}" |
263 |
- done |
264 |
- fi |
265 |
- else |
266 |
- emake DESTDIR="${D}" \ |
267 |
- install-pkgincludeHEADERS \ |
268 |
- install-libLTLIBRARIES \ |
269 |
- install-pkgconfigDATA |
270 |
- fi |
271 |
-} |
272 |
- |
273 |
-multilib_src_install_all() { |
274 |
- # We need to ensure obexd can be spawned automatically by systemd |
275 |
- # when user-session is enabled: |
276 |
- # http://marc.info/?l=linux-bluetooth&m=148096094716386&w=2 |
277 |
- # https://bugs.gentoo.org/show_bug.cgi?id=577842 |
278 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804908 |
279 |
- # https://bugs.archlinux.org/task/45816 |
280 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1318441 |
281 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1389347 |
282 |
- if use systemd; then |
283 |
- dosym obex.service /usr/lib/systemd/user/dbus-org.bluez.obex.service |
284 |
- fi |
285 |
- |
286 |
- find "${D}" -name '*.la' -type f -delete || die |
287 |
- |
288 |
- keepdir /var/lib/bluetooth |
289 |
- |
290 |
- # Upstream don't want people to play with them |
291 |
- # But we keep installing them due to 'historical' reasons |
292 |
- insinto /etc/bluetooth |
293 |
- local d |
294 |
- for d in input network; do |
295 |
- doins profiles/${d}/${d}.conf |
296 |
- done |
297 |
- # Setup auto enable as Fedora does for allowing to use |
298 |
- # keyboards/mouse as soon as possible |
299 |
- sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' src/main.conf || die |
300 |
- doins src/main.conf |
301 |
- |
302 |
- newinitd "${FILESDIR}"/bluetooth-init.d-r5 bluetooth |
303 |
- newconfd "${FILESDIR}"/bluetooth-conf.d bluetooth |
304 |
- |
305 |
- einstalldocs |
306 |
- use doc && dodoc doc/*.txt |
307 |
- # Install .json files as examples to be used by meshctl |
308 |
- if use mesh; then |
309 |
- dodoc tools/mesh-gatt/*.json |
310 |
- local DOC_CONTENTS="Some example .json files were installed into |
311 |
- /usr/share/doc/${PF} to be used with meshctl. Feel free to |
312 |
- uncompress and copy them to ~/.config/meshctl to use them." |
313 |
- readme.gentoo_create_doc |
314 |
- fi |
315 |
-} |
316 |
- |
317 |
-pkg_postinst() { |
318 |
- use udev && udev_reload |
319 |
- systemd_reenable bluetooth.service |
320 |
- |
321 |
- has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp" |
322 |
- use mesh && readme.gentoo_print_elog |
323 |
-} |