!11 [sync] PR-10: fix build error

From: @openeuler-sync-bot 
Reviewed-by: @ruebb 
Signed-off-by: @ruebb
This commit is contained in:
openeuler-ci-bot 2022-03-11 01:38:26 +00:00 committed by Gitee
commit 3be5612c65
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -Nur a/src/partclone.c b/src/partclone.c
--- a/src/partclone.c 2022-03-10 18:54:27.177629520 +0800
+++ b/src/partclone.c 2022-03-10 18:54:05.473272293 +0800
@@ -839,7 +839,7 @@
if (log_exit)
wattron(log_win, A_STANDOUT);
- wprintw(log_win, tmp_str);
+ wprintw(log_win, "%s", tmp_str);
if (log_exit) {
wattroff(log_win, A_STANDOUT);

View File

@ -4,7 +4,7 @@
Summary: Utility to clone and restore a partition
Name: partclone
Version: 0.3.12
Release: 3
Release: 4
# Partclone itself is GPLv2+ but uses other source codes, breakdown:
# GPLv3+: fail-mbr/fail-mbr.S
# GPLv2 and GPLv2+: src/btrfs*
@ -18,6 +18,8 @@ License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2 and LGPLv2+
URL: http://partclone.org/
Source0: https://github.com/Thomas-Tsai/partclone/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: partclone-0.3.12-gcc10.patch
#https://github.com/Thomas-Tsai/partclone/commit/5c2f2fc71e6d4569bc94c4d6c265a01a5ef6bf1a
Patch1: Apply-suggestoin-about-wprintw-and-autoupdate-from-Geroges.pacth
BuildRequires: gcc
BuildRequires: libuuid-devel
BuildRequires: fuse-devel
@ -119,6 +121,9 @@ make check || (cat tests/test-suite.log; exit 1)
%{_mandir}/man8/%{name}*.8*
%changelog
* Thu Mar 10 2022 liyanan <liyanan32@huawei.com> - 0.3.12-4
- Fix build error
* Tue Aug 3 2021 weidong <weidong@uniontech.com> - 0.3.12-3
- Fix link failuer with gcc-10