1
0
forked from pool/libosmo-abis

- Update to new upstream snapshot 0.3.2.24

OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-abis?expand=0&rev=23
This commit is contained in:
Jan Engelhardt 2016-10-01 12:31:05 +00:00 committed by Git OBS Bridge
parent f4e3327347
commit 3b26974ac2
6 changed files with 57 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22abbe3bbc7abd02d5ba342a48ce6b6c489ee3641023d67f6180a8c5400e8ed0
size 62296

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:578321ce1402835e3c50c65c60cd20edc762cfbe14203fe86426f0d25766fcec
size 62292

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 1 12:30:41 UTC 2016 - jengelh@inai.de
- Update to new upstream snapshot 0.3.2.24
- Add ortp27.diff
-------------------------------------------------------------------
Sat Jul 30 17:54:58 UTC 2016 - jengelh@inai.de

View File

@ -16,10 +16,10 @@
#
%define version_unconverted 0.3.2.19
%define version_unconverted 0.3.2.24
Name: libosmo-abis
Version: 0.3.2.19
Version: 0.3.2.24
Release: 0
Summary: Osmocom library for A-bis interface between BTS and BSC
License: AGPL-3.0+ and GPL-2.0+
@ -31,6 +31,7 @@ Url: http://openbsc.osmocom.org/trac/wiki/libosmo-abis
Source: %name-%version.tar.xz
Patch1: osmo-talloc.diff
Patch2: 0001-build-resolve-compiler-warnings.patch
Patch3: ortp27.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake >= 1.6
@ -41,7 +42,7 @@ BuildRequires: xz
BuildRequires: pkgconfig(libosmocore) >= 0.3.0
BuildRequires: pkgconfig(libosmogsm) >= 0.3.10
BuildRequires: pkgconfig(libosmovty) >= 0.3.0
BuildRequires: pkgconfig(ortp) >= 0.13.1
BuildRequires: pkgconfig(ortp) >= 0.22
%description
In GSM, A-bis is a BSS-internal interface link between the BTS and
@ -101,7 +102,7 @@ applications that want to make use of libosmotrau.
%prep
%setup -q
%patch -P 1 -P 2 -p1
%patch -P 1 -P 2 -P 3 -p1
%build
echo "%version" >.tarball-version

31
ortp27.diff Normal file
View File

@ -0,0 +1,31 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2016-10-01 14:30:22.066588957 +0200
build: make libosmo-abis build with ortp-0.27
---
src/trau/osmo_ortp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: libosmo-abis-0.3.2.24/src/trau/osmo_ortp.c
===================================================================
--- libosmo-abis-0.3.2.24.orig/src/trau/osmo_ortp.c
+++ libosmo-abis-0.3.2.24/src/trau/osmo_ortp.c
@@ -94,7 +94,7 @@ static int ortp_to_osmo_lvl(OrtpLogLevel
return LOGL_ERROR;
}
-static void my_ortp_logfn(OrtpLogLevel lev, const char *fmt,
+static void my_ortp_logfn(const char *domain, OrtpLogLevel lev, const char *fmt,
va_list args)
{
osmo_vlogp(DLMIB, ortp_to_osmo_lvl(lev), __FILE__, 0,
@@ -271,7 +271,7 @@ void osmo_rtp_init(void *ctx)
tall_rtp_ctx = ctx;
ortp_set_memory_functions(&osmo_ortp_memfn);
ortp_init();
- ortp_set_log_level_mask(0xffff);
+ ortp_set_log_level_mask(ORTP_LOG_DOMAIN, 0xffff);
ortp_set_log_handler(my_ortp_logfn);
create_payload_types();
}

View File

@ -9,23 +9,23 @@ The source files use talloc, so link to talloc.
src/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Index: libosmo-abis/configure.ac
Index: libosmo-abis-0.3.2.24/configure.ac
===================================================================
--- libosmo-abis.orig/configure.ac
+++ libosmo-abis/configure.ac
@@ -33,6 +33,7 @@ AM_CONFIG_HEADER(config.h)
--- libosmo-abis-0.3.2.24.orig/configure.ac
+++ libosmo-abis-0.3.2.24/configure.ac
@@ -30,6 +30,7 @@ AC_SUBST(SYMBOL_VISIBILITY)
dnl Generate the output
AM_CONFIG_HEADER(config.h)
+PKG_CHECK_MODULES([TALLOC], [talloc])
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.10)
+PKG_CHECK_MODULES([TALLOC], [talloc])
PKG_CHECK_MODULES([ORTP], [ortp >= 0.13.1],
[
PKG_CHECK_MODULES([ORTP_VERSION], [ortp >= 0.21],
Index: libosmo-abis/src/Makefile.am
Index: libosmo-abis-0.3.2.24/src/Makefile.am
===================================================================
--- libosmo-abis.orig/src/Makefile.am
+++ libosmo-abis/src/Makefile.am
@@ -6,7 +6,7 @@ TRAU_LIBVERSION=0:0:0
--- libosmo-abis-0.3.2.24.orig/src/Makefile.am
+++ libosmo-abis-0.3.2.24/src/Makefile.am
@@ -6,7 +6,7 @@ TRAU_LIBVERSION=1:0:0
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir)
AM_CFLAGS= -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(COVERAGE_CFLAGS)
AM_LDFLAGS = $(COVERAGE_LDFLAGS)