diff --git a/Apply-suggestoin-about-wprintw-and-autoupdate-from-Geroges.pacth b/Apply-suggestoin-about-wprintw-and-autoupdate-from-Geroges.pacth new file mode 100644 index 0000000..4897619 --- /dev/null +++ b/Apply-suggestoin-about-wprintw-and-autoupdate-from-Geroges.pacth @@ -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); diff --git a/partclone.spec b/partclone.spec index ff0883c..e67cc50 100644 --- a/partclone.spec +++ b/partclone.spec @@ -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 - 0.3.12-4 +- Fix build error + * Tue Aug 3 2021 weidong - 0.3.12-3 - Fix link failuer with gcc-10