Github messages for voidlinux
 help / color / mirror / Atom feed
From: emilio1625 <emilio1625@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Gstreamer codecs support for pulse audio
Date: Thu, 08 Sep 2022 00:47:29 +0200	[thread overview]
Message-ID: <20220907224729.363MpnklcO0e-m-5Aziqci96rV8lFU5f7hHX4KoVPPE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39158@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

There is an updated pull request by emilio1625 against master on the void-packages repository

https://github.com/emilio1625/void-packages pulseaudio-gstreamer-support
https://github.com/void-linux/void-packages/pull/39158

Gstreamer codecs support for pulse audio
Along with #39157 allows the use of aptx or ldac codec for Bluetooth headsets

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/39158.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pulseaudio-gstreamer-support-39158.patch --]
[-- Type: text/x-diff, Size: 5479 bytes --]

From c63fca06f7ba5c37ee9347147a026c3891348b92 Mon Sep 17 00:00:00 2001
From: Emilio Cabrera <emilio1625@gmail.com>
Date: Wed, 7 Sep 2022 16:14:08 -0500
Subject: [PATCH 1/3] gst-plugins-bad1: add aptX support

---
 srcpkgs/gst-plugins-bad1/template | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gst-plugins-bad1/template b/srcpkgs/gst-plugins-bad1/template
index 9b44958ec1ea..f3f9e77b98e3 100644
--- a/srcpkgs/gst-plugins-bad1/template
+++ b/srcpkgs/gst-plugins-bad1/template
@@ -1,7 +1,7 @@
 # Template file for 'gst-plugins-bad1'
 pkgname=gst-plugins-bad1
 version=1.20.3
-revision=2
+revision=3
 wrksrc="${pkgname/1/}-${version}"
 build_helper="gir"
 build_style=meson
@@ -13,6 +13,7 @@ configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
  -Dopenh264=disabled -Dopenmpt=disabled -Dopenni2=disabled -Dsctp=disabled
  -Dsrt=disabled -Dteletext=disabled -Dvoaacenc=disabled -Dvoamrwbenc=disabled
  -Dwildmidi=disabled -Dwpe=disabled -Ddirectfb=disabled
+ -Dldac=$(vopt_if ldac enabled disabled) -Dopenaptx=$(vopt_if aptx enabled disabled)
  -Dgme=$(vopt_if gme enabled disabled)
  -Dintrospection=$(vopt_if gir enabled disabled) -Dneon=disabled"
 hostmakedepends="automake gettext libtool pkg-config python3 glib-devel
@@ -29,7 +30,7 @@ makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
  fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader
  Vulkan-Headers webrtc-audio-processing-devel libzbar-devel ffmpeg-devel
- srt-devel
+ $(vopt_if ldac ldacBT-devel) $(vopt_if aptx libopenaptx-devel) srt-devel
  $(vopt_if gme libgme-devel)"
 depends="gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the bad set (v1.x)"
@@ -39,9 +40,11 @@ homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=7a11c13b55dd1d2386dd902219e41cbfcdda8e1e0aa3e738186c95074b35da4f
 
-build_options="gir gme wayland"
-build_options_default="gir wayland"
+build_options="gir gme wayland aptx ldac"
+build_options_default="gir wayland aptx ldac"
 desc_option_gme="Build with Game Music Emulator support"
+desc_option_apx="Build with AptX codec support"
+desc_option_ldac="Build with ldac codec support"
 
 CFLAGS="-fcommon"
 

From 2896c8825893e6a7509ff6b27d13e959216bb451 Mon Sep 17 00:00:00 2001
From: Emilio Cabrera <emilio1625@gmail.com>
Date: Wed, 7 Sep 2022 16:51:45 -0500
Subject: [PATCH 2/3] pulseaudio: add gstreamer codec support

---
 srcpkgs/pulseaudio/files/README.voidlinux | 1 +
 srcpkgs/pulseaudio/template               | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/pulseaudio/files/README.voidlinux b/srcpkgs/pulseaudio/files/README.voidlinux
index 68bcd10179c3..1a4374ffee23 100644
--- a/srcpkgs/pulseaudio/files/README.voidlinux
+++ b/srcpkgs/pulseaudio/files/README.voidlinux
@@ -5,3 +5,4 @@ and security reasons.
 Optional dependencies:
 
 * `python3-PyQt5-dbus` for running `qpaeq`
+* `gst-plugins-bad1` and `libopenaptx` for aptX support
diff --git a/srcpkgs/pulseaudio/template b/srcpkgs/pulseaudio/template
index 685154e8c0e1..3750dde96c4f 100644
--- a/srcpkgs/pulseaudio/template
+++ b/srcpkgs/pulseaudio/template
@@ -1,22 +1,25 @@
 # Template file for 'pulseaudio'
 pkgname=pulseaudio
 version=15.0
-revision=3
+revision=4
 build_style=meson
 configure_args="-Djack=enabled -Dlirc=disabled -Dhal-compat=false -Dorc=enabled
  -Dgtk=disabled -Dsystemd=disabled -Dwebrtc-aec=enabled
  -Dgsettings=enabled -Dbluez5=enabled
  -Dbluez5-ofono-headset=false -Dbluez5-native-headset=true
+ -Dgstreamer=$(vopt_if gstreamer enabled disabled)
+ -Dbluez5-gstreamer=$(vopt_if gstreamer enabled disabled)
  -Delogind=enabled -Dudevrulesdir=/usr/lib/udev/rules.d
  -Dbashcompletiondir=/usr/share/bash-completion/completions"
 hostmakedepends="cmake m4 gettext libtool orc-devel perl-XML-Parser pkg-config
  doxygen"
 makedepends="$(vopt_if avahi avahi-libs-devel) eudev-libudev-devel fftw-devel jack-devel
  libSM-devel libXtst-devel libasyncns-devel libbluetooth-devel
+ $(vopt_if gstreamer gstreamer1-devel) $(vopt_if gstreamer gst-plugins-base1-devel)
  libcap-devel libcap-progs libglib-devel libltdl-devel openssl-devel
  libsndfile-devel libsoxr-devel orc-devel sbc-devel speex-devel tdb-devel
  webrtc-audio-processing-devel xcb-util-devel check-devel elogind-devel"
-depends="pulseaudio-utils>=${version}_${revision} rtkit"
+depends="pulseaudio-utils>=${version}_${revision} rtkit $(vopt_if gstreamer gstreamer1)"
 conf_files="/etc/pulse/*"
 short_desc="Featureful, general-purpose sound server"
 maintainer="Orphaned <orphan@voidlinux.org>"

From 8e6746b00d00b0412c8ec3e3ceaf45d4c07c78d4 Mon Sep 17 00:00:00 2001
From: Emilio Cabrera <emilio1625@gmail.com>
Date: Wed, 7 Sep 2022 16:58:47 -0500
Subject: [PATCH 3/3] pulseaudio: workaround for failing test

---
 srcpkgs/pulseaudio/template | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/srcpkgs/pulseaudio/template b/srcpkgs/pulseaudio/template
index 3750dde96c4f..7b164d4289ee 100644
--- a/srcpkgs/pulseaudio/template
+++ b/srcpkgs/pulseaudio/template
@@ -52,6 +52,8 @@ pre_configure() {
 		# Disable neon optimizations for the arm* architectures
 		arm*) vsed -e '/  neon/d' -i src/pulsecore/meson.build ;;
 	esac
+	# workaround remove test that fails
+	vsed -e '/core-util-test/{N;d;}' -i src/tests/meson.build
 }
 
 post_install() {

  parent reply	other threads:[~2022-09-07 22:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07 22:30 [PR PATCH] " emilio1625
2022-09-07 22:32 ` classabbyamp
2022-09-07 22:33 ` [PR PATCH] [Updated] " emilio1625
2022-09-07 22:39 ` emilio1625
2022-09-07 22:43 ` classabbyamp
2022-09-07 22:47 ` emilio1625 [this message]
2022-09-07 23:00 ` emilio1625
2022-09-08  9:53 ` [PR REVIEW] " Duncaen
2022-12-08  2:32 ` github-actions
2022-12-23  1:57 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220907224729.363MpnklcO0e-m-5Aziqci96rV8lFU5f7hHX4KoVPPE@z \
    --to=emilio1625@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).