Kernel rebuild failling on Centos 7: missing libbpf-devel and dwarves rpm too old

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



Hi,


I'm trying to rebuild the kernel specifically on Centos7 from src.rpm but some packages are missing or too old. I managed to get them and compile on Centos8 though. Any advice?


# yumdownloader --source kernel.src

# rpm -ivh ./kernel-4.18.0-348.20.1.el7.src.rpm

#  rpmbuild -bb --target=`uname -m`  ~/rpmbuild/SPECS/kernel.spec
Building target platforms: x86_64
Building for target x86_64
error: Failed build dependencies:
    libbpf-devel is needed by kernel-4.18.0-348.20.1.el7.x86_64
    rpm < 4.13.0.1-19 conflicts with kernel-4.18.0-348.20.1.el7.x86_64
    dwarves < 1.13 conflicts with kernel-4.18.0-348.20.1.el7.x86_64

# rpm -q dwarves
dwarves-1.10-1.el7.x86_64

# rpm -q rpm
rpm-4.11.3-48.el7_9.x86_64

# yum search libbpf-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: de.mirrors.clouvider.net
 * centos-sclo-rh: ftp.tu-chemnitz.de
 * centos-sclo-sclo: centos.mirrors.psw.services
 * epel: ftp.uni-kl.de
 * extras: mirror.imt-systems.com
 * updates: centos.mirror.iphh.net
Warning: No matches found for: libbpf-devel
No matches found

# yum info rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: de.mirrors.clouvider.net
 * centos-sclo-rh: ftp.tu-chemnitz.de
 * centos-sclo-sclo: mirror.softaculous.com
 * epel: mirror.nextlayer.at
 * extras: mirror.imt-systems.com
 * updates: centos.mirror.iphh.net
Installed Packages
Name        : rpm
Arch        : x86_64
Version     : 4.11.3
Release     : 48.el7_9
Size        : 2.5 M
Repo        : installed

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux