* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2016-10-18 8:09 Lars Wendler
0 siblings, 0 replies; 8+ messages in thread
From: Lars Wendler @ 2016-10-18 8:09 UTC (permalink / raw
To: gentoo-commits
commit: 948ee771c65417ab41ec2d41fbe32a12a7673dd8
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 18 08:09:18 2016 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Oct 18 08:09:46 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=948ee771
media-sound/bluez-alsa: Initial commit (bug #592310).
Kudos to Arkadiusz Bokowy (bug, ebuild, init script) and to
Sander Sweers (ebuild, init script).
Package-Manager: portage-2.3.2
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
media-sound/bluez-alsa/Manifest | 1 +
media-sound/bluez-alsa/bluez-alsa-1.1.0.ebuild | 50 +++++++++++++++++++++++++
media-sound/bluez-alsa/bluez-alsa-9999.ebuild | 52 ++++++++++++++++++++++++++
media-sound/bluez-alsa/files/bluealsa-init.d | 18 +++++++++
media-sound/bluez-alsa/metadata.xml | 11 ++++++
5 files changed, 132 insertions(+)
diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
new file mode 100644
index 00000000..17dfe12
--- /dev/null
+++ b/media-sound/bluez-alsa/Manifest
@@ -0,0 +1 @@
+DIST bluez-alsa-1.1.0.tar.gz 73676 SHA256 93396e581c196f9283d5907c7b8059ded21f5ec75a58f1c96f01d9ba295f5179 SHA512 167fa45994b57b0b44d5827762638d36ef782d7789c229e5c1ca99b59c13636dc53161cd45bec41e61890acd38b44d20778bc2085385582329a1c666530b21f1 WHIRLPOOL 2faba9fbd57fac2a519fe382c8a98654159a51819fea11da93ea3e198d31e51d3357bf2effa9df31713c2f201717dbd395a721efa81c9000a4da15df7e542a70
diff --git a/media-sound/bluez-alsa/bluez-alsa-1.1.0.ebuild b/media-sound/bluez-alsa/bluez-alsa-1.1.0.ebuild
new file mode 100644
index 00000000..20e4c0d
--- /dev/null
+++ b/media-sound/bluez-alsa/bluez-alsa-1.1.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils
+
+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="debug"
+
+RDEPEND=">=dev-libs/glib-2.16[dbus]
+ >=media-libs/alsa-lib-1.0
+ >=media-libs/sbc-1.2
+ >=net-wireless/bluez-5"
+DEPEND="${RDEPEND}
+ net-libs/ortp
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
+}
+
+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-9999.ebuild b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
new file mode 100644
index 00000000..35d35a0
--- /dev/null
+++ b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils
+
+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"
+
+RDEPEND=">=dev-libs/glib-2.16[dbus]
+ >=media-libs/alsa-lib-1.0
+ >=media-libs/sbc-1.2
+ >=net-wireless/bluez-5"
+DEPEND="${RDEPEND}
+ net-libs/ortp
+ aac? ( >=media-libs/fdk-aac-0.1.1 )
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable aac) \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
+}
+
+pkg_postinst() {
+ elog "Users can use this service when they are members of the \"audio\" group."
+}
diff --git a/media-sound/bluez-alsa/files/bluealsa-init.d b/media-sound/bluez-alsa/files/bluealsa-init.d
new file mode 100644
index 00000000..1e2b2a7
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluealsa-init.d
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+pidfile="/var/run/bluealsa.pid"
+command="/usr/bin/bluealsa"
+command_args="--disable-hsp"
+command_background="true"
+
+depend() {
+ after bluetooth
+ need dbus localmount
+}
+
+start_pre() {
+ checkpath -q -D -m 0700 -o :audio /var/run/bluealsa
+}
diff --git a/media-sound/bluez-alsa/metadata.xml b/media-sound/bluez-alsa/metadata.xml
new file mode 100644
index 00000000..515507b
--- /dev/null
+++ b/media-sound/bluez-alsa/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Arkq/bluez-alsa</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2017-02-06 0:01 Lars Wendler
0 siblings, 0 replies; 8+ messages in thread
From: Lars Wendler @ 2017-02-06 0:01 UTC (permalink / raw
To: gentoo-commits
commit: 8554d7d102cbbf958d287711a6fc52f8fddce6c5
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 5 23:57:19 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Feb 6 00:00:58 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8554d7d1
media-sound/bluez-alsa: Added conf.d file (bug #608354).
This enables users to submit their own set of options.
Thanks to Sander Sweers for opening the bug and providing the initial
patches.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
.../{bluez-alsa-1.1.0-r1.ebuild => bluez-alsa-1.1.0-r2.ebuild} | 3 ++-
media-sound/bluez-alsa/bluez-alsa-9999.ebuild | 3 ++-
media-sound/bluez-alsa/files/bluealsa-conf.d | 4 ++++
media-sound/bluez-alsa/files/bluealsa-init.d | 4 ++--
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild b/media-sound/bluez-alsa/bluez-alsa-1.1.0-r2.ebuild
similarity index 91%
rename from media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild
rename to media-sound/bluez-alsa/bluez-alsa-1.1.0-r2.ebuild
index 20e4c0d..4cdd673 100644
--- a/media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-1.1.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -43,6 +43,7 @@ src_install() {
prune_libtool_files --modules
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
+ newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa
}
pkg_postinst() {
diff --git a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
index 263c3be..fc34300 100644
--- a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -51,6 +51,7 @@ multilib_src_install_all() {
prune_libtool_files --modules
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
+ newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa
}
pkg_postinst() {
diff --git a/media-sound/bluez-alsa/files/bluealsa-conf.d b/media-sound/bluez-alsa/files/bluealsa-conf.d
new file mode 100644
index 00000000..feb2e1e
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluealsa-conf.d
@@ -0,0 +1,4 @@
+# Config file for /etc/init.d/bluealsa
+
+# Allow additional options to be set
+BLUEALSA_CONF="--disable-hsp"
diff --git a/media-sound/bluez-alsa/files/bluealsa-init.d b/media-sound/bluez-alsa/files/bluealsa-init.d
index 1b61e83..0f60e93 100644
--- a/media-sound/bluez-alsa/files/bluealsa-init.d
+++ b/media-sound/bluez-alsa/files/bluealsa-init.d
@@ -1,11 +1,11 @@
#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
pidfile="/var/run/bluealsa.pid"
command="/usr/bin/bluealsa"
-command_args="--disable-hsp"
+command_args="${BLUEALSA_CONF}"
command_background="true"
depend() {
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2018-07-02 11:28 Lars Wendler
0 siblings, 0 replies; 8+ messages in thread
From: Lars Wendler @ 2018-07-02 11:28 UTC (permalink / raw
To: gentoo-commits
commit: 6d06f1f17739c5d5b3d5f23a9f1339ffc1f8afef
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 2 11:28:07 2018 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jul 2 11:28:22 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d06f1f1
media-sound/bluez-alsa: Sync with upstream changes.
Thanks-to: Arkadiusz Bokowy
Closes: https://bugs.gentoo.org/659838
Package-Manager: Portage-2.3.41, Repoman-2.3.9
media-sound/bluez-alsa/bluez-alsa-9999.ebuild | 20 ++++++++++----------
media-sound/bluez-alsa/files/bluealsa-conf.d-2 | 4 ++++
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
index 8b3787db68d..186e2b9681c 100644
--- a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit autotools eutils multilib-minimal
+EAPI=7
+inherit autotools multilib-minimal
DESCRIPTION="Bluetooth Audio ALSA Backend"
HOMEPAGE="https://github.com/Arkq/bluez-alsa"
@@ -29,7 +29,6 @@ RDEPEND=">=dev-libs/glib-2.16[dbus,${MULTILIB_USEDEP}]
sys-libs/ncurses:0=
)"
DEPEND="${RDEPEND}
- net-libs/ortp
virtual/pkgconfig"
src_prepare() {
@@ -38,19 +37,20 @@ src_prepare() {
}
multilib_src_configure() {
- ECONF_SOURCE="${S}" \
- econf \
- $(use_enable aac) \
- $(use_enable debug) \
+ local myeconfargs=(
+ $(use_enable aac)
+ $(use_enable debug)
$(multilib_native_use_enable hcitop)
+ )
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
}
multilib_src_install_all() {
default
- prune_libtool_files --modules
+ find "${ED}" -name "*.la" -delete || die
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
- newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa
+ newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
}
pkg_postinst() {
diff --git a/media-sound/bluez-alsa/files/bluealsa-conf.d-2 b/media-sound/bluez-alsa/files/bluealsa-conf.d-2
new file mode 100644
index 00000000000..29d52f4a1fc
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluealsa-conf.d-2
@@ -0,0 +1,4 @@
+# Config file for /etc/init.d/bluealsa
+
+# Allow additional options to be set
+BLUEALSA_CONF=""
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2019-04-29 0:36 Lars Wendler
0 siblings, 0 replies; 8+ messages in thread
From: Lars Wendler @ 2019-04-29 0:36 UTC (permalink / raw
To: gentoo-commits
commit: 6ef7c69333e13ef4d5369b0dde81216aa05a14b5
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 29 00:35:47 2019 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Apr 29 00:36:10 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ef7c693
media-sound/bluez-alsa: Added systemd unit file
Thanks-to: Chris Mayo <aklhfex <AT> gmail.com>
Closes: https://bugs.gentoo.org/677928
Package-Manager: Portage-2.3.65, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
media-sound/bluez-alsa/bluez-alsa-9999.ebuild | 3 ++-
media-sound/bluez-alsa/files/bluealsa.service | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
index cc736065095..0e5b0d27ae8 100644
--- a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit autotools multilib-minimal
+inherit autotools multilib-minimal systemd
DESCRIPTION="Bluetooth Audio ALSA Backend"
HOMEPAGE="https://github.com/Arkq/bluez-alsa"
@@ -58,6 +58,7 @@ multilib_src_install_all() {
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
+ systemd_dounit "${FILESDIR}"/bluealsa.service
}
pkg_postinst() {
diff --git a/media-sound/bluez-alsa/files/bluealsa.service b/media-sound/bluez-alsa/files/bluealsa.service
new file mode 100644
index 00000000000..12451ccb618
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluealsa.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Bluetooth Audio ALSA Backend
+Requisite=dbus.service
+After=bluetooth.service dbus.service
+
+[Service]
+ExecStart=/usr/bin/bluealsa
+
+[Install]
+WantedBy=bluetooth.target
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2020-01-26 16:54 Lars Wendler
0 siblings, 0 replies; 8+ messages in thread
From: Lars Wendler @ 2020-01-26 16:54 UTC (permalink / raw
To: gentoo-commits
commit: 36b0121d4c946ea5ba538ace4fb2657ce4801174
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 26 16:54:13 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 16:54:28 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36b0121d
media-sound/bluez-alsa: Removed old
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
media-sound/bluez-alsa/Manifest | 1 -
media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild | 70 ----------------------
.../bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch | 31 ----------
3 files changed, 102 deletions(-)
diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
index ca261553f76..6528732b7c7 100644
--- a/media-sound/bluez-alsa/Manifest
+++ b/media-sound/bluez-alsa/Manifest
@@ -1,3 +1,2 @@
-DIST bluez-alsa-1.4.0.tar.gz 102539 BLAKE2B 8e640ba5c0cadfa5478885dc6affef790bd50fe04821602156a598082efc8733f0917a91240af7881f980e89ec0e36801e537feedec3ce357087b040f852eeb0 SHA512 fa4ad21c7b9ac200cdc7628bf0276bbb0beac94066a6c5e69c47a5286f6e13a7dc61caab23acbb14a37c2b97894c425052a09adb8f967038f6fd99557208629f
DIST bluez-alsa-2.0.0.tar.gz 116895 BLAKE2B 97dfd3364259e8a633de0259c84efe4dc4a80a9f388620200c44136844af6f3e101bf6d49931e1b5cd466d4b1ff13b2a7b9284d4599db72039ee3c5afa5800ba SHA512 21152be594421cd00056e94065dcf767ca01f7b040117974315f97aab45db020264e33dabddac7fee12834a4ada9073b9ff680c25d8775b47604cb0bec638a7b
DIST bluez-alsa-2.1.0.tar.gz 129650 BLAKE2B 6ab1b618828b5ad6f35c62a711cd24a51536ae4e013227addff8193bb522e0e7322d054fa8e688b5322ec59f6d08a654760ebb5792a637fa11536afc41c5dba5 SHA512 8b6d520f5733799b1c509052ac527377cbe5e0106b75180f783f83071246937b5dc7a22c2d27f3e9e331c52c74be59f3bc6d78caab97b41f06cfd6ed5191b584
diff --git a/media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild b/media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild
deleted file mode 100644
index ebcf1d25324..00000000000
--- a/media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit autotools multilib-minimal
-
-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-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"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.4.0-ldac_pkgconfig_checks.patch
-)
-
-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
-}
-
-pkg_postinst() {
- elog "Users can use this service when they are members of the \"audio\" group."
-}
diff --git a/media-sound/bluez-alsa/files/bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch b/media-sound/bluez-alsa/files/bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch
deleted file mode 100644
index 55530ea8b83..00000000000
--- a/media-sound/bluez-alsa/files/bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 52b08766b08ec7ef8393343553934ca148c175af Mon Sep 17 00:00:00 2001
-From: Lars Wendler <polynomial-c@gentoo.org>
-Date: Sun, 24 Mar 2019 13:04:24 +0100
-Subject: [PATCH] configure.ac: Fix pkg-config checks for libldac
-
-libldac actually provides the following two pkgconfig files:
-
-ldacBT-enc.pc
-ldacBT-abr.pc
----
- configure.ac | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 270a74c..6f0b04b 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -81,8 +81,8 @@ AC_ARG_ENABLE([ldac],
- [AS_HELP_STRING([--enable-ldac], [enable LDAC support])])
- AM_CONDITIONAL([ENABLE_LDAC], [test "x$enable_ldac" = "xyes"])
- AM_COND_IF([ENABLE_LDAC], [
-- PKG_CHECK_MODULES([LDAC], [libldacBT >= 2.0.0])
-- PKG_CHECK_MODULES([LDAC_ABR], [libldacBT_abr >= 2.0.0])
-+ PKG_CHECK_MODULES([LDAC], [ldacBT-enc >= 2.0.0])
-+ PKG_CHECK_MODULES([LDAC_ABR], [ldacBT-abr >= 2.0.0])
- AC_DEFINE([ENABLE_LDAC], [1], [Define to 1 if LDAC is enabled.])
- ])
-
---
-2.21.0
-
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2020-05-20 11:41 Lars Wendler
0 siblings, 0 replies; 8+ messages in thread
From: Lars Wendler @ 2020-05-20 11:41 UTC (permalink / raw
To: gentoo-commits
commit: 6752a6eacf490069b294be8fa97e59ef3b7d8577
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed May 20 11:40:30 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed May 20 11:41:41 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6752a6ea
media-sound/bluez-alsa: Fixed build with gcc10
Thanks-to: Arkadiusz Bokowy <arkadiusz.bokowy <AT> gmail.com>
Closes: https://bugs.gentoo.org/706680
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild | 4 +
.../bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch | 145 +++++++++++++++++++++
2 files changed, 149 insertions(+)
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 fc03fb3b79e..c0b3a72b1ab 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 00000000000..df8e148842e
--- /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
+
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2020-11-10 7:54 Lars Wendler
0 siblings, 0 replies; 8+ messages in thread
From: Lars Wendler @ 2020-11-10 7:54 UTC (permalink / raw
To: gentoo-commits
commit: 9407e03e735de4044a2f4bd1d4f754613ffc4b3a
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 10 07:52:35 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Nov 10 07:54:24 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9407e03e
media-sound/bluez-alsa: Removed old
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
media-sound/bluez-alsa/Manifest | 1 -
media-sound/bluez-alsa/bluez-alsa-2.1.0-r1.ebuild | 83 ------------
.../bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch | 145 ---------------------
3 files changed, 229 deletions(-)
diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
index 1f278685cce..d44d76abd81 100644
--- a/media-sound/bluez-alsa/Manifest
+++ b/media-sound/bluez-alsa/Manifest
@@ -1,2 +1 @@
-DIST bluez-alsa-2.1.0.tar.gz 129650 BLAKE2B 6ab1b618828b5ad6f35c62a711cd24a51536ae4e013227addff8193bb522e0e7322d054fa8e688b5322ec59f6d08a654760ebb5792a637fa11536afc41c5dba5 SHA512 8b6d520f5733799b1c509052ac527377cbe5e0106b75180f783f83071246937b5dc7a22c2d27f3e9e331c52c74be59f3bc6d78caab97b41f06cfd6ed5191b584
DIST bluez-alsa-3.0.0.tar.gz 157776 BLAKE2B 68cc67dcfd303e624333d7dafa53a3ce0f91f55e58a9a1a51f17153eadfdca5acc1b12b2e41a11c4780909fe8283e0a9c859a7d755e38dd9aeebbf4ae9e0daf2 SHA512 094c91636c3f1803b3eb88e295683acc604be9f86d00022c196784b4ec88aa4a6cc20bdff0fdab2a7e5af3efe95ed8bd8c5486a8cd7896ec572bfa9e8e0f13d0
diff --git a/media-sound/bluez-alsa/bluez-alsa-2.1.0-r1.ebuild b/media-sound/bluez-alsa/bluez-alsa-2.1.0-r1.ebuild
deleted file mode 100644
index f654ac56596..00000000000
--- a/media-sound/bluez-alsa/bluez-alsa-2.1.0-r1.ebuild
+++ /dev/null
@@ -1,83 +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 upower"
-RESTRICT="!test? ( test )"
-
-# bluez-alsa does not directly link to upower but
-# is using the upower interface via dbus calls.
-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 )
- upower? ( sys-power/upower )
-"
-DEPEND="${RDEPEND}
- test? ( dev-libs/check )"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}/${P}-gcc10.patch" #706680
-)
-
-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)
- $(multilib_native_use_enable upower)
- )
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
-}
-
-multilib_src_install_all() {
- default
- find "${ED}" -type f -name "*.la" -delete || die
-
- newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
- newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
- systemd_dounit "${FILESDIR}"/bluealsa.service
-
- # Add config file to alsa datadir as well to preserve changes in /etc
- insinto "/usr/share/alsa/alsa.conf.d/"
- doins "src/asound/20-bluealsa.conf"
-}
-
-pkg_postinst() {
- elog "Users can use this service when they are members of the \"audio\" group."
-}
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
deleted file mode 100644
index df8e148842e..00000000000
--- a/media-sound/bluez-alsa/files/bluez-alsa-2.1.0-gcc10.patch
+++ /dev/null
@@ -1,145 +0,0 @@
-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
-
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/
@ 2024-06-16 7:53 Pacho Ramos
0 siblings, 0 replies; 8+ messages in thread
From: Pacho Ramos @ 2024-06-16 7:53 UTC (permalink / raw
To: gentoo-commits
commit: 4be18842595f90be71425c4fb302ba118056f4f9
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 07:47:43 2024 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 07:53:08 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be18842
media-sound/bluez-alsa: add 4.2.0
It also moves to use media-libs/libfreeaptx
Closes: https://bugs.gentoo.org/933612
Closes: https://bugs.gentoo.org/933613
Bug: https://bugs.gentoo.org/791259
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
media-sound/bluez-alsa/Manifest | 1 +
media-sound/bluez-alsa/bluez-alsa-4.2.0.ebuild | 120 +++++++++++++++
.../bluez-alsa-4.2.0-fix-include-freeaptx.patch | 31 ++++
.../files/bluez-alsa-4.2.0-ldpreload.patch | 164 +++++++++++++++++++++
.../bluez-alsa-4.2.0-test-alsa-midi-checkdev.patch | 23 +++
media-sound/bluez-alsa/metadata.xml | 1 +
6 files changed, 340 insertions(+)
diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
index 8cace7d0f186..f27a0cbd623a 100644
--- a/media-sound/bluez-alsa/Manifest
+++ b/media-sound/bluez-alsa/Manifest
@@ -1,3 +1,4 @@
DIST bluez-alsa-3.1.0.tar.gz 179984 BLAKE2B b0bd5008d1bcc972577d8626970834934cc9424b4dff5c9ede1b1bfb0ac6c62c50dd8a7b94bdaa8884354379fb4fe06d758f620b2f42207d85f68da5064b3499 SHA512 8b2644cb2114569cc896869f22352386a9362eeacae823423a63d9b21198f561d4af796700fcd3267556bb69ff2575569474a1da8e3a645b5a2e779882c27cbf
DIST bluez-alsa-4.0.0.tar.gz 230879 BLAKE2B 998127cb4e03afc019679b80fc1ac7d56351aeb8274efe76a74d6c5600c4b8527d5463e864cc8f68c1fa82c1729ef38d8168e90e7092dfe5eaf5a7cf25ba4bfa SHA512 8a79e5a1189db2d39b2d772cb8f8cd51ebb96b9bd91489556195e83dfd16f40a581dce68c5ad9e886b66cec8a03ae7f959e8288bb4c5c87ea5a2bbd6aee9c5f0
DIST bluez-alsa-4.1.1.tar.gz 284244 BLAKE2B a46d22cd86e6b7483f95e0f60c9f23421d2c48e0c4741e3107da3800180b16a47dcf897bfa579796cfb84ecc16812f545844dbb77c768f094c5cfd46e1101835 SHA512 5e43846af5c7c30a3d81a704514076a73b1d8994db5ee8925a59b1b328f684c15188d45caf9358f59e57a0c200d644dc673bd1c44f7d48a51452776e01f022f8
+DIST bluez-alsa-4.2.0.tar.gz 326233 BLAKE2B 7bea22d45e9897dd8dc62ee31bba381fb2e2dc616673d711ffb2144f9d03ff8312342f175256946cac828cc1ad04fc263ea11e0c0685e3e28e72c80357914f33 SHA512 1c8816d0baf031c5823fb49fac1409f4034f2f5cc8506ba1f377260cfc6437baa3f6ff1611eac72751f9d56c08f525dc43db05d30820baf394c75f3537d65162
diff --git a/media-sound/bluez-alsa/bluez-alsa-4.2.0.ebuild b/media-sound/bluez-alsa/bluez-alsa-4.2.0.ebuild
new file mode 100644
index 000000000000..03b8563b31e2
--- /dev/null
+++ b/media-sound/bluez-alsa/bluez-alsa-4.2.0.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit autotools bash-completion-r1 multilib-minimal readme.gentoo-r1 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 ~arm64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="aac aptx debug hcitop lame ldac liblc3 man mpg123 ofono static-libs systemd test unwind upower"
+
+RESTRICT="!test? ( test )"
+
+# bluez-alsa does not directly link to upower but
+# is using the upower interface via dbus calls.
+RDEPEND="
+ >=dev-libs/glib-2.58.2[${MULTILIB_USEDEP}]
+ >=media-libs/alsa-lib-1.1.2[${MULTILIB_USEDEP}]
+ >=media-libs/sbc-1.5[${MULTILIB_USEDEP}]
+ >=net-wireless/bluez-5.51[${MULTILIB_USEDEP}]
+ sys-apps/dbus[${MULTILIB_USEDEP}]
+ sys-libs/readline:0=
+ aac? ( >=media-libs/fdk-aac-0.1.1:=[${MULTILIB_USEDEP}] )
+ aptx? ( >=media-libs/libfreeaptx-0.1.1 )
+ hcitop? (
+ dev-libs/libbsd
+ sys-libs/ncurses:0=
+ )
+ lame? ( media-sound/lame[${MULTILIB_USEDEP}] )
+ ldac? ( >=media-libs/libldac-2.0.0 )
+ liblc3? ( >=media-sound/liblc3-1.0.0 )
+ mpg123? ( media-sound/mpg123[${MULTILIB_USEDEP}] )
+ ofono? ( net-misc/ofono )
+ systemd? ( sys-apps/systemd )
+ unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
+ upower? ( sys-power/upower )
+"
+DEPEND="${RDEPEND}
+ test? (
+ >=dev-libs/check-0.11.0
+ media-libs/libsndfile
+ )
+"
+BDEPEND="
+ dev-util/gdbus-codegen
+ virtual/pkgconfig
+ man? ( virtual/pandoc )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-include-freeaptx.patch"
+ # https://github.com/arkq/bluez-alsa/issues/718
+ "${FILESDIR}/${P}-test-alsa-midi-checkdev.patch"
+ # https://github.com/arkq/bluez-alsa/issues/717
+ "${FILESDIR}/${P}-ldpreload.patch"
+)
+
+DOC_CONTENTS="Users can use this service when they are members of the \"audio\" group."
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --enable-cli
+ --enable-faststream
+ --enable-midi
+ --enable-rfcomm
+ --with-bash-completion="$(get_bashcompdir)"
+ $(use_enable aac)
+ $(use_enable debug)
+ $(use_enable lame mp3lame)
+ $(use_enable man manpages)
+ $(use_enable mpg123)
+ $(use_enable static-libs static)
+ $(use_enable systemd)
+ $(use_enable test)
+ $(use_with systemd systemdsystemunitdir $(systemd_get_systemunitdir))
+ $(multilib_native_use_enable aptx)
+ $(multilib_native_use_enable aptx aptx-hd)
+ $(multilib_native_use_with aptx libfreeaptx)
+ $(multilib_native_use_enable hcitop)
+ $(multilib_native_use_enable ldac)
+ $(multilib_native_use_enable liblc3 lc3-swb)
+ $(multilib_native_use_enable ofono)
+ $(multilib_native_use_enable upower)
+ $(use_with unwind libunwind)
+ )
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+ default
+ find "${ED}" -type f -name "*.la" -delete || die
+
+ newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
+ newconfd "${FILESDIR}"/bluealsa-conf.d-2-r1 bluealsa
+
+ # Add config file to alsa datadir as well to preserve changes in /etc
+ insinto "/usr/share/alsa/alsa.conf.d/"
+ doins "src/asound/20-bluealsa.conf.in"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-fix-include-freeaptx.patch b/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-fix-include-freeaptx.patch
new file mode 100644
index 000000000000..5930b2b838ab
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-fix-include-freeaptx.patch
@@ -0,0 +1,31 @@
+https://github.com/arkq/bluez-alsa/commit/14a02d1b06d0ba34c5b61516d7a3c1d6fc467567
+
+From 14a02d1b06d0ba34c5b61516d7a3c1d6fc467567 Mon Sep 17 00:00:00 2001
+From: Jochen Sprickerhof <jspricke@debian.org>
+Date: Wed, 15 May 2024 08:37:53 +0200
+Subject: [PATCH] Fix include for freeaptx library
+
+---
+ src/codec-aptx.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/codec-aptx.c b/src/codec-aptx.c
+index a3f056f..e69858d 100644
+--- a/src/codec-aptx.c
++++ b/src/codec-aptx.c
+@@ -21,7 +21,11 @@
+ # include <stdlib.h>
+ #endif
+
+-#include <openaptx.h>
++#if WITH_LIBFREEAPTX
++# include <freeaptx.h>
++#else
++# include <openaptx.h>
++#endif
+
+ #include "shared/log.h"
+
+--
+2.42.2
+
diff --git a/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-ldpreload.patch b/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-ldpreload.patch
new file mode 100644
index 000000000000..addb8cf614b3
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-ldpreload.patch
@@ -0,0 +1,164 @@
+From a51e0603c3c9657dbddc6f2d5e92b51209ed2d13 Mon Sep 17 00:00:00 2001
+From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
+Date: Mon, 10 Jun 2024 17:36:32 +0200
+Subject: [PATCH] Fix LD_PRELOAD environment variable overwrite
+
+Fixes #717
+---
+ test/Makefile.am | 8 ++++----
+ test/inc/preload.inc | 17 ++++-------------
+ test/inc/spawn.inc | 3 +--
+ test/{aloader.c => libaloader.c} | 0
+ test/test-alsa-ctl.c | 4 ++--
+ test/test-alsa-pcm.c | 4 ++--
+ test/test-utils-aplay.c | 4 ++--
+ test/test-utils-cli.c | 4 ++--
+ 8 files changed, 17 insertions(+), 27 deletions(-)
+ rename test/{aloader.c => libaloader.c} (100%)
+
+diff --git a/test/Makefile.am b/test/Makefile.am
+index c120c29a6..cf844472c 100644
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -57,12 +57,12 @@ check_PROGRAMS += test-msbc
+ endif
+
+ check_LTLIBRARIES = \
+- aloader.la
+-aloader_la_LDFLAGS = \
++ libaloader.la
++libaloader_la_LDFLAGS = \
+ -rpath /nowhere \
+ -avoid-version \
+- -shared -module
+-aloader_la_LIBADD = \
++ -shared
++libaloader_la_LIBADD = \
+ @ALSA_LIBS@
+
+ test_a2dp_SOURCES = \
+diff --git a/test/inc/preload.inc b/test/inc/preload.inc
+index 3dbb1522d..a6d0b9f09 100644
+--- a/test/inc/preload.inc
++++ b/test/inc/preload.inc
+@@ -2,7 +2,7 @@
+ * preload.inc
+ * vim: ft=c
+ *
+- * Copyright (c) 2016-2022 Arkadiusz Bokowy
++ * Copyright (c) 2016-2024 Arkadiusz Bokowy
+ *
+ * This file is a part of bluez-alsa.
+ *
+@@ -16,12 +16,10 @@
+ #include <string.h>
+ #include <unistd.h>
+
+-#include "shared/defs.h"
+-
+ #define LD_PRELOAD "LD_PRELOAD"
+ #define LD_PRELOAD_SANITIZER "LD_PRELOAD_SANITIZER"
+
+-int preload(int argc, char * const argv[], char * const envp[], const char *filename) {
++int preload(int argc, char * const argv[], const char *filename) {
+ (void)argc;
+
+ const char *env_preload;
+@@ -40,17 +38,10 @@ int preload(int argc, char * const argv[], char * const envp[], const char *file
+
+ char app[1024];
+ char preload[1024];
+- char *envp2[256] = { preload, NULL };
+-
+ char *dir = dirname(strncpy(app, argv[0], sizeof(app) - 1));
+ snprintf(preload, sizeof(preload), "%s=%s:%s/%s:%s",
+ LD_PRELOAD, env_preload_sanitizer, dir, filename, env_preload);
+
+- size_t i = 1, j = 0;
+- while (i < ARRAYSIZE(envp2) - 1 && envp[j] != NULL)
+- envp2[i++] = envp[j++];
+- if (i == ARRAYSIZE(envp2) - 1 && envp[j] != NULL)
+- fprintf(stderr, "WARNING: Couldn't forward ENV variables\n");
+-
+- return execve(argv[0], argv, envp2);
++ putenv(preload);
++ return execv(argv[0], argv);
+ }
+diff --git a/test/inc/spawn.inc b/test/inc/spawn.inc
+index 4ac1b531d..14eac6a19 100644
+--- a/test/inc/spawn.inc
++++ b/test/inc/spawn.inc
+@@ -97,8 +97,7 @@ int spawn(struct spawn_process *sp, char *argv[], FILE *f_stdin, int flags) {
+ close(pipe_stderr[1]);
+ }
+
+- execv(argv[0], argv);
+- return -1;
++ return execv(argv[0], argv);
+ }
+
+ close(pipe_stdout[1]);
+diff --git a/test/aloader.c b/test/libaloader.c
+similarity index 100%
+rename from test/aloader.c
+rename to test/libaloader.c
+diff --git a/test/test-alsa-ctl.c b/test/test-alsa-ctl.c
+index 2d3d03453..b0c0f3350 100644
+--- a/test/test-alsa-ctl.c
++++ b/test/test-alsa-ctl.c
+@@ -576,8 +576,8 @@ CK_START_TEST(test_alsa_high_level_control_interface) {
+
+ } CK_END_TEST
+
+-int main(int argc, char *argv[], char *envp[]) {
+- preload(argc, argv, envp, ".libs/aloader.so");
++int main(int argc, char *argv[]) {
++ preload(argc, argv, ".libs/libaloader.so");
+
+ char *argv_0 = strdup(argv[0]);
+ snprintf(bluealsa_mock_path, sizeof(bluealsa_mock_path),
+diff --git a/test/test-alsa-pcm.c b/test/test-alsa-pcm.c
+index aaff9d1bf..724316869 100644
+--- a/test/test-alsa-pcm.c
++++ b/test/test-alsa-pcm.c
+@@ -1100,8 +1100,8 @@ CK_START_TEST(ba_test_playback_device_unplug) {
+
+ } CK_END_TEST
+
+-int main(int argc, char *argv[], char *envp[]) {
+- preload(argc, argv, envp, ".libs/aloader.so");
++int main(int argc, char *argv[]) {
++ preload(argc, argv, ".libs/libaloader.so");
+
+ int opt;
+ const char *opts = "hD:c:f:r:";
+diff --git a/test/test-utils-aplay.c b/test/test-utils-aplay.c
+index e3a492851..7925a2710 100644
+--- a/test/test-utils-aplay.c
++++ b/test/test-utils-aplay.c
+@@ -307,8 +307,8 @@ CK_START_TEST(test_play_dbus_signals) {
+
+ } CK_END_TEST
+
+-int main(int argc, char *argv[], char *envp[]) {
+- preload(argc, argv, envp, ".libs/aloader.so");
++int main(int argc, char *argv[]) {
++ preload(argc, argv, ".libs/libaloader.so");
+
+ char *argv_0 = strdup(argv[0]);
+ char *argv_0_dir = dirname(argv_0);
+diff --git a/test/test-utils-cli.c b/test/test-utils-cli.c
+index 53510e02e..378c6f2f3 100644
+--- a/test/test-utils-cli.c
++++ b/test/test-utils-cli.c
+@@ -461,8 +461,8 @@ CK_START_TEST(test_open) {
+
+ } CK_END_TEST
+
+-int main(int argc, char *argv[], char *envp[]) {
+- preload(argc, argv, envp, ".libs/aloader.so");
++int main(int argc, char *argv[]) {
++ preload(argc, argv, ".libs/libaloader.so");
+
+ char *argv_0 = strdup(argv[0]);
+ char *argv_0_dir = dirname(argv_0);
diff --git a/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-test-alsa-midi-checkdev.patch b/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-test-alsa-midi-checkdev.patch
new file mode 100644
index 000000000000..ffb3dc6d09d8
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluez-alsa-4.2.0-test-alsa-midi-checkdev.patch
@@ -0,0 +1,23 @@
+From 4b0ec2e0e36b839161a4ef15da1c2a39ee325af4 Mon Sep 17 00:00:00 2001
+From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
+Date: Wed, 5 Jun 2024 22:30:17 +0200
+Subject: [PATCH] Check for sequencer read/write access before test
+
+Fixes #718
+---
+ test/test-alsa-midi.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test-alsa-midi.c b/test/test-alsa-midi.c
+index 45e09d73..7ee80f96 100644
+--- a/test/test-alsa-midi.c
++++ b/test/test-alsa-midi.c
+@@ -161,7 +161,7 @@ int main(int argc, char *argv[]) {
+
+ /* Check whether current host supports ALSA sequencer. If not, then
+ * there is no point in running this test, because it will fail. */
+- if (access("/dev/snd/seq", F_OK) != 0) {
++ if (access("/dev/snd/seq", F_OK | R_OK | W_OK) != 0) {
+ warn("ALSA sequencer not available, skipping test!");
+ return 77 /* magic number for skipping tests */;
+ }
diff --git a/media-sound/bluez-alsa/metadata.xml b/media-sound/bluez-alsa/metadata.xml
index 5533720929d0..9159f5db1c7a 100644
--- a/media-sound/bluez-alsa/metadata.xml
+++ b/media-sound/bluez-alsa/metadata.xml
@@ -9,6 +9,7 @@
<flag name="aptx">aptX (HD) over Bluetooth (many Android compatible headphones)</flag>
<flag name="hcitop">Enable top-like monitoring tool for HCI</flag>
<flag name="ldac">Enable support for AOSP <pkg>media-libs/libldac</pkg> dispatcher</flag>
+ <flag name="liblc3">Enable LC3 support</flag>
<flag name="mpg123">Enable support for MPEG audio playback via <pkg>media-sound/mpg123</pkg></flag>
<flag name="ofono">Enable ofono elephony support</flag>
</use>
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-06-16 7:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 8:09 [gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/files/, media-sound/bluez-alsa/ Lars Wendler
-- strict thread matches above, loose matches on Subject: below --
2017-02-06 0:01 Lars Wendler
2018-07-02 11:28 Lars Wendler
2019-04-29 0:36 Lars Wendler
2020-01-26 16:54 Lars Wendler
2020-05-20 11:41 Lars Wendler
2020-11-10 7:54 Lars Wendler
2024-06-16 7:53 Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox