Skip to contentSkip to conversation

scripts: rpm: make clear that mkspec script contains 4.13 feature

PATCH In review Arend van Spriel 2 participants 2 messages Jan 11, 2023 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 scripts: rpm: make clear that mkspec script contains 4.13 feature

A fix was made in the mkspec script that uses a feature, ie. the OR expression, which requires RPM 4.13. However, the script indicates another minimum version. Lower versions may have success by using the --no-deps option as suggested, but feels like bumping the version to 4.13 is reasonable as it put me on the wrong track at first with RPM 4.11 on my Centos7 machine.

Fixes 02a893bc9975 ("kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires")
---
 scripts/package/mkspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/package/mkspec +1 -1
index adab28fa7f89..094e52c979a8 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 #	Output a simple RPM spec file.
-#	This version assumes a minimum of RPM 4.0.3.
+#	This version assumes a minimum of RPM 4.13
 #
 #	The only gothic bit here is redefining install_post to avoid
 #	stripping the symbols from files in the kernel which we want
Signature · 1 line
2.32.0
#1 lore raw
Quoted 8 lines · Arend van Spriel

A fix was made in the mkspec script that uses a feature, ie. the OR expression, which requires RPM 4.13. However, the script indicates another minimum version. Lower versions may have success by using the --no-deps option as suggested, but feels like bumping the version to 4.13 is reasonable as it put me on the wrong track at first with RPM 4.11 on my Centos7 machine.

Quoted 4 lines
Fixes 02a893bc9975 ("kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires")
---
 scripts/package/mkspec | 2 +-

Applied to linux-kbuild/fixes.
Thanks.

Quoted 18 lines
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/package/mkspec +1 -2
index adab28fa7f89..094e52c979a8 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 #      Output a simple RPM spec file.
-#      This version assumes a minimum of RPM 4.0.3.
+#      This version assumes a minimum of RPM 4.13
 #
 #      The only gothic bit here is redefining install_post to avoid
 #      stripping the symbols from files in the kernel which we want
--

2.32.0

Signature · 2 lines
Best Regards
Masahiro Yamada