Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package belle-sip for openSUSE:Factory checked in at 2022-10-17 14:58:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/belle-sip (Old) and /work/SRC/openSUSE:Factory/.belle-sip.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "belle-sip" Mon Oct 17 14:58:13 2022 rev:30 rq:1012001 version:5.1.64 Changes: -------- --- /work/SRC/openSUSE:Factory/belle-sip/belle-sip.changes 2022-08-18 16:49:11.553449446 +0200 +++ /work/SRC/openSUSE:Factory/.belle-sip.new.2275/belle-sip.changes 2022-10-17 14:58:14.990156118 +0200 @@ -1,0 +2,5 @@ +Mon Oct 17 07:11:00 UTC 2022 - Paolo Stivanin <[email protected]> + +- Update to 5.1.64 (no changelog). + +------------------------------------------------------------------- Old: ---- belle-sip-5.1.47.tar.bz2 New: ---- belle-sip-5.1.64.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ belle-sip.spec ++++++ --- /var/tmp/diff_new_pack.jhQrCP/_old 2022-10-17 14:58:15.582157255 +0200 +++ /var/tmp/diff_new_pack.jhQrCP/_new 2022-10-17 14:58:15.586157263 +0200 @@ -20,7 +20,7 @@ %define soname libbellesip %define sover 1 Name: belle-sip -Version: 5.1.47 +Version: 5.1.64 Release: 0 Summary: C object-oriented SIP Stack License: GPL-3.0-or-later @@ -29,12 +29,12 @@ Source: https://gitlab.linphone.org/BC/public/belle-sip/-/archive/%{version}/%{name}-%{version}.tar.bz2 Source2: baselibs.conf BuildRequires: belr-devel +BuildRequires: chrpath BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: pkgconfig(bctoolbox) >= 5.0.0 BuildRequires: pkgconfig(zlib) -BuildRequires: chrpath %description Belle-sip is a SIP (RFC3261) implementation written in C, with an ++++++ belle-sip-5.1.47.tar.bz2 -> belle-sip-5.1.64.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.1.47/src/CMakeLists.txt new/belle-sip-5.1.64/src/CMakeLists.txt --- old/belle-sip-5.1.47/src/CMakeLists.txt 2022-07-04 15:24:18.000000000 +0200 +++ new/belle-sip-5.1.64/src/CMakeLists.txt 2022-09-15 17:18:34.000000000 +0200 @@ -176,6 +176,7 @@ if(APPLE) set(BELLE_SIP_SOURCE_FILES_OBJC backgroundtask.mm + ios_check_version.m ) endif() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.1.47/src/belle_sip_internal.h new/belle-sip-5.1.64/src/belle_sip_internal.h --- old/belle-sip-5.1.47/src/belle_sip_internal.h 2022-07-04 15:24:18.000000000 +0200 +++ new/belle-sip-5.1.64/src/belle_sip_internal.h 2022-09-15 17:18:34.000000000 +0200 @@ -1156,4 +1156,9 @@ } #endif + +#if TARGET_OS_IPHONE +int belle_sip_get_ios_device_major_version(); +#endif + #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.1.47/src/ios_check_version.m new/belle-sip-5.1.64/src/ios_check_version.m --- old/belle-sip-5.1.47/src/ios_check_version.m 1970-01-01 01:00:00.000000000 +0100 +++ new/belle-sip-5.1.64/src/ios_check_version.m 2022-09-15 17:18:34.000000000 +0200 @@ -0,0 +1,32 @@ +/* + belle-sip - SIP (RFC3261) library. + Copyright (C) 2022 Belledonne Communications SARL + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ +#ifdef __APPLE__ +#include <TargetConditionals.h> +#endif + +#include "belle_sip_internal.h" + +#if TARGET_OS_IPHONE +#import <UIKit/UIKit.h> + +int belle_sip_get_ios_device_major_version() { + NSArray *versionCompatibility = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."]; + + return [[versionCompatibility objectAtIndex:0] intValue]; +} +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.1.47/src/transports/stream_channel.c new/belle-sip-5.1.64/src/transports/stream_channel.c --- old/belle-sip-5.1.47/src/transports/stream_channel.c 2022-07-04 15:24:18.000000000 +0200 +++ new/belle-sip-5.1.64/src/transports/stream_channel.c 2022-09-15 17:18:34.000000000 +0200 @@ -222,7 +222,9 @@ return -1; } #if TARGET_OS_IPHONE - stream_channel_enable_ios_background_mode(obj); + if (belle_sip_get_ios_device_major_version() < 16) { // Causes crash on app built for iOS16 with Xcode 14 + stream_channel_enable_ios_background_mode(obj); + } #endif if (obj->base.stack->dscp && obj->base.lp){ /*apply dscp only to channel belonging to a SIP listening point*/
