[packages/bcunit] - updated to 5.2.0 - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Fri Apr 7 21:20:22 CEST 2023


commit 73334038e2ee84c1befec4abad9b57c4d8c8a845
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 7 21:22:56 2023 +0200

    - updated to 5.2.0
    - added format patch (fixes build with -Werror=format-security)

 bcunit.spec | 15 +++++++--------
 lib.patch   | 10 +++++-----
 2 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/bcunit.spec b/bcunit.spec
index 5bbb2c2..ccfb169 100644
--- a/bcunit.spec
+++ b/bcunit.spec
@@ -5,18 +5,16 @@
 Summary:	Provide C programmers basic testing functionality
 Summary(pl.UTF-8):	Podstawowa funkcjonalność testów dla programistów C
 Name:		bcunit
-Version:	3.0.2
-%define	gitref	74021cc7cb20a4e177748dd2948173e1f9c270ae
-%define	snap	20200822
-%define	rel	1
-Release:	3.%{snap}.%{rel}
+Version:	5.2.0
+Release:	1
 License:	LGPL v2+
 Group:		Libraries
 #Source0Download: https://gitlab.linphone.org/BC/public/bcunit/tags
-Source0:	https://gitlab.linphone.org/BC/public/bcunit/-/archive/%{gitref}/%{name}-%{snap}.tar.bz2
-# Source0-md5:	9cd76b8e474697898993e0ba28e9b921
+Source0:	https://gitlab.linphone.org/BC/public/bcunit/-/archive/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5:	8c734804901d3d1caefc2e0827646d29
 Patch0:		lib.patch
 Patch1:		%{name}-examples.patch
+Patch2:		%{name}-format.patch
 URL:		https://linphone.org/
 BuildRequires:	cmake >= 3.1
 BuildRequires:	ncurses-devel
@@ -61,9 +59,10 @@ Static BCUnit library.
 Statyczna biblioteka BCUnit.
 
 %prep
-%setup -q -n %{name}-%{gitref}
+%setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 # sources contain "build" directory, so use alternative builddir
diff --git a/lib.patch b/lib.patch
index ef5fb87..7466d7a 100644
--- a/lib.patch
+++ b/lib.patch
@@ -1,10 +1,10 @@
---- BCunit-3.0.2-Source/BCUnit/Sources/CMakeLists.txt~	2017-07-20 16:06:38.000000000 +0200
-+++ BCunit-3.0.2-Source/BCUnit/Sources/CMakeLists.txt	2018-09-26 11:47:06.695729380 +0200
-@@ -169,6 +169,7 @@ if(ENABLE_STATIC)
+--- BCunit-5.2.0/BCUnit/Sources/CMakeLists.txt~	2017-07-20 16:06:38.000000000 +0200
++++ BCunit-5.2.0/BCUnit/Sources/CMakeLists.txt	2018-09-26 11:47:06.695729380 +0200
+@@ -176,6 +176,7 @@ if(ENABLE_STATIC)
  endif()
  if(ENABLE_SHARED)
  	add_library(bcunit SHARED ${SOURCE_FILES})
 +	set_target_properties(bcunit PROPERTIES SOVERSION 1)
  	set_target_properties(bcunit PROPERTIES VERSION 1.0.1)
- 	if(CURSES_LIBRARIES)
- 		target_link_libraries(bcunit ${CURSES_LIBRARIES})
+ 	target_compile_definitions(bcunit INTERFACE "$<BUILD_INTERFACE:IN_BCUNIT_SOURCES>")
+ 	target_include_directories(bcunit PUBLIC
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bcunit.git/commitdiff/73334038e2ee84c1befec4abad9b57c4d8c8a845



More information about the pld-cvs-commit mailing list