libnice 0.1.21-3 (x86_64;znver1;aarch64) 2023-17396
9999
| Status | published | ||||||||||||||||||||||||||||||
| Submitter | benbullard79 [@T] cox.net | ||||||||||||||||||||||||||||||
| Platform | rolling | ||||||||||||||||||||||||||||||
| Repository | main | ||||||||||||||||||||||||||||||
| URL | https://abf.openmandriva.org/build_lists/329929 | ||||||||||||||||||||||||||||||
| Packages |
|
||||||||||||||||||||||||||||||
| Build Date | 2023-04-05 20:35:32 +0000 UTC | ||||||||||||||||||||||||||||||
| Last Updated | 2023-04-06 17:13:03.159132034 +0000 UTC |
$ git diff --patch-with-stat --summary ed24cccc5592b2573f16fa4ac51e79582f9fa169..e917c74c276ded8a16c96091c06b3431a2ee46aa
f4e2838f664f4007838f4c635d7a4fe653aae68b.patch | 31 ++++++++++++++++++++++++++
libnice.spec | 5 ++---
2 files changed, 33 insertions(+), 3 deletions(-)
create mode 100644 f4e2838f664f4007838f4c635d7a4fe653aae68b.patch
diff --git a/f4e2838f664f4007838f4c635d7a4fe653aae68b.patch b/f4e2838f664f4007838f4c635d7a4fe653aae68b.patch
new file mode 100644
index 0000000..a31ec43
--- /dev/null
+++ b/f4e2838f664f4007838f4c635d7a4fe653aae68b.patch
@@ -0,0 +1,31 @@
+From f4e2838f664f4007838f4c635d7a4fe653aae68b Mon Sep 17 00:00:00 2001
+From: Christoph Reiter <reiter.christoph@gmail.com>
+Date: Mon, 9 Jan 2023 19:12:52 +0100
+Subject: Fix build with clang
+
+Building libnice with clang 15 fails with:
+
+interfaces.c:913:12: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'guint' (aka 'unsigned int') [-Wint-conversion]
+ return NULL;
+
+Fix by returning 0 instead.
+---
+ agent/interfaces.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/agent/interfaces.c b/agent/interfaces.c
+index 3590e0d..30944f5 100644
+--- a/agent/interfaces.c
++++ b/agent/interfaces.c
+@@ -910,7 +910,7 @@ nice_interfaces_get_if_index_by_addr (NiceAddress *addr)
+
+ addresses = _nice_get_adapters_addresses ();
+ if (!addresses)
+- return NULL;
++ return 0;
+
+ for (a = addresses; a != NULL; a = a->Next) {
+ /* Various conditions for ignoring the interface. */
+--
+cgit v1.2.1
+
diff --git a/libnice.spec b/libnice.spec
index 0c0e895..3d242ec 100644
--- a/libnice.spec
+++ b/libnice.spec
@@ -1,5 +1,3 @@
-%global optflags %{optflags} -Wno-error=cast-align
-
%define gstapi 1.0
%define oname nice
%define major 10
@@ -9,11 +7,12 @@
Summary: Implementation of the IETF's draft I.C.E standard
Name: libnice
Version: 0.1.21
-Release: 1
+Release: 3
License: LGPLv2+ and MPLv1+
Group: System/Libraries
Url: http://nice.freedesktop.org/wiki/
Source0: http://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz
+Patch0: https://cgit.freedesktop.org/libnice/libnice/commit/?id=f4e2838f664f4007838f4c635d7a4fe653aae68b.patch
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires: pkgconfig(gupnp-igd-1.0)
Not Available
| benbullard79 [@T] cox.net | No Comment. | 1102d 17hrs |
| benbullard79 [@T] cox.net | No Comment. | 1102d 00hrs |
| benbullard79 [@T] cox.net | No Comment. | 1102d 00hrs |