On Tue, 2019-01-15 at 06:44 -0300, pablo@xxxxxxxxxxxxxxxx wrote: > From: Pablo Greco <pablo@xxxxxxxxxxxxxxxx> > > --- > 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. _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx