Compare commits

...

13 Commits

Author SHA1 Message Date
openeuler-ci-bot
1bd0a8c1b9
!60 [sync] PR-59: revert: remove the require to rpm-build.For consistency with other community-released dependencies
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-01-20 01:30:50 +00:00
dongyuzhen
ffc85ae410 revert: remove the require to rpm-build.For consistency with other community-released dependencies
(cherry picked from commit a7e40e58ed08e889e84deae01d4c5ea252694025)
2024-01-19 17:45:37 +08:00
openeuler-ci-bot
637c0c32e5
!55 [sync] PR-53: fix failure when recompiling noarch rpm and remove the require to rpm-build
From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-01-16 07:03:00 +00:00
dongyuzhen
d0dc7e0b5c fix failure to recompile with rpmrebuild and file conflicts between rpmrebuild and rpm-build
(cherry picked from commit 0769ea737c8338dec13e85a7aec77165e20fd091)
2024-01-16 14:32:24 +08:00
openeuler-ci-bot
9f21e7167f
!48 [sync] PR-44: fix errors found from shellcheck scan
From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-01-15 09:09:40 +00:00
dongyuzhen
930280245e fix errors found from shellcheck scan
(cherry picked from commit 78334f7a413a2678fd3cb4427af59c2cdcdfe31e)
2024-01-15 14:09:18 +08:00
openeuler-ci-bot
7105497bc5
!34 modify the patch name for the problem of vendor hard code
From: @dongyuzhen 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2022-11-26 06:09:23 +00:00
dongyuzhen
8d48d7625c modify the patch name for the problem of vendor hard code 2022-11-25 20:10:12 +08:00
openeuler-ci-bot
1f44063d97
!30 fix -r does not work
From: @xujing99 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2022-11-08 10:54:31 +00:00
xujing
c89b214241 rpmrebuild: fix -r does not work 2022-11-08 17:34:47 +08:00
openeuler-ci-bot
ede3470381
!27 fix --comment-missing=n does not work
From: @xujing99 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2022-11-08 09:30:02 +00:00
openeuler-ci-bot
1a552c78f2
!24 fix --cap-form-fs does not work
From: @xujing99 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2022-11-08 09:13:14 +00:00
openeuler-ci-bot
647f682696
!21 fix spelling errors that could mislead users
From: @xujing99 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2022-11-08 08:26:31 +00:00
5 changed files with 150 additions and 3 deletions

View File

@ -0,0 +1,50 @@
From b1ef9afb58b2a2ba2224d777a57ffbf0666eff3f Mon Sep 17 00:00:00 2001
From: lirui <lirui130@huawei.com>
Date: Thu, 28 Jan 2021 10:09:57 +0800
Subject: [PATCH] Add macros _binaries_in_noarch_packages_terminate_build and
_build_id_links
Some noarch packages use macro _binaries_in_noarch_packages_terminate_build to
package binary files. But when rpmrebuild can't read macro
_binaries_in_noarch_packages_terminate_build, it causes a problem, so add macro
_binaries_in_noarch_packages_terminate_build to the noarch package.
On the compilation environment, the macro _build_id_links is compat,and the
compiled package does not contain build-id. But during rpmrebuild, build-id
will be generated, but the buildroot directory is read-only, causing failure,
so set macro _build_id_links to none
---
rpmrebuild.sh | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/rpmrebuild.sh b/rpmrebuild.sh
index 2da043e..8b7f33d 100755
--- a/rpmrebuild.sh
+++ b/rpmrebuild.sh
@@ -216,10 +216,19 @@ function RpmBuild
return 1
}
fi
- eval $change_arch $BUILDCMD --define "'buildroot $BUILDROOT'" $rpm_defines -bb $rpm_verbose $additional ${FIC_SPEC} || {
- Error "(RpmBuild) package '${PAQUET}' $BuildFailed"
- return 1
- }
+
+ # Add macros %_binaries_in_noarch_packages_terminate_build to the noarch architecture
+ if [ "$pac_arch" = "noarch" ]; then
+ eval $change_arch $BUILDCMD --define "'buildroot $BUILDROOT'" --define "'_build_id_links none'" --define "'%_binaries_in_noarch_packages_terminate_build 0'" $rpm_defines -bb $rpm_verbose $additional ${FIC_SPEC} || {
+ Error "package '${PAQUET}' $BuildFailed"
+ return 1
+ }
+ else
+ eval $change_arch $BUILDCMD --define "'buildroot $BUILDROOT'" --define "'_build_id_links none'" $rpm_defines -bb $rpm_verbose $additional ${FIC_SPEC} || {
+ Error "package '${PAQUET}' $BuildFailed"
+ return 1
+ }
+ fi
return 0
}
--
2.33.0

View File

@ -0,0 +1,39 @@
From 731121ce199655c643ad8bbbec01a4d0efd9fa96 Mon Sep 17 00:00:00 2001
From: licunlong1 <licunlong1@huawei.com>
Date: Wed, 7 Sep 2022 17:09:00 +0800
Subject: [PATCH] fix errors found from shellcheck scan
---
plugins/demofiles.sh | 2 +-
rpmrebuild.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/demofiles.sh b/plugins/demofiles.sh
index 7d3f029..7511fd9 100755
--- a/plugins/demofiles.sh
+++ b/plugins/demofiles.sh
@@ -40,7 +40,7 @@ function syntaxe () {
###############################################################################
# test for arguments
-while [[ $ 1 ]]
+while [[ $1 ]]
do
case $1 in
-h | --help )
diff --git a/rpmrebuild.sh b/rpmrebuild.sh
index 2da043e..8e4f9b2 100755
--- a/rpmrebuild.sh
+++ b/rpmrebuild.sh
@@ -562,7 +562,7 @@ function Main
CommandLineParsing "$@" || return
[ "x$NEED_EXIT" = "x" ] || return $NEED_EXIT
- Debug "rpmrebuild version $VERSION : $@"
+ Debug "rpmrebuild version $VERSION : $*"
check_i18ndomains
--
2.33.0

25
fix-r-does-not-work.patch Normal file
View File

@ -0,0 +1,25 @@
From 5fb7daedd8ee3651f74382295e2983d5ca4707ff Mon Sep 17 00:00:00 2001
From: xujing <xujing125@huawei.com>
Date: Tue, 8 Nov 2022 10:53:03 +0800
Subject: [PATCH] fix -r does not work
---
rpmrebuild_parser.src | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rpmrebuild_parser.src b/rpmrebuild_parser.src
index 1b1b8be..e244a8d 100755
--- a/rpmrebuild_parser.src
+++ b/rpmrebuild_parser.src
@@ -1243,7 +1243,7 @@ function CommandLineParsing
export LONG_OPTION
- while getopts "5a:bc:d:D:ef:hi:Iklm:npPRrs:vVwy:-:" opt; do
+ while getopts "5a:bc:d:D:ef:hi:Iklm:npPRr:s:vVwy:-:" opt; do
OPTIND_INCR=""
case "$opt" in
5) LONG_OPTION="md5-compat-digest";;
--
2.27.0

View File

@ -1,22 +1,26 @@
Name: rpmrebuild Name: rpmrebuild
Version: 2.16 Version: 2.16
Release: 7 Release: 12
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
Source0: https://downloads.sourceforge.net/rpmrebuild/%{name}-%{version}.tar.gz Source0: https://downloads.sourceforge.net/rpmrebuild/%{name}-%{version}.tar.gz
Patch9000: bugfix-reset-defattr-when-users-want-to-keep-files-permissi.patch Patch9000: bugfix-reset-defattr-when-users-want-to-keep-files-permissi.patch
Patch9001: openEuler-fix-the-CreateBuildRoot-error-when-using-rpmrebuild-command.patch Patch9001: 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 Patch9004: fix-cap-from-fs-does-not-work.patch
Patch9005: fix-comment-missing-n-does-not-work.patch Patch9005: fix-comment-missing-n-does-not-work.patch
Patch9006: fix-r-does-not-work.patch
Patch9007: fix-errors-found-from-shellcheck-scan.patch
Patch9008: Add-macros-_binaries_in_noarch_packages_terminate_bu.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
Requires: rpm grep bash cpio textutils rpm-build Requires: rpm grep bash cpio textutils rpm-build
%description %description
%{name} allows to build an rpm file from an installed rpm, or from %{name} allows to build an rpm file from an installed rpm, or from
another rpm file, with or without changes (batch or interactive). It another rpm file, with or without changes (batch or interactive). It
@ -41,7 +45,6 @@ install -d -p $RPM_BUILD_ROOT%{_mandir}/fr/man1/
mv $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/* $RPM_BUILD_ROOT%{_mandir}/fr/man1/ mv $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/* $RPM_BUILD_ROOT%{_mandir}/fr/man1/
rm -rf $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/ rm -rf $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS %doc AUTHORS
@ -63,6 +66,36 @@ rm -rf $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/
%{_mandir}/fr/man1/*.gz %{_mandir}/fr/man1/*.gz
%changelog %changelog
* Fri Jan 19 2024 dongyuzhen <dongyuzhen@h-partners.com> - 2.16-12
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:revert: remove the require to rpm-build.For consistency with other community-released dependencies
* Mon Jan 15 2024 dongyuzhen <dongyuzhen@h-partners.com> - 2.16-11
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix failure when recompiling noarch rpm and remove the require to rpm-build
* Fri Jan 12 2024 dongyuzhen <dongyuzhen@h-partners.com> - 2.16-10
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix errors found from shellcheck scan
* Fri Nov 25 2022 dongyuzhen <dongyuzhen@h-partners.com> - 2.16-9
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:modify the patch name for the problem of vendor hard code
* Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-8
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix -r does not work
* Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-7 * Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-7
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA