[pulseaudio] 03/06: Drop all patches, applied upstream

Felipe Sateler fsateler at moszumanska.debian.org
Thu Jan 5 12:35:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

fsateler pushed a commit to branch debian/experimental
in repository pulseaudio.

commit af7299d11a0a2508c0595b85c72ae7341b7f6f0f
Author: Felipe Sateler <fsateler at debian.org>
Date:   Tue Jan 3 21:11:27 2017 -0300

    Drop all patches, applied upstream
---
 .../Fix-detection-of-online-CPUs-in-pa_ncpus.patch | 38 --------------
 ...raop-add-compatibility-with-openssl-1.1.0.patch | 59 ----------------------
 debian/patches/series                              |  2 -
 3 files changed, 99 deletions(-)

diff --git a/debian/patches/Fix-detection-of-online-CPUs-in-pa_ncpus.patch b/debian/patches/Fix-detection-of-online-CPUs-in-pa_ncpus.patch
deleted file mode 100644
index fbf5b5b..0000000
--- a/debian/patches/Fix-detection-of-online-CPUs-in-pa_ncpus.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>
-Date: Mon, 4 Jul 2016 23:11:29 +0200
-Subject: Fix detection of online CPUs in pa_ncpus()
-
-PulseAudio uses sysconf(_NC_PROCESSORS_CONF) in pulsecore/
-core-util.c:pa_ncpus() to determine the number of available
-CPUs on the system.
-
-However, since the operating system may disable individual CPUs,
-the number of available CPUs may be smaller than _NC_PROCESSORS_CONF
-and pa_ncpus() will therefore report an incorrect number of CPUs.
-This makes the once-test fail on such systems like some of the
-sparc64 buildds.
-
-Patching pa_ncpus() to use _NC_PROCESSORS_CONF fixes this problem
-and also results in once-test passing on the sparc64 buildds.
-
-This has been reported upstream as:
-https://bugs.freedesktop.org/show_bug.cgi?id=96809
----
- src/pulsecore/core-util.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
-index b6eb85a..b0a0cc6 100644
---- a/src/pulsecore/core-util.c
-+++ b/src/pulsecore/core-util.c
-@@ -3179,8 +3179,8 @@ void pa_reduce(unsigned *num, unsigned *den) {
- unsigned pa_ncpus(void) {
-     long ncpus;
- 
--#ifdef _SC_NPROCESSORS_CONF
--    ncpus = sysconf(_SC_NPROCESSORS_CONF);
-+#ifdef _SC_NPROCESSORS_ONLN
-+    ncpus = sysconf(_SC_NPROCESSORS_ONLN);
- #else
-     ncpus = 1;
- #endif
diff --git a/debian/patches/raop-add-compatibility-with-openssl-1.1.0.patch b/debian/patches/raop-add-compatibility-with-openssl-1.1.0.patch
deleted file mode 100644
index 365ca03..0000000
--- a/debian/patches/raop-add-compatibility-with-openssl-1.1.0.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From: Tanu Kaskinen <tanuk at iki.fi>
-Date: Fri, 4 Nov 2016 14:43:57 +0200
-Subject: raop: add compatibility with openssl 1.1.0
-
-Openssl 1.1.0 made all structs opaque, which caused a build failure in
-raop_client.c. The struct member assignments are now replaced with a
-call to RSA_set0_key().
-
-BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=96726
-
-Reviewed-by: Felipe Sateler <fsateler at debian.org>
----
- src/modules/raop/raop_client.c | 22 ++++++++++++++++++++--
- 1 file changed, 20 insertions(+), 2 deletions(-)
-
-diff --git a/src/modules/raop/raop_client.c b/src/modules/raop/raop_client.c
-index 3b6c36e..864c558 100644
---- a/src/modules/raop/raop_client.c
-+++ b/src/modules/raop/raop_client.c
-@@ -68,6 +68,21 @@
- 
- #define RAOP_PORT 5000
- 
-+/* Openssl 1.1.0 broke compatibility. Before 1.1.0 we had to set RSA->n and
-+ * RSA->e manually, but after 1.1.0 the RSA struct is opaque and we have to use
-+ * RSA_set0_key(). RSA_set0_key() is a new function added in 1.1.0. We could
-+ * depend on openssl 1.1.0, but it may take some time before distributions will
-+ * be able to upgrade to the new openssl version. To insulate ourselves from
-+ * such transition problems, let's implement RSA_set0_key() ourselves if it's
-+ * not available. */
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+static int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) {
-+    r->n = n;
-+    r->e = e;
-+    return 1;
-+}
-+#endif
-+
- struct pa_raop_client {
-     pa_core *core;
-     char *host;
-@@ -161,12 +176,15 @@ static int rsa_encrypt(uint8_t *text, int len, uint8_t *res) {
-     uint8_t exponent[8];
-     int size;
-     RSA *rsa;
-+    BIGNUM *n_bn;
-+    BIGNUM *e_bn;
- 
-     rsa = RSA_new();
-     size = pa_base64_decode(n, modules);
--    rsa->n = BN_bin2bn(modules, size, NULL);
-+    n_bn = BN_bin2bn(modules, size, NULL);
-     size = pa_base64_decode(e, exponent);
--    rsa->e = BN_bin2bn(exponent, size, NULL);
-+    e_bn = BN_bin2bn(exponent, size, NULL);
-+    RSA_set0_key(rsa, n_bn, e_bn, NULL);
- 
-     size = RSA_public_encrypt(len, text, res, rsa, RSA_PKCS1_OAEP_PADDING);
-     RSA_free(rsa);
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 1fe9e5d..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1,2 +0,0 @@
-Fix-detection-of-online-CPUs-in-pa_ncpus.patch
-raop-add-compatibility-with-openssl-1.1.0.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git



More information about the pkg-pulseaudio-devel mailing list