Skip to content

Commit 55af36c

Browse files
author
CKI KWF Bot
committed
Merge: spec: fix spec warning for /usr/include/ynl
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1159 JIRA: https://issues.redhat.com/browse/RHEL-101712 With the combination of build options "--without realtime --without debug --without debuginfo --without ynl --without doc" in ELN, build produces a warning: RPM build warnings: File not found: /builddir/build/BUILD/kernel-6.16.0-build/BUILDROOT/usr/include/ynl Put the exclude behind %{with_ynl} to avoid the warning. Signed-off-by: Alexandra Hájková <ahajkova@redhat.com> Approved-by: Jan Stancek <jstancek@redhat.com> Approved-by: Patrick Talbert <ptalbert@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents 6c0ed2b + 5ee82c7 commit 55af36c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

redhat/kernel.spec.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,8 +3934,10 @@ fi\
39343934
%files headers
39353935
/usr/include/*
39363936
%exclude %{_includedir}/cpufreq.h
3937+
%if %{with_ynl}
39373938
%exclude %{_includedir}/ynl
39383939
%endif
3940+
%endif
39393941

39403942
%if %{with_cross_headers}
39413943
%files cross-headers

0 commit comments

Comments
 (0)