Hello community, here is the log from the commit of package belle-sip for openSUSE:Factory checked in at 2019-09-07 11:50:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/belle-sip (Old) and /work/SRC/openSUSE:Factory/.belle-sip.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "belle-sip" Sat Sep 7 11:50:43 2019 rev:11 rq:728514 version:1.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/belle-sip/belle-sip.changes 2017-08-30 16:21:33.899316033 +0200 +++ /work/SRC/openSUSE:Factory/.belle-sip.new.7948/belle-sip.changes 2019-09-07 11:50:46.434296706 +0200 @@ -1,0 +2,6 @@ +Wed Sep 4 19:42:02 UTC 2019 - Alexei Sorokin <[email protected]> + +- Add belle-sip-fix-dns-build.patch: Pass -Wno-override-init to the + compiler while building dns.c (commit 99dda3d1). + +------------------------------------------------------------------- New: ---- belle-sip-fix-dns-build.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ belle-sip.spec ++++++ --- /var/tmp/diff_new_pack.GyMpyi/_old 2019-09-07 11:50:47.538296550 +0200 +++ /var/tmp/diff_new_pack.GyMpyi/_new 2019-09-07 11:50:47.538296550 +0200 @@ -1,7 +1,7 @@ # # spec file for package belle-sip # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2014 Mariusz Fik <[email protected]>. # # All modifications and additions to the file contributed by third parties @@ -13,7 +13,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -23,16 +23,18 @@ Version: 1.6.3 Release: 0 Summary: C object oriented SIP Stack -License: GPL-2.0+ +License: GPL-2.0-or-later Group: System/Libraries -Url: https://linphone.org/technical-corner/belle-sip/overview +URL: https://linphone.org/technical-corner/belle-sip/overview Source: https://linphone.org/releases/sources/%{name}/%{name}-%{version}.tar.gz Source1: http://antlr3.org/download/antlr-3.4-complete.jar Source2: baselibs.conf # PATCH-FIX-OPENSUSE belle-sip-fix-pkgconfig.patch [email protected] -- Fix up pkgconfig. Patch0: belle-sip-fix-pkgconfig.patch +# PATCH-FIX-OPENSUSE belle-sip-fix-dns-build.patch -- Pass -Wno-override-init to the compiler while building dns.c (commit 99dda3d1). +Patch1: belle-sip-fix-dns-build.patch # PATCH-FIX-OPENSUSE fix-build.patch [email protected] -- Remove reference to wakelock.h -Patch1: fix-build.patch +Patch2: fix-build.patch BuildRequires: antlr3c-devel BuildRequires: cmake BuildRequires: gcc-c++ @@ -68,9 +70,8 @@ to develop applications using the belle-sip library. %prep -%setup -q -n %{name}-%{version}-0 -%patch0 -p1 -%patch1 -p1 +%autosetup -p1 -n %{name}-%{version}-0 + cp -f %{SOURCE1} antlr3.jar %build @@ -79,7 +80,7 @@ -DANTLR3_JAR_PATH="$antlr_jar" \ -DENABLE_STRICT=OFF \ -DENABLE_STATIC=OFF -make %{?_smp_mflags} V=1 +%make_jobs %install %cmake_install @@ -89,11 +90,12 @@ %postun -n %{soname}%{sover} -p /sbin/ldconfig %files -n %{soname}%{sover} -%doc COPYING +%license COPYING %{_libdir}/%{soname}.so.%{sover}* %files devel -%doc AUTHORS COPYING NEWS README.md +%license COPYING +%doc AUTHORS NEWS README.md %{_bindir}/belle_sip_tester %{_includedir}/%{name}/ %{_libdir}/%{soname}.so ++++++ belle-sip-fix-dns-build.patch ++++++ --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -186,12 +186,8 @@ if(MSVC) set(SIP_MESSAGE_PARSER_COMPILE_FLAGS "${SIP_MESSAGE_PARSER_COMPILE_FLAGS} /wd4267") # Disable "possible loss of data" warnings set_source_files_properties(grammars/belle_sip_messageParser.c PROPERTIES COMPILE_FLAGS "${SIP_MESSAGE_PARSER_COMPILE_FLAGS}") else() - get_source_file_property(DNS_C_COMPILE_FLAGS dns.c COMPILE_FLAGS) - set(DNS_C_COMPILE_FLAGS "${DNS_C_COMPILE_FLAGS} -Wno-error") - set_source_files_properties(dns.c PROPERTIES COMPILE_FLAGS "${DNS_C_COMPILE_FLAGS}") - get_source_file_property(SIP_MESSAGE_PARSER_COMPILE_FLAGS grammars/belle_sip_messageParser.c COMPILE_FLAGS) - set(SIP_MESSAGE_PARSER_COMPILE_FLAGS "${SIP_MESSAGE_PARSER_COMPILE_FLAGS} -Wno-sign-compare") - set_source_files_properties(grammars/belle_sip_messageParser.c PROPERTIES COMPILE_FLAGS "${SIP_MESSAGE_PARSER_COMPILE_FLAGS}") + set_property(SOURCE dns.c APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-override-init -Wno-implicit-fallthrough -Wno-array-bounds") + set_property(SOURCE grammars/belle_sip_messageParser.c APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-sign-compare") endif() string(REPLACE ";" " " LINK_FLAGS_STR "${LINK_FLAGS}") --- a/src/dns.h +++ b/src/dns.h @@ -158,15 +158,7 @@ DNS_PUBLIC int *dns_debug_p(void); #define dns_quietinit(...) \ DNS_PRAGMA_PUSH DNS_PRAGMA_QUIET __VA_ARGS__ DNS_PRAGMA_POP -#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4 -#define DNS_PRAGMA_PUSH _Pragma("GCC diagnostic push") -#define DNS_PRAGMA_QUIET _Pragma("GCC diagnostic ignored \"-Woverride-init\"") -#define DNS_PRAGMA_POP _Pragma("GCC diagnostic pop") - -/* GCC parses the _Pragma operator less elegantly than clang. */ -#define dns_quietinit(...) \ - __extension__ ({ DNS_PRAGMA_PUSH DNS_PRAGMA_QUIET __VA_ARGS__; DNS_PRAGMA_POP }) -#else +#else // For GCC, -Woverride-init warning is disabled by the build system for dns.c only #define DNS_PRAGMA_PUSH #define DNS_PRAGMA_QUIET #define DNS_PRAGMA_POP
