Re: Building custom kernel using rpmbuild with spec file gives error on cpufreq.h Is it meaningful?

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

 



On Sun, Mar 5, 2023 at 12:48 PM stan via kernel
<kernel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi,
> I just built a kernel from the 6.2.2 fc37 src.rpm.  It built fine, but
> at the end there was a missing file warning for cpufreq.h.  I build the
> header files when building the kernel, so I would think that would be
> included in them.
>
> The error:
> + exit 0
>     File not found: /home/stan/rpmbuild/BUILDROOT/kernel-6.2.2-300.20230305.fc37.x86_64/usr/include/cpufreq.h
>     absolute symlink: /lib/modules/6.2.2-300.20230305.fc37.x86_64/build -> /usr/src/kernels/6.2.2-300.20230305.fc37.x86_64
>
> The second one is always there, a warning about a workaround as I
> understand it.
>
> I find this in the SPEC file:
> %if %{with_headers}
> %files headers
> /usr/include/*
> %exclude %{_includedir}/cpufreq.h
> %endif
>
> When I search the BUILD tree I find:
> ./linux-6.2.2-300.20230305.fc37.x86_64/include/linux/cpufreq.h
> ./linux-6.2.2-300.20230305.fc37.x86_64/include/linux/sched/cpufreq.h
>
> It seems that these are there but the above stanza in the SPEC file is
> excluding them.  Is there a reason?  Is it harmless?
>
> There is another cpufreq.h present,
> ./linux-6.2.2-300.20230305.fc37.x86_64/tools/power/cpupower/lib/cpufreq.h
> but I am not building tools, so it is probably being ignored.  Do I
> have to build tools to pick this up?

More detail on this is in
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1903 but
for Fedora, we ship cpufreq.h in kernel-tools, not kernel-headers.
_______________________________________________
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, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux