Remove with_extra switch
The with_extra switch was originally added with the addition of the modules-extra subpackage. However, it never really worked. If you build with it disabled, the subpackage is omitted but the modules that would be included in it would still be built. That can lead to errors further in the build when we're moving things around in the -core and -modules subpackages. Since it doesn't actually save build time at all, and it leads to build failures for no real gain, drop it.
This commit is contained in:
parent
27d7c4756a
commit
219cc0ba42
13
kernel.spec
13
kernel.spec
@ -94,8 +94,6 @@ Summary: The Linux kernel
|
|||||||
%define with_debug %{?_without_debug: 0} %{?!_without_debug: 1}
|
%define with_debug %{?_without_debug: 0} %{?!_without_debug: 1}
|
||||||
# kernel-headers
|
# kernel-headers
|
||||||
%define with_headers %{?_without_headers: 0} %{?!_without_headers: 1}
|
%define with_headers %{?_without_headers: 0} %{?!_without_headers: 1}
|
||||||
# kernel-modules-extra
|
|
||||||
%define with_extra %{?_without_extra: 0} %{?!_without_extra: 1}
|
|
||||||
# perf
|
# perf
|
||||||
%define with_perf %{?_without_perf: 0} %{?!_without_perf: 1}
|
%define with_perf %{?_without_perf: 0} %{?!_without_perf: 1}
|
||||||
# tools
|
# tools
|
||||||
@ -925,9 +923,7 @@ Provides: kernel-%{?1:%{1}-}core-uname-r = %{KVERREL}%{?1:+%{1}}\
|
|||||||
%endif\
|
%endif\
|
||||||
%{expand:%%kernel_devel_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
|
%{expand:%%kernel_devel_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
|
||||||
%{expand:%%kernel_modules_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
|
%{expand:%%kernel_modules_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
|
||||||
%if %{with_extra}\
|
|
||||||
%{expand:%%kernel_modules_extra_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
|
%{expand:%%kernel_modules_extra_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
|
||||||
%endif\
|
|
||||||
%{expand:%%kernel_debuginfo_package %{?1:%{1}}}\
|
%{expand:%%kernel_debuginfo_package %{?1:%{1}}}\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
@ -1694,10 +1690,8 @@ BuildKernel() {
|
|||||||
rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
|
rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%if %{with_extra}
|
|
||||||
# Call the modules-extra script to move things around
|
# Call the modules-extra script to move things around
|
||||||
%{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
|
%{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
|
||||||
%endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate the kernel-core and kernel-modules files lists
|
# Generate the kernel-core and kernel-modules files lists
|
||||||
@ -2067,9 +2061,7 @@ fi\
|
|||||||
%define kernel_variant_post(v:r:) \
|
%define kernel_variant_post(v:r:) \
|
||||||
%{expand:%%kernel_devel_post %{?-v*}}\
|
%{expand:%%kernel_devel_post %{?-v*}}\
|
||||||
%{expand:%%kernel_modules_post %{?-v*}}\
|
%{expand:%%kernel_modules_post %{?-v*}}\
|
||||||
%if %{with_extra}\
|
|
||||||
%{expand:%%kernel_modules_extra_post %{?-v*}}\
|
%{expand:%%kernel_modules_extra_post %{?-v*}}\
|
||||||
%endif\
|
|
||||||
%{expand:%%kernel_variant_posttrans %{?-v*}}\
|
%{expand:%%kernel_variant_posttrans %{?-v*}}\
|
||||||
%{expand:%%post %{?-v*:%{-v*}-}core}\
|
%{expand:%%post %{?-v*:%{-v*}-}core}\
|
||||||
%{-r:\
|
%{-r:\
|
||||||
@ -2230,9 +2222,7 @@ fi
|
|||||||
%{expand:%%files %{?2:%{2}-}devel}\
|
%{expand:%%files %{?2:%{2}-}devel}\
|
||||||
%defattr(-,root,root)\
|
%defattr(-,root,root)\
|
||||||
/usr/src/kernels/%{KVERREL}%{?2:+%{2}}\
|
/usr/src/kernels/%{KVERREL}%{?2:+%{2}}\
|
||||||
%if %{with_extra}\
|
|
||||||
%{expand:%%files %{?2:%{2}-}modules-extra}\
|
%{expand:%%files %{?2:%{2}-}modules-extra}\
|
||||||
%endif\
|
|
||||||
%defattr(-,root,root)\
|
%defattr(-,root,root)\
|
||||||
/lib/modules/%{KVERREL}%{?2:+%{2}}/extra\
|
/lib/modules/%{KVERREL}%{?2:+%{2}}/extra\
|
||||||
%if %{with_debuginfo}\
|
%if %{with_debuginfo}\
|
||||||
@ -2269,6 +2259,9 @@ fi
|
|||||||
# ||----w |
|
# ||----w |
|
||||||
# || ||
|
# || ||
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 02 2014 Josh Boyer <jwboyer@fedoraproject.org>
|
||||||
|
- Remove with_extra switch
|
||||||
|
|
||||||
* Mon Sep 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc3.git0.1
|
* Mon Sep 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc3.git0.1
|
||||||
- Linux v3.17-rc3
|
- Linux v3.17-rc3
|
||||||
- Disable debugging options.
|
- Disable debugging options.
|
||||||
|
Loading…
Reference in New Issue
Block a user