!26 [sync] PR-24: fix --cap-form-fs does not work
From: @openeuler-sync-bot Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
5f44557786
38
fix-cap-from-fs-does-not-work.patch
Normal file
38
fix-cap-from-fs-does-not-work.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From d0df2f1aef9784e09467a8b513fa14135a6d3928 Mon Sep 17 00:00:00 2001
|
||||||
|
From: xujing <xujing125@huawei.com>
|
||||||
|
Date: Tue, 8 Nov 2022 10:51:34 +0800
|
||||||
|
Subject: [PATCH] fix --cap-from-fs does not work
|
||||||
|
|
||||||
|
---
|
||||||
|
rpmrebuild_files.sh | 2 +-
|
||||||
|
rpmrebuild_parser.src | 1 +
|
||||||
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/rpmrebuild_files.sh b/rpmrebuild_files.sh
|
||||||
|
index 1afc484..fb40709 100755
|
||||||
|
--- a/rpmrebuild_files.sh
|
||||||
|
+++ b/rpmrebuild_files.sh
|
||||||
|
@@ -193,7 +193,7 @@ while :; do
|
||||||
|
|
||||||
|
# %caps handling
|
||||||
|
if [ "X$RPMREBUILD_CAP_FROM_FS" = "Xyes" ]; then
|
||||||
|
- file_cap=$( getcap "$file" | cut -f2 -d= )
|
||||||
|
+ file_cap=$( getcap "$file" | cut -f2 -d' ' )
|
||||||
|
else
|
||||||
|
# get capability from rpm query
|
||||||
|
[ "X$file_cap" = "X(none)" ] && file_cap=""
|
||||||
|
diff --git a/rpmrebuild_parser.src b/rpmrebuild_parser.src
|
||||||
|
index 2f400ac..cbdb516 100755
|
||||||
|
--- a/rpmrebuild_parser.src
|
||||||
|
+++ b/rpmrebuild_parser.src
|
||||||
|
@@ -1235,6 +1235,7 @@ function CommandLineParsing
|
||||||
|
|
||||||
|
export RPMREBUILD_COMMENT_MISSING="no"
|
||||||
|
export RPMREBUILD_PUG_FROM_FS="no"
|
||||||
|
+ export RPMREBUILD_CAP_FROM_FS="no"
|
||||||
|
export RPMREBUILD_WARNING="no"
|
||||||
|
|
||||||
|
PAQUET=""
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: rpmrebuild
|
Name: rpmrebuild
|
||||||
Version: 2.16
|
Version: 2.16
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: A tool to build a rpm file from the rpm database
|
Summary: A tool to build a rpm file from the rpm database
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://rpmrebuild.sourceforge.net
|
URL: http://rpmrebuild.sourceforge.net
|
||||||
@ -10,6 +10,7 @@ Patch9000: bugfix-reset-defattr-when-users-want-to-keep-files-permissi.patc
|
|||||||
Patch9001: openEuler-fix-the-CreateBuildRoot-error-when-using-rpmrebuild-command.patch
|
Patch9001: openEuler-fix-the-CreateBuildRoot-error-when-using-rpmrebuild-command.patch
|
||||||
Patch9002: fix-k-may-not-keep-uid-or-gid.patch
|
Patch9002: fix-k-may-not-keep-uid-or-gid.patch
|
||||||
Patch9003: fix-spelling-errors-that-could-mislead-users.patch
|
Patch9003: fix-spelling-errors-that-could-mislead-users.patch
|
||||||
|
Patch9004: fix-cap-from-fs-does-not-work.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -61,6 +62,12 @@ rm -rf $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/
|
|||||||
%{_mandir}/fr/man1/*.gz
|
%{_mandir}/fr/man1/*.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-6
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix --cap-from-fs does not work
|
||||||
|
|
||||||
* Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-5
|
* Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-5
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user