View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001536 | channel: kernel/el9 | kernel-ml | public | 2025-06-09 20:22 | 2025-07-28 15:11 |
| Reporter | toracat | Assigned To | toracat | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Summary | 0001536: Build kernel-ml-6.16-rcX | ||||
| Description | Linux-6.16-rc1 was released on 2025-06-08. Build kernel-ml-6.16-rcX (we cover el8, el9 and el10 here). | ||||
| Tags | No tags attached. | ||||
|
|
In el8 and el9, we see build error: error: Installed (but unpackaged) file(s) found: /etc/cpupower-service.conf /usr/lib64/systemd/system/cpupower.service /usr/libexec/cpupower The fix for this appears to be in the pipe upstream: https://lkml.org/lkml/2025/5/16/1300 |
|
|
In el8 but not in el9, a bunch of files are "listed twice": File listed twice: /etc/modprobe.d/ax25-blacklist.conf File listed twice: /etc/modprobe.d/l2tp_eth-blacklist.conf File listed twice: /etc/modprobe.d/l2tp_netlink-blacklist.conf File listed twice: /etc/modprobe.d/l2tp_ppp-blacklist.conf File listed twice: /etc/modprobe.d/netrom-blacklist.conf File listed twice: /etc/modprobe.d/rds-blacklist.conf File listed twice: /etc/modprobe.d/rose-blacklist.conf File listed twice: /etc/modprobe.d/sch_choke-blacklist.conf File listed twice: /etc/modprobe.d/sch_drr-blacklist.conf File listed twice: /etc/modprobe.d/sch_gred-blacklist.conf File listed twice: /etc/modprobe.d/sch_mqprio-blacklist.conf File listed twice: /etc/modprobe.d/sch_multiq-blacklist.conf File listed twice: /etc/modprobe.d/sch_netem-blacklist.conf File listed twice: /etc/modprobe.d/sch_qfq-blacklist.conf File listed twice: /etc/modprobe.d/sch_red-blacklist.conf File listed twice: /etc/modprobe.d/sch_sfb-blacklist.conf File listed twice: /etc/modprobe.d/sctp-blacklist.conf File listed twice: /etc/modprobe.d/sctp_diag-blacklist.conf |
|
|
The error noted in 10438 comes from the kernel-tools sub-package. Disabling it leads to a successful build. Add this to the spec file: ### temporary workaround to build 6.16-rc1 %define with_tools 0 |
|
|
Yet another patch has been submitted upstream to be included in 6.16-rc2. |
|
|
"Yet another patch" pulled and added to linux-pm.git/fixes. [Note added] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d08293ef1ede6a558b9cf2577aa34473f6298ca7 Commit: d08293ef1ede6a558b9cf2577aa34473f6298ca7 Merge an urgent cpupower utility fix for 6.16-rc1 from Shuah Khan: "Add unitdir variable for specifying the location to install systemd service units instead of installing under ${libdir}/systemd/system which doesn't work on some distributions." * tag 'linux-cpupower-6.16-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux: cpupower: split unitdir from libdir in Makefile |
|
|
linux-6.16-rc2 is out. Same build errors except the following one is now gone: /usr/lib64/systemd/system/cpupower.service [Note] The patch added to -rc2 contained this fix (tools/power/cpupower/Makefile): - - rm -f $(DESTDIR)${libdir}/systemd/system/cpupower.service + - rm -f $(DESTDIR)${unitdir}/cpupower.service |
|
|
With '%define with_tools 0' added, linux-6.16-rc2 was built with no errors. |
|
|
There is a better fix. The upstream patch corrects the location of cpupower.service in the "rm" command. We cannot change the Makefile (no source code modification), but can achieve the same in the spec file. Remove the two files referenced in the build error, like so, [code] %if %{with_tools} %{__make} -s -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} rm -f $RPM_BUILD_ROOT%{_sysconfdir}/cpupower-service.conf <=== Add rm -f $RPM_BUILD_ROOT%{_libexecdir}/cpupower <=== Add [/code] The above change allowed a build to proceed and the two -tools related packages have been built. |
|
|
[Note] The -rcX series of kernel-ml are available for testing from https://elrepo.org/people/toracat/devel/kernel-ml/ . |
|
|
Use this code: %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} %{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/cpupower-service.conf %{__rm} -f $RPM_BUILD_ROOT%{_libexecdir}/cpupower |
|
|
linux 6.16 GA is out. el8 and el9 built with no issue. el10 had the following build error: error: Installed (but unpackaged) file(s) found: /usr/lib/systemd/system/cpupower.service Not sure why this error but it was fixed by adding: %{__rm} -f $RPM_BUILD_ROOT%{_unitdir}/cpupower.service to the spec file. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-06-09 20:22 | toracat | New Issue | |
| 2025-06-09 20:22 | toracat | Status | new => assigned |
| 2025-06-09 20:22 | toracat | Assigned To | => toracat |
| 2025-06-09 20:26 | toracat | Note Added: 0010438 | |
| 2025-06-09 20:27 | toracat | Note Added: 0010439 | |
| 2025-06-09 20:30 | toracat | Note Added: 0010440 | |
| 2025-06-10 13:25 | toracat | Note Added: 0010441 | |
| 2025-06-10 20:44 | toracat | Note Added: 0010443 | |
| 2025-06-16 03:33 | toracat | Note Added: 0010445 | |
| 2025-06-16 04:41 | toracat | Note Edited: 0010445 | |
| 2025-06-16 04:42 | toracat | Note Edited: 0010445 | |
| 2025-06-16 04:50 | toracat | Note Added: 0010446 | |
| 2025-06-16 13:12 | toracat | Note Added: 0010447 | |
| 2025-06-16 13:51 | toracat | Note Edited: 0010443 | |
| 2025-06-21 11:20 | toracat | Note Added: 0010459 | |
| 2025-06-22 19:32 | toracat | Note Added: 0010461 | |
| 2025-07-28 15:10 | toracat | Note Added: 0010523 | |
| 2025-07-28 15:11 | toracat | Status | assigned => resolved |
| 2025-07-28 15:11 | toracat | Resolution | open => fixed |