I got "user mockbuild does not exist - using root" $ rpm -ivh kernel-5.13.5-200.fc34.src.rpm Updating / installing... 1:kernel-5.13.5-200.fc34 warning: user mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: user mockbuild does not exist - using root > Edit the kernel.spec file and uncomment the #define line and add something like 20210727 to distinguish this kernel from repository kernel. I find at line 107: # define .local, after un-comment it: $ rpmbuild -bp kernel.spec error: line 107: Unknown tag: define buildid .local Thus I undo and continue. > rpmbuild -bb kernel.spec Exit with error: Processing /home/fcc/rpmbuild/BUILD/kernel-5.13.5/linux-5.13.5-200.fc34.x86_64/configs/kernel-5.13.5-s390x.config ... done Processing /home/fcc/rpmbuild/BUILD/kernel-5.13.5/linux-5.13.5-200.fc34.x86_64/configs/kernel-5.13.5-x86_64-debug.config ... Error: Mismatches found in configuration files Found CONFIG_CC_VERSION_TEXT="gcc (scripts/dummy-tools/gcc)" after generation, had CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.1.1 20210531 (Red Hat 11.1.1-3)" in Source tree Found CONFIG_GCC_VERSION=200000 after generation, had CONFIG_GCC_VERSION=110101 in Source tree Found CONFIG_AS_VERSION=25000 after generation, had CONFIG_AS_VERSION=23501 in Source tree Found CONFIG_LD_VERSION=25000 after generation, had CONFIG_LD_VERSION=23501 in Source tree error: Bad exit status from /var/tmp/rpm-tmp.wCoe4b (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.wCoe4b (%prep) _______________________________________________ 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 Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure