SPECS (LINUX_2_6_16): kernel.spec - try hardlinking source if poss...
glen
glen at pld-linux.org
Fri Dec 1 12:11:23 CET 2006
Author: glen Date: Fri Dec 1 11:11:23 2006 GMT
Module: SPECS Tag: LINUX_2_6_16
---- Log message:
- try hardlinking source if possible
- /usr/src/linux symlink is not packaged, so don't make it
---- Files affected:
SPECS:
kernel.spec (1.441.2.1558.2.49 -> 1.441.2.1558.2.50)
---- Diffs:
================================================================
Index: SPECS/kernel.spec
diff -u SPECS/kernel.spec:1.441.2.1558.2.49 SPECS/kernel.spec:1.441.2.1558.2.50
--- SPECS/kernel.spec:1.441.2.1558.2.49 Thu Nov 30 21:22:10 2006
+++ SPECS/kernel.spec Fri Dec 1 12:11:17 2006
@@ -1153,7 +1153,14 @@
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT
+
umask 022
+# test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition
+if cp -al COPYING $RPM_BUILD_ROOT/COPYING 2>/dev/null; then
+ l=l
+ rm -f $RPM_BUILD_ROOT/COPYING
+fi
export DEPMOD=%DepMod
@@ -1163,7 +1170,7 @@
KERNEL_BUILD_DIR=`pwd`
%if %{with up} || %{with smp}
-cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
+cp -a$l $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
%endif
for i in "" smp ; do
@@ -1175,9 +1182,7 @@
fi
done
-ln -sf linux%{_subname}-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux%{_subname}
-
-find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux%{_subname}-%{version}/" ";"
+find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a$l "{}" "$RPM_BUILD_ROOT/usr/src/linux%{_subname}-%{version}/" ";"
cd $RPM_BUILD_ROOT%{_prefix}/src/linux%{_subname}-%{version}
@@ -1695,6 +1700,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.441.2.1558.2.50 2006/12/01 11:11:17 glen
+- try hardlinking source if possible
+- /usr/src/linux symlink is not packaged, so don't make it
+
Revision 1.441.2.1558.2.49 2006/11/30 20:22:10 glen
- BR /sbin/depmod instead of module-init-tools due vserver-packages provides module-init-tools
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/kernel.spec?r1=1.441.2.1558.2.49&r2=1.441.2.1558.2.50&f=u
More information about the pld-cvs-commit
mailing list