Make build/ point to /usr/src/kernels instead of being relative (rhbz 788125)
This commit is contained in:
parent
7c0775b48b
commit
bddef7d222
12
kernel.spec
12
kernel.spec
@ -54,7 +54,7 @@ Summary: The Linux kernel
|
|||||||
# For non-released -rc kernels, this will be appended after the rcX and
|
# For non-released -rc kernels, this will be appended after the rcX and
|
||||||
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
|
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
|
||||||
#
|
#
|
||||||
%global baserelease 1
|
%global baserelease 2
|
||||||
%global fedora_build %{baserelease}
|
%global fedora_build %{baserelease}
|
||||||
|
|
||||||
# base_sublevel is the kernel version we're starting with and patching
|
# base_sublevel is the kernel version we're starting with and patching
|
||||||
@ -1783,7 +1783,12 @@ BuildKernel() {
|
|||||||
# Move the devel headers out of the root file system
|
# Move the devel headers out of the root file system
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
|
mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
|
||||||
mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
|
mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
|
||||||
ln -sf ../../..$DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
|
|
||||||
|
# This is going to create a broken link during the build, but we don't use
|
||||||
|
# it after this point. We need the link to actually point to something
|
||||||
|
# when kernel-devel is installed, and a relative link doesn't work across
|
||||||
|
# the F17 UsrMove feature.
|
||||||
|
ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
|
||||||
|
|
||||||
# prune junk from kernel-devel
|
# prune junk from kernel-devel
|
||||||
find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
|
find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
|
||||||
@ -2305,6 +2310,9 @@ fi
|
|||||||
# ||----w |
|
# ||----w |
|
||||||
# || ||
|
# || ||
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 07 2012 Josh Boyer <jwboyer@redhat.com>
|
||||||
|
- Make build/ point to /usr/src/kernels instead of being relative (rhbz 788125)
|
||||||
|
|
||||||
* Tue Feb 07 2012 Josh Boyer <jwboyer@redhat.com>
|
* Tue Feb 07 2012 Josh Boyer <jwboyer@redhat.com>
|
||||||
- Linux 3.3-rc2-git5 (upstream 8597559a78e1cde158b999212bc9543682638eb1)
|
- Linux 3.3-rc2-git5 (upstream 8597559a78e1cde158b999212bc9543682638eb1)
|
||||||
- Add hfsplus file blessing patches from Matthew Garrett
|
- Add hfsplus file blessing patches from Matthew Garrett
|
||||||
|
Loading…
Reference in New Issue
Block a user