On Tue, 2019-01-15 at 06:44 -0300, pablo(a)fliagreco.com.ar wrote:
From: Pablo Greco <pablo(a)fliagreco.com.ar>
---
kernel.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel.spec b/kernel.spec
index aaaa280..25ad968 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1228,7 +1228,7 @@ BuildKernel() {
# make sure EXTRAVERSION says what we want it to say
# Trim the release if this is a CI build, since KERNELVERSION is
limited to 64 characters
- ShortRel=$(python3 -c "import re; print(re.sub(r'\.pr\.[0-9A-Fa-
f]{32}', '', '%{release}'))")
+ ShortRel=$(perl -e "print \"%{release}\" =~ s/\.pr\.[0-9A-Fa-
f]{32}//r")
perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION =
-${ShortRel}.%{_target_cpu}${Flav}/" Makefile
# if pre-rc1 devel kernel, must fix up PATCHLEVEL for our
versioning scheme
IMHO , you should use sed , not perl nor python3 .
Perl is not in buildroot anymore [1]
[1]
https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl
Best regards,
--
Sérgio M. B.