diff options
Diffstat (limited to 'media-sound/bluez-alsa')
-rw-r--r-- | media-sound/bluez-alsa/Manifest | 5 | ||||
-rw-r--r-- | media-sound/bluez-alsa/bluez-alsa-2.0.0.ebuild | 68 | ||||
-rw-r--r-- | media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild | 4 | ||||
-rw-r--r-- | media-sound/bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch | 145 |
4 files changed, 151 insertions, 71 deletions
diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest index f0143bafc5dd..aaf0991da444 100644 --- a/media-sound/bluez-alsa/Manifest +++ b/media-sound/bluez-alsa/Manifest @@ -1,9 +1,8 @@ AUX bluealsa-conf.d-2 94 BLAKE2B 0e52dd17b7310b04759c160aaef8d7b50ee69e89c3b85fce5cade63163376f9b6400a1a4aaed90a09b8c87650e90f1c84f98199844e32f05b0d387ba3db4971e SHA512 6ddf5c4e82d30c1c56cdcdd0207d353dca4398d2e7e5e514b9dc1dd55bf1053876d0c12b3fd77dd7dff2c348b60bcf6f215f57f0c72aaf1b29e735e86f060406 AUX bluealsa-init.d 368 BLAKE2B 62558866adfed1fffafa47f15d0704d228d31e38529c542093b21dc1e82d459068a545e3e033cec32ec2ac9c8185459365846ce97a4f1264535533a6e55a186f SHA512 d0ffcd77d6aa7fd97d72b3cdb4b938c98a59344c8e710e6063adcf46091a9c33077edc913caecd65443ff5e9062998b1299b20b5c3866825640f33f662d8c88d AUX bluealsa.service 184 BLAKE2B 94d33842a6d677b6e6078e2159e13198daede77be2e5ac435836f5b20056deac75cbfd9828bd2fe22ea30e544e2846f61be1194c555a166303514bbb48e4107a SHA512 108a86070b215d16e092c0f8fb869c969bc99b6aa479cb81c894fc6ae0c9e16655b14da27ee49c7f50549e4de7aa43a855954cc0dfe7430cdcf8822a97a4d889 -DIST bluez-alsa-2.0.0.tar.gz 116895 BLAKE2B 97dfd3364259e8a633de0259c84efe4dc4a80a9f388620200c44136844af6f3e101bf6d49931e1b5cd466d4b1ff13b2a7b9284d4599db72039ee3c5afa5800ba SHA512 21152be594421cd00056e94065dcf767ca01f7b040117974315f97aab45db020264e33dabddac7fee12834a4ada9073b9ff680c25d8775b47604cb0bec638a7b +AUX bluez-alsa-2.1.0-gcc10.patch 4802 BLAKE2B f57c2920deaec93bf57e56440c20f01a23e58300e062f9d8f83b56719cbc8620dfac8e1420639db7cabc589a231e9f33ff6f2de6e8ad7ba9b2d9b2c18fa35b32 SHA512 e26c4cf6b4184c99ba85f9640f5f5db38ae66999560147af91aff1d9aebb10ef534dd631f8a8421164431401ee2a35da529c298deff6b955bd6747fc7a9f5605 DIST bluez-alsa-2.1.0.tar.gz 129650 BLAKE2B 6ab1b618828b5ad6f35c62a711cd24a51536ae4e013227addff8193bb522e0e7322d054fa8e688b5322ec59f6d08a654760ebb5792a637fa11536afc41c5dba5 SHA512 8b6d520f5733799b1c509052ac527377cbe5e0106b75180f783f83071246937b5dc7a22c2d27f3e9e331c52c74be59f3bc6d78caab97b41f06cfd6ed5191b584 -EBUILD bluez-alsa-2.0.0.ebuild 1692 BLAKE2B 05aec99d39b34f4ba0d372a9dad95e91c2850f77044190abf3956e173b91af9b89b747757537765d5ca55d0aede612584f024b28cd59234b1ab15d9702cdf865 SHA512 769fd153bb7496a9c49c8336d69aa9d2f506c241383aafb06bc9e5fa04d6e95ff0c3f696b1707eee109fc6b593c5bd478a550bedd964479e90b1734e72a57716 -EBUILD bluez-alsa-2.1.0.ebuild 1877 BLAKE2B f499f35e7e189820ea2554c576ea2ebae05c5fadf7386d76e4abbbbb2ffa057544cc6b12af313ae3ec48331d4bcdc98d087adc93323dd7adccc5cd64b59bb57e SHA512 a1e2c29746fdc1701b8ae6d7c0384466fd21a44e052d08e8be46b9d93de2eeaee71fb931babc1ef472e4480fbd6e6bea82fe46c7787c7bc7f472d84bbacae479 +EBUILD bluez-alsa-2.1.0.ebuild 1930 BLAKE2B 32a79bd8fbdc218bc2e968d77b1fbc9ef79a97aaf67b377687202d43150f6ac61419cf4507175627b90d519af028dbcfa1c50bf582764fc3d98af63b5ac22424 SHA512 740f21e0a17acc513cfe776361808782d047399219bab175a8aeeae5a6aa71d99ab31a74d173ca40c37a744b1c175afec6c6585f28b7e5b5b0b379c70eaf8057 EBUILD bluez-alsa-9999.ebuild 1877 BLAKE2B f499f35e7e189820ea2554c576ea2ebae05c5fadf7386d76e4abbbbb2ffa057544cc6b12af313ae3ec48331d4bcdc98d087adc93323dd7adccc5cd64b59bb57e SHA512 a1e2c29746fdc1701b8ae6d7c0384466fd21a44e052d08e8be46b9d93de2eeaee71fb931babc1ef472e4480fbd6e6bea82fe46c7787c7bc7f472d84bbacae479 MISC metadata.xml 583 BLAKE2B 169737f9ae65bf26204a56b0fbcd1479911895ccfc20433c01a8ea1711ceb75939531f395f7e882149ffde427f43d8410d19392040e5288f5dbca2e4f86fa71f SHA512 b767355e099b5c60ad8d439ba7db224a11638a3fca4a7cd7b3efaa3152a0660ca96176a08d8e352fece334e7a48cebcce555fe12cf9959749491eed360772054 diff --git a/media-sound/bluez-alsa/bluez-alsa-2.0.0.ebuild b/media-sound/bluez-alsa/bluez-alsa-2.0.0.ebuild deleted file mode 100644 index 336fe7f1b8a6..000000000000 --- a/media-sound/bluez-alsa/bluez-alsa-2.0.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit autotools multilib-minimal systemd - -DESCRIPTION="Bluetooth Audio ALSA Backend" -HOMEPAGE="https://github.com/Arkq/bluez-alsa" - -if [[ ${PV} == "9999" ]] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/Arkq/${PN}" -else - SRC_URI="https://github.com/Arkq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="aac debug hcitop ldac ofono static-libs test" -RESTRICT="!test? ( test )" - -RDEPEND=">=dev-libs/glib-2.26[dbus,${MULTILIB_USEDEP}] - >=media-libs/alsa-lib-1.1.2[${MULTILIB_USEDEP}] - >=media-libs/sbc-1.2[${MULTILIB_USEDEP}] - >=net-wireless/bluez-5.0[${MULTILIB_USEDEP}] - sys-apps/dbus[${MULTILIB_USEDEP}] - sys-libs/readline:0= - aac? ( >=media-libs/fdk-aac-0.1.1:=[${MULTILIB_USEDEP}] ) - hcitop? ( - dev-libs/libbsd - sys-libs/ncurses:0= - ) - ldac? ( >=media-libs/libldac-2.0.0 )" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -src_prepare() { - default - eautoreconf -} - -multilib_src_configure() { - local myeconfargs=( - --enable-rfcomm - $(use_enable aac) - $(use_enable debug) - $(use_enable ofono) - $(use_enable static-libs static) - $(use_enable test) - $(multilib_native_use_enable hcitop) - $(multilib_native_use_enable ldac) - ) - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" -} - -multilib_src_install_all() { - default - find "${ED}" -name "*.la" -delete || die - - newinitd "${FILESDIR}"/bluealsa-init.d bluealsa - newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa - systemd_dounit "${FILESDIR}"/bluealsa.service -} - -pkg_postinst() { - elog "Users can use this service when they are members of the \"audio\" group." -} diff --git a/media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild b/media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild index fc03fb3b79e0..c0b3a72b1abb 100644 --- a/media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild +++ b/media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild @@ -40,6 +40,10 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( + "${FILESDIR}/${P}-gcc10.patch" #706680 +) + src_prepare() { default eautoreconf diff --git a/media-sound/bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch b/media-sound/bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch new file mode 100644 index 000000000000..df8e148842e2 --- /dev/null +++ b/media-sound/bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch @@ -0,0 +1,145 @@ +From 450ba2c898303cea2cba9a5efa99c7d919fc9e55 Mon Sep 17 00:00:00 2001 +From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com> +Date: Sun, 9 Feb 2020 22:26:16 +0100 +Subject: [PATCH] Fix linkage - mark external variable as extern + +--- + src/bluealsa-iface.h | 6 +++--- + src/bluez-a2dp.h | 4 ++-- + src/bluez-iface.h | 6 +++--- + src/ofono-iface.h | 4 ++-- + test/server-mock.c | 1 + + test/test-ba.c | 1 + + test/test-io.c | 1 + + test/test-rfcomm.c | 1 + + 8 files changed, 14 insertions(+), 10 deletions(-) + +diff --git a/src/bluealsa-iface.h b/src/bluealsa-iface.h +index 262fb76..1d3366d 100644 +--- a/src/bluealsa-iface.h ++++ b/src/bluealsa-iface.h +@@ -32,8 +32,8 @@ + #define BLUEALSA_RFCOMM_MODE_HSP_AG "HSP-AG" + #define BLUEALSA_RFCOMM_MODE_HSP_HS "HSP-HS" + +-const GDBusInterfaceInfo bluealsa_iface_manager; +-const GDBusInterfaceInfo bluealsa_iface_pcm; +-const GDBusInterfaceInfo bluealsa_iface_rfcomm; ++extern const GDBusInterfaceInfo bluealsa_iface_manager; ++extern const GDBusInterfaceInfo bluealsa_iface_pcm; ++extern const GDBusInterfaceInfo bluealsa_iface_rfcomm; + + #endif +diff --git a/src/bluez-a2dp.h b/src/bluez-a2dp.h +index 7c0e33b..4a695d9 100644 +--- a/src/bluez-a2dp.h ++++ b/src/bluez-a2dp.h +@@ -1,6 +1,6 @@ + /* + * BlueALSA - bluez-a2dp.h +- * Copyright (c) 2016-2019 Arkadiusz Bokowy ++ * Copyright (c) 2016-2020 Arkadiusz Bokowy + * + * This file is a part of bluez-alsa. + * +@@ -58,6 +58,6 @@ struct bluez_a2dp_codec { + }; + + /* NULL-terminated list of available A2DP codecs */ +-const struct bluez_a2dp_codec **bluez_a2dp_codecs; ++extern const struct bluez_a2dp_codec **bluez_a2dp_codecs; + + #endif +diff --git a/src/bluez-iface.h b/src/bluez-iface.h +index 34269c5..ca8fba5 100644 +--- a/src/bluez-iface.h ++++ b/src/bluez-iface.h +@@ -1,6 +1,6 @@ + /* + * BlueALSA - bluez-iface.h +- * Copyright (c) 2016-2019 Arkadiusz Bokowy ++ * Copyright (c) 2016-2020 Arkadiusz Bokowy + * + * This file is a part of bluez-alsa. + * +@@ -27,7 +27,7 @@ + #define BLUEZ_TRANSPORT_STATE_PENDING "pending" + #define BLUEZ_TRANSPORT_STATE_ACTIVE "active" + +-const GDBusInterfaceInfo bluez_iface_endpoint; +-const GDBusInterfaceInfo bluez_iface_profile; ++extern const GDBusInterfaceInfo bluez_iface_endpoint; ++extern const GDBusInterfaceInfo bluez_iface_profile; + + #endif +diff --git a/src/ofono-iface.h b/src/ofono-iface.h +index d5a6715..d5b9065 100644 +--- a/src/ofono-iface.h ++++ b/src/ofono-iface.h +@@ -1,6 +1,6 @@ + /* + * BlueALSA - ofono-iface.h +- * Copyright (c) 2016-2019 Arkadiusz Bokowy ++ * Copyright (c) 2016-2020 Arkadiusz Bokowy + * 2018 Thierry Bultel + * + * This file is a part of bluez-alsa. +@@ -27,6 +27,6 @@ + #define OFONO_AUDIO_CODEC_CVSD 0x01 + #define OFONO_AUDIO_CODEC_MSBC 0x02 + +-const GDBusInterfaceInfo ofono_iface_hf_audio_agent; ++extern const GDBusInterfaceInfo ofono_iface_hf_audio_agent; + + #endif +diff --git a/test/server-mock.c b/test/server-mock.c +index 34934e8..a42e845 100644 +--- a/test/server-mock.c ++++ b/test/server-mock.c +@@ -36,6 +36,7 @@ + #include "../src/ba-adapter.c" + #include "../src/ba-device.c" + #include "../src/ba-transport.c" ++#include "../src/bluez-a2dp.c" + #include "../src/hci.c" + #include "../src/msbc.c" + #include "../src/rfcomm.c" +diff --git a/test/test-ba.c b/test/test-ba.c +index f9eb145..97d57d6 100644 +--- a/test/test-ba.c ++++ b/test/test-ba.c +@@ -22,6 +22,7 @@ + #include "../src/utils.c" + #include "../src/shared/log.c" + ++const struct bluez_a2dp_codec **bluez_a2dp_codecs = NULL; + int a2dp_thread_create(struct ba_transport *t) { (void)t; return 0; } + void *rfcomm_thread(struct ba_transport *t) { (void)t; return 0; } + void *sco_thread(struct ba_transport *t) { (void)t; return 0; } +diff --git a/test/test-io.c b/test/test-io.c +index 9dbd0e9..85d3fe7 100644 +--- a/test/test-io.c ++++ b/test/test-io.c +@@ -33,6 +33,7 @@ + #include "../src/shared/log.c" + #include "../src/shared/rt.c" + ++const struct bluez_a2dp_codec **bluez_a2dp_codecs = NULL; + unsigned int bluealsa_dbus_pcm_register(struct ba_transport *t, GError **error) { + debug("%s: %p", __func__, (void *)t); (void)error; return 0; } + void bluealsa_dbus_pcm_update(struct ba_transport *t, unsigned int mask) { +diff --git a/test/test-rfcomm.c b/test/test-rfcomm.c +index d14a7bd..248939f 100644 +--- a/test/test-rfcomm.c ++++ b/test/test-rfcomm.c +@@ -34,6 +34,7 @@ static pthread_mutex_t transport_codec_updated_mtx = PTHREAD_MUTEX_INITIALIZER; + static pthread_cond_t transport_codec_updated = PTHREAD_COND_INITIALIZER; + static unsigned int transport_codec_updated_cnt = 0; + ++const struct bluez_a2dp_codec **bluez_a2dp_codecs = NULL; + unsigned int bluealsa_dbus_pcm_register(struct ba_transport *t, GError **error) { + debug("%s: %p", __func__, (void *)t); (void)error; return 0; } + void bluealsa_dbus_pcm_update(struct ba_transport *t, unsigned int mask) { +-- +2.24.1 + |