Gentoo Archives: gentoo-commits

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