[elrepo] help with trying to make a 4.9 LT based on the 4.4LT spec file

Jerry Scharf jerry at soundhound.com
Tue Jun 13 15:10:27 EDT 2017


Hi,

I am hoping to get help with this. I have been using el-repo rpms to 
install the 4.4lt kernels.

4.9 introduced BBF tcp congestion avoidance, which is a major 
improvement and will have a real positive impact on our traffic. The 
kernel.org folks have designated 4.9 as the next lt kernel after 4.4. So 
I want to get that running similar to el-repo 4.4 works now.

I copied the 4.4 spec file, modified it for 4.9. I grabbed 4.9.31 from 
kernel.org, unpacked it and built a new config file starting with the 
4.4.71 config plus my few changes. On the same machine, 4.4.71 builds 
successfully.

I tried rpmbuild -bb and it made it most of the way through before dying.

It fails with:
File not found: 
/root/rpmbuild/BUILDROOT/kernel-lt-4.9.31-1.el7.centos.x86_64/usr/lib64/libcpupower.so.0.0.0

find finds it numbered as 0.0.1 and not 0.0.0

find ../BUILDROOT/ -name libcpupower.so\*
../BUILDROOT/kernel-lt-4.9.31-1.el7.centos.x86_64/usr/lib64/libcpupower.so.0
../BUILDROOT/kernel-lt-4.9.31-1.el7.centos.x86_64/usr/lib64/libcpupower.so.0.0.1
../BUILDROOT/kernel-lt-4.9.31-1.el7.centos.x86_64/usr/lib64/libcpupower.so


file libcpupower.so.0
libcpupower.so.0: symbolic link to `libcpupower.so.0.0.1'

Why is this different and why is it dying? It only asks for 
libcpupower.0 in the requires file and that is there.

thanks in advance,
jerry

here is the last part of the build log before it dies:

Processing files: kernel-lt-tools-4.9.31-1.el7.centos.x86_64
Provides: config(kernel-lt-tools) = 4.9.31-1.el7.centos cpufreq-utils = 
1:009-0.6.p1 cpufrequtils = 1:009-0.6.p1 cpupowerutils = 1:009-0.6.p1 
kernel-lt-tools = 4.9.31-1.el7.centos kernel-lt-tools(x86-64) = 
4.9.31-1.el7.centos
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) 
libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) 
libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.6)(64bit) 
libc.so.6(GLIBC_2.7)(64bit) libcpupower.so.0()(64bit) libm.so.6()(64bit) 
libm.so.6(GLIBC_2.2.5)(64bit) libncursesw.so.5()(64bit) 
libpanelw.so.5()(64bit) libpci.so.3()(64bit) 
libpci.so.3(LIBPCI_3.0)(64bit) libpci.so.3(LIBPCI_3.3)(64bit) 
libpci.so.3(LIBPCI_3.5)(64bit) libpthread.so.0()(64bit) 
libpthread.so.0(GLIBC_2.2.5)(64bit) librt.so.1()(64bit) 
librt.so.1(GLIBC_2.2.5)(64bit) libtinfo.so.5()(64bit) rtld(GNU_HASH)
Conflicts: kernel-tools < 4.9.31-1.el7.centos
Obsoletes: cpupowerutils < 1:009-0.6.p1 cpufreq-utils < 1:009-0.6.p1 
cpufrequtils < 1:009-0.6.p1 cpuspeed < 1:2.0
Processing files: kernel-lt-tools-libs-4.9.31-1.el7.centos.x86_64


here are the diffs in the spec file (I stripped off the changlog):
*** kernel-lt-4.4.spec	2017-06-07 06:49:24.000000000 -0700
--- kernel-lt-4.9.spec	2017-06-12 14:01:27.440900353 -0700
***************
*** 1,7 ****
   %global __spec_install_pre %{___build_pre}

   # Define the version of the Linux Kernel Archive tarball.
! %define LKAver 4.4.71

   # Define the buildid, if required.
   #define buildid .
--- 1,7 ----
   %global __spec_install_pre %{___build_pre}

   # Define the version of the Linux Kernel Archive tarball.
! %define LKAver 4.9.31

   # Define the buildid, if required.
   #define buildid .
***************
*** 774,1411 ****
   %endif

   %changelog
- * Wed Jun 07 2017 Alan Bartlett <ajb at elrepo.org> - 4.4.71-1
- - Updated with the 4.4.71 source tarball.
- - [https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.71]
...

-- 
Jerry Scharf, Soundhound DevOps
"What could possibly go wrong?"


More information about the elrepo mailing list