pulseaudio: 9.0 -> 10.0
PATCH 1/1 pulseaudio: 9.0 -> 10.0
Relase notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/
The checksum of the LICENSE file changed due to some clarifications. There were no changes to the actual licensing terms.
The LICENSE variable was not accurate, so I made changes to it. Specifically:
* there's no GPL code in PulseAudio so I dropped GPL from the list
* the LGPL code allows using later versions of the license rather than limiting to just 2.1
* there are some MIT and BSD licensed bits
I added more files to LIC_FILES_CHKSUM to have better coverage of all the differently licensed code.
Dropped json-c and gdbm from DEPENDS. The new release doesn't use json-c any more. gdbm isn't used when --with-database=simple is passed to configure, so it should have been removed from DEPENDS a long time ago.
The new release dropped the Xen module, so the --without-xen configure option isn't needed any more.
Added a comment for why --without-fftw is used.
Disabled the adrian echo canceller, because it has an unusual license, and disabling the code was simpler than adding a new license to OE-Core.
Dropped upstreamed patches.
--- meta/recipes-multimedia/pulseaudio/pulseaudio.inc | 80 +++- ...oth-fail-if-user-requested-profile-doesn-.patch | 61 --- ...ard-don-t-allow-the-CARD_NEW-hook-to-fail.patch | 37 -- ...-move-profile-selection-after-pa_card_new.patch | 429 --------------------- ...rd-remove-pa_card_new_data.active_profile.patch | 72 ---- ...vailability-for-some-unavailable-profiles.patch | 79 ---- .../pulseaudio/pulseaudio_10.0.bb | 14 + .../pulseaudio/pulseaudio_9.0.bb | 19 - 8 files changed, 88 insertions(+), 703 deletions(-) delete mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/0001-alsa-bluetooth-fail-if-user-requested-profile-doesn-.patch delete mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/0002-card-don-t-allow-the-CARD_NEW-hook-to-fail.patch delete mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/0003-card-move-profile-selection-after-pa_card_new.patch delete mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/0004-card-remove-pa_card_new_data.active_profile.patch delete mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/0005-alsa-set-availability-for-some-unavailable-profiles.patch create mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb delete mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio_9.0.bb
meta/recipes-multimedia/pulseaudio/pulseaudio.inc +74 -6
@@ -2,16 +2,69 @@ SUMMARY = "Sound server for Linux and Unix-like operating systems" HOMEPAGE = "http://www.pulseaudio.org" AUTHOR = "Lennart Poettering" SECTION = "libs/multimedia" -LICENSE = "GPLv2+ & LGPLv2.1" -LIC_FILES_CHKSUM = "file://LICENSE;md5=d9ae089c8dc5339f8ac9d8563038a29f \ + +# Most of PulseAudio code is under LGPLv2.1+. There are a few exceptions: +# +# The "adrian" echo canceller variant has code under a non-standard permissive +# license. See src/modules/echo-cancel/adrian-license.txt for details. This +# recipe disables the adrian echo canceller to avoid hassle with the unusual +# license. +# +# The src/modules/reserve* and src/pulsecore/rtkit* files are under the MIT +# license. +# +# The src/pulsecore/filter/ directory contains code under the 3-clause BSD +# license. +# +# src/utils/qpaeq is licensed under AGPL. qpaeq is not installed by this +# recipe, however, which is why AGPL is not mentioned in LICENSE. +# +# People who distribute PulseAudio binaries need to also consider that there +# are some dependencies to GPL libraries. LGPL code that depends on GPL +# libraries probably becomes effectively GPL-licensed (at compile-time? or at +# at link-time?). I'm not a lawyer, though, so I'm not sure of the exact +# implications. The GPL dependencies only affect the server, not the client +# library, with the exception of libdbus that affects both. These are the GPL +# library dependencies: +# +# One of the resampler implementations uses libsamplerate. This recipe doesn't +# enable that resampler, however. +# +# One of the database implementations uses gdbm. This recipe doesn't enable +# that database implementation, however. +# +# module-lirc (enabled by PACKAGECONFIG[lirc]) uses LIRC. +# +# module-equalizer-sink uses FFTW. This recipe disables that, however. +# +# The dependency with the most complicated licensing considerations is libdbus. +# When PACKAGECONFIG[dbus] is enabled (like it is by default), libdbus will be +# used by both the server and the client library (libpulse). Does this affect +# applications that use libpulse? It should be also noted that libdbus is +# dual-licensed: either GPLv2+ or AFL-2 terms apply. Whose decision is it which +# of the licenses apply? What a mess. Some people hold the view that libdbus is +# a system library that is covered by the "special exception" in GPLv2's +# section 3, and therefore libdbus's GPL license doesn't affect PulseAudio. +LICENSE = "LGPLv2.1+ & MIT & BSD-3-Clause" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=a848e8d03f04976778eab2348b59ed2b \ file://GPL;md5=4325afd396febcb659c36b49533135d4 \ file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \ - file://src/pulsecore/resampler.h;beginline=4;endline=21;md5=09794012ae16912c0270f3280cc8ff84" + file://AGPL;md5=73f1eb20517c55bf9493b7dd6e480788 \ + file://src/modules/echo-cancel/adrian-license.txt;md5=abbab006a561fbffccedf1c3531f34ab \ + file://src/pulsecore/filter/LICENSE.WEBKIT;md5=49defbaffddf8c51faf606ff7fc3b1f7 \ + file://src/pulsecore/resampler.h;beginline=4;endline=21;md5=09794012ae16912c0270f3280cc8ff84 \ + file://src/modules/reserve.h;beginline=6;endline=28;md5=0e23094760367d51b6609750e9b31fbb \ + file://src/pulsecore/rtkit.h;beginline=6;endline=29;md5=3f00ff966716ae0817c31576d1473528 \ + file://src/utils/qpaeq;beginline=2;endline=16;md5=7f62515a4762f0c3fc3d4201858bb964 \ + file://src/modules/echo-cancel/adrian-aec.h;beginline=3;endline=12;md5=d3ed4fad1c073f8b06f37495dc5d1026 \ + file://src/pulsecore/filter/biquad.h;beginline=1;endline=4;md5=6d46d1365206528a20137355924233c1 \ +" DEPENDS = "libatomic-ops libsndfile1 libtool intltool-native" # optional DEPENDS += "udev alsa-lib glib-2.0 gconf" -DEPENDS += "json-c gdbm speexdsp libxml-parser-perl-native libcap" +DEPENDS += "speexdsp libxml-parser-perl-native libcap" inherit autotools bash-completion pkgconfig useradd gettext perlnative bluetooth systemd manpages
@@ -25,9 +78,7 @@ EXTRA_OECONF = "\ --enable-tcpwrap=no \ --with-access-group=audio \ --disable-openssl \ - --disable-xen \ --with-database=simple \ - --without-fftw \ --without-zsh-completion-dir \ --with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d \ ac_cv_header_valgrind_memcheck_h=no \
@@ -38,6 +89,23 @@ EXTRA_OECONF = "\ # oe-core nor meta-oe, so let's not add a PACKAGECONFIG entry for it for now. EXTRA_OECONF += "--without-soxr" +# The FFTW dependency (for module-equalizer-sink) was removed in commit +# ddbd713293 without explaining why it was not made a PACKAGECONFIG item +# instead. Oh well, let's keep it disabled until someone expresses some +# interest in having it enabled. +# +# One nice thing about disabling this is that it also prevents qpaeq from +# being installed, so we avoid adding AGPL to the list of licenses (nothing +# else in PulseAudio is licensed under AGPL). +EXTRA_OECONF += "--without-fftw" + +# The "adrian" echo canceller implementation has a non-standard license +# (src/modules/echo-cancel/adrian-license.txt). It's a permissive license, so +# the licensing terms are probably not problematic, but it would be an extra +# hassle to add the license to OE-Core's set of licenses. The canceller isn't +# very good anyway, better alternatives exist (such as the webrtc canceller). +EXTRA_OECONF += "--disable-adrian-aec" + PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
meta/recipes-multimedia/pulseaudio/pulseaudio/0001-alsa-bluetooth-fail-if-user-requested-profile-doesn-.patch deleted +0 -61
61 lines not on this page · raw message
meta/recipes-multimedia/pulseaudio/pulseaudio/0002-card-don-t-allow-the-CARD_NEW-hook-to-fail.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From d4e6d07fef28d1bd8bfbceab4cc196ef54c23dd8 Mon Sep 17 00:00:00 2001 -From: Tanu Kaskinen <[email protected]> -Date: Tue, 7 Jun 2016 16:51:00 +0300 -Subject: [PATCH 2/5] card: don't allow the CARD_NEW hook to fail - -There is currently no use for allowing modules to cancel card creation, -and I don't see need for that in the future either. Let's simplify -things by removing the failure handling code. - -Upstream-Status: Accepted [expected in 10.0] - -Signed-off-by: Tanu Kaskinen <[email protected]> ---- - src/pulsecore/card.c | 7 +------ - 1 file changed, 1 insertion(+), 6 deletions(-) - -diff --git a/src/pulsecore/card.c b/src/pulsecore/card.c -index 410746b..0ac70b9 100644 ---- a/src/pulsecore/card.c -+++ b/src/pulsecore/card.c -@@ -149,12 +149,7 @@ pa_card *pa_card_new(pa_core *core, pa_card_new_data *data) { - } - - pa_card_new_data_set_name(data, name); -- -- if (pa_hook_fire(&core->hooks[PA_CORE_HOOK_CARD_NEW], data) < 0) { -- pa_xfree(c); -- pa_namereg_unregister(core, name); -- return NULL; -- } -+ pa_hook_fire(&core->hooks[PA_CORE_HOOK_CARD_NEW], data); - - c->core = core; - c->name = pa_xstrdup(data->name); --- -2.8.1 -
meta/recipes-multimedia/pulseaudio/pulseaudio/0003-card-move-profile-selection-after-pa_card_new.patch deleted +0 -429
429 lines not on this page · raw message
meta/recipes-multimedia/pulseaudio/pulseaudio/0004-card-remove-pa_card_new_data.active_profile.patch deleted +0 -72
72 lines not on this page · raw message
meta/recipes-multimedia/pulseaudio/pulseaudio/0005-alsa-set-availability-for-some-unavailable-profiles.patch deleted +0 -79
79 lines not on this page · raw message
meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb new file +14 -0
@@ -0,0 +1,14 @@ +require pulseaudio.inc + +SRC_URI = "http://freedesktop.org/software/pulseaudio/releases/${BP}.tar.xz \ + file://0001-padsp-Make-it-compile-on-musl.patch \ + file://0001-client-conf-Add-allow-autospawn-for-root.patch \ + file://volatiles.04_pulse \ +" +SRC_URI[md5sum] = "4950d2799bf55ab91f6b7f990b7f0971" +SRC_URI[sha256sum] = "a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57" + +do_compile_prepend() { + mkdir -p ${S}/libltdl + cp ${STAGING_LIBDIR}/libltdl* ${S}/libltdl +}
meta/recipes-multimedia/pulseaudio/pulseaudio_9.0.bb deleted +0 -19
@@ -1,19 +0,0 @@ -require pulseaudio.inc - -SRC_URI = "http://freedesktop.org/software/pulseaudio/releases/${BP}.tar.xz \ - file://0001-padsp-Make-it-compile-on-musl.patch \ - file://0001-client-conf-Add-allow-autospawn-for-root.patch \ - file://0001-alsa-bluetooth-fail-if-user-requested-profile-doesn-.patch \ - file://0002-card-don-t-allow-the-CARD_NEW-hook-to-fail.patch \ - file://0003-card-move-profile-selection-after-pa_card_new.patch \ - file://0004-card-remove-pa_card_new_data.active_profile.patch \ - file://0005-alsa-set-availability-for-some-unavailable-profiles.patch \ - file://volatiles.04_pulse \ -" -SRC_URI[md5sum] = "da7162541b3a9bc20576dbd0d7d1489a" -SRC_URI[sha256sum] = "c3d3d66b827f18fbe903fe3df647013f09fc1e2191c035be1ee2d82a9e404686" - -do_compile_prepend() { - mkdir -p ${S}/libltdl - cp ${STAGING_LIBDIR}/libltdl* ${S}/libltdl -}
Signature · 1 line
2.11.0
Quoted 4 lines · Tanu Kaskinen
Dropped json-c and gdbm from DEPENDS. The new release doesn't use json-c any more. gdbm isn't used when --with-database=simple is passed to configure, so it should have been removed from DEPENDS a long time ago.
Does anything else in oe-core still use json-c? We're generally trying to trim such dangling recipes.
Alex
Quoted 8 lines · Alexander Kanavin
Quoted 4 lines · Tanu Kaskinen
Dropped json-c and gdbm from DEPENDS. The new release doesn't use json-c any more. gdbm isn't used when --with-database=simple is passed to configure, so it should have been removed from DEPENDS a long time ago.
Does anything else in oe-core still use json-c? We're generally trying to trim such dangling recipes.
According to "git grep json-c", the only thing still using it is systemtap.
Signature · 3 lines
Tanu https://www.patreon.com/tanuk
Quoted 3 lines · Tanu Kaskinen
Relase notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/
I'm seeing a new warning now:
WARNING: pulseaudio-10.0-r0 do_package_qa: QA Issue: ELF binary '/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages-split/pulseaudio-server/usr/bin/pulseaudio' has relocations in .text [textrel]
Would you be able to identify where this comes from?
Ross
Quoted 6 lines · Ross
Quoted 3 lines · Tanu Kaskinen
Relase notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/
Quoted 7 lines
I'm seeing a new warning now:
WARNING: pulseaudio-10.0-r0
do_package_qa: QA Issue: ELF binary '/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages-split/pulseaudio-server/usr/bin/pulseaudio' has relocations in .text [textrel]Would you be able to identify where this comes from?
I'll investigate it. I'm not familiar with the topic, though, so I'll first have to figure out some basic stuff: What does it mean to have "relocations in .text"? Why is it a bad thing to have those? How can I check if a binary has relocations in .text? If you have quick answers to any of the questions, that would be helpful.
Signature · 3 lines
Tanu https://www.patreon.com/tanuk
Quoted 6 lines · Tanu Kaskinen
I'll investigate it. I'm not familiar with the topic, though, so I'll first have to figure out some basic stuff: What does it mean to have "relocations in .text"? Why is it a bad thing to have those? How can I check if a binary has relocations in .text? If you have quick answers to any of the questions, that would be helpful.
https://wiki.gentoo.org/wiki/Hardened/Textrels_Guide is useful.
Ross
Quoted 6 lines · Ross
Quoted 3 lines · Tanu Kaskinen
Relase notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/
Quoted 7 lines
I'm seeing a new warning now:
WARNING: pulseaudio-10.0-r0
do_package_qa: QA Issue: ELF binary '/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages-split/pulseaudio-server/usr/bin/pulseaudio' has relocations in .text [textrel]Would you be able to identify where this comes from?
I couldn't reproduce the problem. I don't get the warning, and "readelf -d tmp/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages- split/pulseaudio-server/usr/bin/pulseaudio | grep TEXT" returns nothing.
My test was performed on a fresh poky clone with default configuration, using command "bitbake pulseaudio". In addition to the default qemux86, I tried with genericx86-64 and also intel-corei7-64 from meta-intel, since your error message seemed to be from a corei7 build.
Signature · 3 lines
Tanu https://www.patreon.com/tanuk
Quoted 10 lines · Tanu Kaskinen
I couldn't reproduce the problem. I don't get the warning, and "readelf -d tmp/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages- split/pulseaudio-server/usr/bin/pulseaudio | grep TEXT" returns nothing.
My test was performed on a fresh poky clone with default configuration, using command "bitbake pulseaudio". In addition to the default qemux86, I tried with genericx86-64 and also intel-corei7-64 from meta-intel, since your error message seemed to be from a corei7 build.
Typical. :/ Thanks for trying, I must have something locally that triggers it.
Ross
Quoted 3 lines · Ross
Typical. :/ Thanks for trying, I must have something locally that triggers it.
So I grabbed scanelf to look into this quickly:
scanelf: scanelf_file_textrels(): ELF pulseaudio has TEXTREL markings but doesnt appear to have any real TEXTREL's !?
Sigh. Tooling bug.
Ross