integ/filesystem/parted/centos/meta_patches/syscalls.patch
zhipengl d776a77304 upgrade parted to CentOS 7.5 version
Most of changes in fix-dev-nodes-getting-removed-for-100-to-300-ms-on-parted-print.patch
are already in 7.5 version. So related changes removed.

Story: 2003389
Task: 24479
Depends-On: https://review.openstack.org/#/c/595981/

Change-Id: I92501a66ebb44eab92f4b7377998bb71d70fc722
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-08-25 19:24:50 +08:00

63 lines
2.0 KiB
Diff

From 58d86a82323f838bb6169423fb3dd958bb92c147 Mon Sep 17 00:00:00 2001
From: Kristine Bujold <kristine.bujold@windriver.com>
Date: Wed, 21 Dec 2016 15:28:53 -0500
Subject: [PATCH 1/3] WRS: syscalls.patch
---
SPECS/parted.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/SPECS/parted.spec b/SPECS/parted.spec
index 1f453cb..9316ebe 100644
--- a/SPECS/parted.spec
+++ b/SPECS/parted.spec
@@ -12,6 +12,7 @@ URL: http://www.gnu.org/software/parted
Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Source1: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source2: pubkey.jim.meyering
+Source3: resizepart.sh
Patch0: parted-3.0-libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
Patch1: parted-3.1-libparted-check-PMBR-before-GPT-partition-table-8052.patch
@@ -64,6 +65,8 @@ Patch45: 0045-parted-Add-stub-resize-command-for-backward-compatib.patch
Patch46: 0046-libparted-Backport-partition-resize-code.patch
Patch47: 0047-tests-excersise-resize-command.patch
Patch48: 0048-parted-add-resizepart-command.patch
+# WRS
+Patch49: syscalls.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: e2fsprogs-devel
@@ -128,7 +131,7 @@ git commit -a -m "run iconv"
autoreconf
autoconf
CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable"; export CFLAGS
-%configure --enable-selinux --disable-static
+%configure --enable-selinux --disable-static --disable-device-mapper
# Don't use rpath!
%{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
%{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@@ -157,6 +160,9 @@ popd
%find_lang %{name}
+# WRS
+install -d %{buildroot}%{_sbindir}
+install -m 755 %{SOURCE3} %{buildroot}%{_sbindir}/resizepart.sh
%check
export LD_LIBRARY_PATH=$(pwd)/libparted/.libs
@@ -192,6 +198,9 @@ fi
%{_libdir}/libparted-fs-resize.so*
%{_infodir}/parted.info.gz
+# WRS
+%{_sbindir}/resizepart.sh
+
%files devel
%defattr(-,root,root,-)
%{_includedir}/parted
--
2.7.4