[arch-commits] Commit in mediastreamer/trunk (PKGBUILD fix-build.patch)
Antonio Rojas
arojas at archlinux.org
Thu Jul 8 18:18:02 UTC 2021
Date: Thursday, July 8, 2021 @ 18:18:02
Author: arojas
Revision: 975835
Update to 5.0.0
Added:
mediastreamer/trunk/fix-build.patch
Modified:
mediastreamer/trunk/PKGBUILD
-----------------+
PKGBUILD | 12 +++++++++---
fix-build.patch | 13 +++++++++++++
2 files changed, 22 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-08 18:09:35 UTC (rev 975834)
+++ PKGBUILD 2021-07-08 18:18:02 UTC (rev 975835)
@@ -5,7 +5,7 @@
# Contributor: Mark Lee <mark at markelee.com>
pkgname=mediastreamer
-pkgver=4.5.22
+pkgver=5.0.0
pkgrel=1
pkgdesc='A library written in C that allows you to create and run audio and video streams'
arch=(x86_64)
@@ -13,10 +13,16 @@
license=(GPL)
depends=(ortp ffmpeg bzrtp glew libsrtp)
makedepends=(cmake python bcunit doxygen)
-source=(https://github.com/BelledonneCommunications/mediastreamer2/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('8043e42bf0a017d97500f8817e89d7ba4c1e5222365b502bbbfeb9e30fa7b1a9')
+source=(https://github.com/BelledonneCommunications/mediastreamer2/archive/$pkgver/$pkgname-$pkgver.tar.gz
+ fix-build.patch)
+sha256sums=('ae46eb5d52590b25c8ac660b0208e7efcfbbc9968a0967e63c8684e153ff0f55'
+ '6e421e02a302c408975e8e01580ae72f35f9e9d7dc043542eade38961cb8e4f9')
validpgpkeys=('9774BC1725758EB16D639F8B3ECD52DEE2F56985')
+prepare() {
+ patch -d ${pkgname}2-$pkgver -p1 < fix-build.patch
+}
+
build() {
cmake -B build -S ${pkgname}2-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
Added: fix-build.patch
===================================================================
--- fix-build.patch (rev 0)
+++ fix-build.patch 2021-07-08 18:18:02 UTC (rev 975835)
@@ -0,0 +1,13 @@
+diff --git a/src/crypto/ms_srtp.c b/src/crypto/ms_srtp.c
+index ef15d545..a33477d5 100644
+--- a/src/crypto/ms_srtp.c
++++ b/src/crypto/ms_srtp.c
+@@ -371,7 +371,7 @@ static int ms_add_srtp_stream(srtp_t srtp, MSCryptoSuite suite, uint32_t ssrc, c
+ policy.key = (uint8_t *)key;
+ policy.next = NULL;
+
+- err = srtp_add_or_update_stream(srtp, &policy);
++ err = srtp_add_stream(srtp, &policy);
+ if (err != err_status_ok) {
+ ms_error("Failed to add stream to srtp session (%d)", err);
+ return -1;
More information about the arch-commits
mailing list