[packages/linphone] - build fixes for bctoolbox 4.5 and c++11 - rel 9

baggins baggins at pld-linux.org
Mon Jul 12 00:34:36 CEST 2021


commit a85bb5f4bb039abfd1237d896f4a38b5df8bfcec
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jul 12 00:34:04 2021 +0200

    - build fixes for bctoolbox 4.5 and c++11
    - rel 9

 bctoolbox-4.5.patch | 11 +++++++++++
 cxx.patch           | 10 ++++++++++
 linphone.spec       |  6 +++++-
 3 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/linphone.spec b/linphone.spec
index a90752a..e2d19b0 100644
--- a/linphone.spec
+++ b/linphone.spec
@@ -20,7 +20,7 @@ Summary:	Linphone Internet Phone
 Summary(pl.UTF-8):	Linphone - telefon internetowy
 Name:		linphone
 Version:	3.12.0
-Release:	8
+Release:	9
 License:	GPL v2+
 Group:		Applications/Communications
 Source0:	http://linphone.org/releases/sources/linphone/%{name}-%{version}.tar.gz
@@ -29,6 +29,8 @@ Patch0:		%{name}-sh.patch
 Patch1:		build.patch
 Patch2:		%{name}-cxx-autotools.patch
 Patch3:		%{name}-no-rebuild.patch
+Patch4:		bctoolbox-4.5.patch
+Patch5:		cxx.patch
 URL:		http://www.linphone.org/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake >= 1:1.9
@@ -241,6 +243,8 @@ Statyczna biblioteka liblinphone++.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 [ ! -e gitversion.h ] && echo '#define LIBLINPHONE_GIT_VERSION "%{version}"' > coreapi/gitversion.h
 
diff --git a/bctoolbox-4.5.patch b/bctoolbox-4.5.patch
new file mode 100644
index 0000000..8486b2c
--- /dev/null
+++ b/bctoolbox-4.5.patch
@@ -0,0 +1,11 @@
+--- linphone-3.12.0/coreapi/sqlite3_bctbx_vfs.c.orig	2017-04-26 10:19:03.000000000 +0200
++++ linphone-3.12.0/coreapi/sqlite3_bctbx_vfs.c	2021-07-12 00:01:04.176260680 +0200
+@@ -245,7 +245,7 @@
+ 	ret = FlushFileBuffers((HANDLE)_get_osfhandle(pFile->pbctbx_file->fd));
+ 	return (ret!=0 ? SQLITE_OK : SQLITE_IOERR_FSYNC);
+ #else
+-	int rc = fsync(pFile->pbctbx_file->fd);
++	int rc = pFile->pbctbx_file->pMethods->pFuncSync(pFile->pbctbx_file);
+ 	return (rc==0 ? SQLITE_OK : SQLITE_IOERR_FSYNC);
+ #endif
+ }
diff --git a/cxx.patch b/cxx.patch
new file mode 100644
index 0000000..db5403f
--- /dev/null
+++ b/cxx.patch
@@ -0,0 +1,10 @@
+--- linphone-3.12.0/wrappers/cpp/object.hh~	2017-04-06 11:26:00.000000000 +0200
++++ linphone-3.12.0/wrappers/cpp/object.hh	2021-07-12 00:06:44.171289642 +0200
+@@ -24,6 +24,7 @@
+ #include <list>
+ #include <map>
+ #include <string>
++#include <stdexcept>
+ 
+ #ifndef LINPHONECXX_PUBLIC
+ #if defined(_MSC_VER)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/linphone.git/commitdiff/a85bb5f4bb039abfd1237d896f4a38b5df8bfcec



More information about the pld-cvs-commit mailing list