From edeb12b60c8bda70e5364cef6f270ed8daaa6ad8 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Mon, 13 Jul 2015 15:39:26 +0200 Subject: [PATCH] Fix sblim-sfcb FTBFS in rawhide --- sblim-sfcb-1.4.9-fix-ftbfs.patch | 12 ++++++++++++ sblim-sfcb.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sblim-sfcb-1.4.9-fix-ftbfs.patch diff --git a/sblim-sfcb-1.4.9-fix-ftbfs.patch b/sblim-sfcb-1.4.9-fix-ftbfs.patch new file mode 100644 index 0000000..9548b3c --- /dev/null +++ b/sblim-sfcb-1.4.9-fix-ftbfs.patch @@ -0,0 +1,12 @@ +diff -up sblim-sfcb-1.4.9/control.c.orig sblim-sfcb-1.4.9/control.c +--- sblim-sfcb-1.4.9/control.c.orig 2015-07-13 15:06:21.331660336 +0200 ++++ sblim-sfcb-1.4.9/control.c 2015-07-13 15:08:38.031308917 +0200 +@@ -83,7 +83,7 @@ long httpReqHandlerTimeout; + * Kindly null terminate, always, even if might overwrite + * the last char of the truncated string. + */ +-inline char *strncpy_kind(char *to, char *from, size_t size) { ++char *strncpy_kind(char *to, char *from, size_t size) { + strncpy(to, from, size); + *(to + size - 1) = '\0'; + return to; diff --git a/sblim-sfcb.spec b/sblim-sfcb.spec index ad08d73..07eb874 100644 --- a/sblim-sfcb.spec +++ b/sblim-sfcb.spec @@ -8,7 +8,7 @@ Name: sblim-sfcb Summary: Small Footprint CIM Broker URL: http://sblim.wiki.sourceforge.net/ Version: 1.4.9 -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/System License: EPL Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2 @@ -31,6 +31,7 @@ Patch4: sblim-sfcb-1.3.16-multilib-man-cfg.patch # Patch5: change default ecdh curve name, as the original is not enabled # in openssl on Fedora, rhbz#1097794 Patch5: sblim-sfcb-1.4.8-default-ecdh-curve-name.patch +Patch6: sblim-sfcb-1.4.9-fix-ftbfs.patch Provides: cim-server = 0 Requires: cim-schema Requires: sblim-sfcCommon @@ -64,6 +65,7 @@ Programming Interface (CMPI). %patch3 -p1 -b .service %patch4 -p1 -b .multilib-man-cfg %patch5 -p1 -b .default-ecdh-curve-name +%patch6 -p1 -b .fix-ftbfs %build %configure --enable-debug --enable-uds --enable-ssl --enable-pam --enable-ipv6 \ @@ -123,6 +125,10 @@ fi; %files -f _pkg_list %changelog +* Mon Jul 13 2015 Vitezslav Crhonek - 1.4.9-3 +- Fix sblim-sfcb FTBFS in rawhide + Resolves: #1239986 + * Fri Jun 19 2015 Fedora Release Engineering - 1.4.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild