[elrepo] kernel-ml build instructions

Andrew Gurinovich altmind at gmail.com
Tue Aug 28 21:08:03 EDT 2018


Hello.
I would like to rebuild the whole elrepo with custom compiler flags for
personal use.
Can you please suggest, how the rpms are being build right now?
When I'm trying to rpmbuild from spec files, there are no sources in
/home/user/rpmbuild
When I'm trying to build kernel-ml, there is no config file.

Am I supposed to fetch somewhere sources for every package manually?
How is kernel-ml built right now? What config file do you use?
Does elrepo have any kind of CI that re-builds rpms regularly?

Thank you!




# pwd
/home/user/src/elrepo/packages/primus/el7

# rpmbuild -v -bb --clean ./primus.spec
error: File /home/user/rpmbuild/SOURCES/primus-master.zip: No such file or
directory


# cp /boot/config-4.18.5-1.el7.elrepo.x86_64
/home/user/rpmbuild/SOURCES/config-4.14.13-x86_64
# pwd
/home/user/src/elrepo/packages/kernel-ml/el7

# rpmbuild -v -bb --clean ./kernel-ml-4.14.spec
                            Executing(%prep): /bin/sh -e
/var/tmp/rpm-tmp.XNqCuM


+ umask 022
+ cd /home/user/rpmbuild/BUILD
+ cd /home/user/rpmbuild/BUILD
+ rm -rf kernel-ml-4.14.13
+ /usr/bin/mkdir -p kernel-ml-4.14.13
+ cd kernel-ml-4.14.13
+ /usr/bin/xz -dc /home/user/rpmbuild/SOURCES/linux-4.14.13.tar.xz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/mv linux-4.14.13 linux-4.14.13-1.el7.centos.x86_64
+ pushd linux-4.14.13-1.el7.centos.x86_64
+ /usr/bin/cp /home/user/rpmbuild/SOURCES/config-4.14.13-x86_64 .
+ for C in 'config-*-x86_64*'
+ /usr/bin/cp config-4.14.13-x86_64 .config
+ /usr/bin/make -s ARCH=x86_64 listnewconfig
+ grep -E '^CONFIG_'
.config:3876:warning: symbol value 'm' invalid for GPIO_MB86S7X
.config:4764:warning: symbol value 'm' invalid for RADIO_SI470X
.config:6643:warning: symbol value 'm' invalid for INTEL_PMC_CORE
+ '[' -s .newoptions ']'
+ cat .newoptions
CONFIG_CROSS_COMPILE
CONFIG_IRQ_DOMAIN_DEBUG
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.XNqCuM (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.XNqCuM (%prep)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elrepo.org/pipermail/elrepo/attachments/20180828/ad3a5818/attachment.html>


More information about the elrepo mailing list