Re: Building custom kernel using rpmbuild method fails with config conflicts between kernel-local and x86_64.config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I made some notes about building a custom kernel [1] that might help
you . 
I recommend use mock, not rpmbuild to build a kernel 


[1]
https://www.serjux.com/build_kernel/build_kernel.txt



On Sun, 2019-11-24 at 11:00 -0700, stan wrote:
> I use the src.rpm from rawhide kernels to build a kernel custom
> configured for my hardware in F31, and with a local patch, using the
> old rpmbuild method. For rc5 this worked, when I tried rc7 it didn't.
> And rc8 is failing with the same error.  The error message is this:
> scripts/gen_compile_commands.py: updating
> Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-aarch64.config 
> ... done
> Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-armv7hl-
> lpae.config ... done
> Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-armv7hl.config 
> ... done
> Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-i686.config
> ... done
> Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-ppc64le.config 
> ... done
> Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-s390x.config
> ... done
> Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-x86_64.config
> ... Found misconfigured config items, please set them to an
> appropriate value
> /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-
> 0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-
> x86_64.config.orig:4359:warning: override:
> PSTORE_LZ4HC_COMPRESS_DEFAULT changes choice state
> 
> So, kernel-local is not overriding the default kernel
> configuration.  I
> think it should; so whatever is checking the configuration
> consistency
> has a bug, I think.
> 
> Here is where it happens in the build process:
> + ./process_configs.sh -w -n -c kernel 5.4.0
> error: Bad exit status from /var/tmp/rpm-tmp.sEsDIh (%prep)
>     extra tokens at the end of %else directive in line 618:  %else #
> released_kernel
> 
>     extra tokens at the end of %endif directive in line 627:  %endif
> # released_kernel
> 
>     Macro expanded in comment on line 701: %{rpmversion}-
> %{distro_build}.tar.bz2
> 
>     Macro expanded in comment on line 702: %{rpmversion}-
> %{distro_build}.tar.bz2
> 
>     Macro expanded in comment on line 710: %{rpmversion}-redhat.patch
> 
>     Bad exit status from /var/tmp/rpm-tmp.sEsDIh (%prep)
> 
> Should I open a bugzilla for this?
> 
> Thanks.
> _______________________________________________
> kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: 
> https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
-- 
Sérgio M. B.
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux