From f6f0eeb85fd09d1aaf4b8c2e0c8646430b957b78 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Jul 2022 16:37:13 +0800 Subject: [PATCH] fix execution succeed when format a disk with partitions. Signed-off-by: zhanchengbin (cherry picked from commit d95aa8f6df89d497f683a97991cd43b7e566c2b6) --- dosfstools.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dosfstools.spec b/dosfstools.spec index 6486449..e284f7d 100644 --- a/dosfstools.spec +++ b/dosfstools.spec @@ -1,12 +1,12 @@ Name: dosfstools Version: 4.1 -Release: 11 +Release: 12 Summary: FAT file system userspace tools License: GPLv3+ URL: http://www.github.com/dosfstools/dosfstools Source0: http://www.github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz -BuildRequires: gcc autoconf automake +BuildRequires: gcc autoconf automake systemd-devel Patch0: 0000-Fix-signed-integer-overflow-in-FSTART.patch Patch1: 0001-Avoid-returning-deleted-directory-entries-as-labels.patch @@ -36,7 +36,7 @@ This package includes man pages for dosfstools. %build %configure --enable-compat-symlinks -%make_build CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing" +%make_build CFLAGS="%{optflags} -D HAVE_UDEV -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing" %check make check @@ -54,6 +54,9 @@ make check %{_mandir}/man8/* %changelog +* Tue Jul 5 2022 zhanchengbin - 4.1-12 +- fix execution successd when format a disk with partitions. + * Fri Jul 30 2021 chenyanpanHW - 4.1-11 - DESC: delete -S git from %autosetup, and delete BuildRequires git