SPECS: kernel-vanilla.spec - hardlink over copy speedup from kerne...
glen
glen at pld-linux.org
Fri Dec 15 18:38:28 CET 2006
Author: glen Date: Fri Dec 15 17:38:28 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- hardlink over copy speedup from kernel.spec
- partial adapter
---- Files affected:
SPECS:
kernel-vanilla.spec (1.23 -> 1.24)
---- Diffs:
================================================================
Index: SPECS/kernel-vanilla.spec
diff -u SPECS/kernel-vanilla.spec:1.23 SPECS/kernel-vanilla.spec:1.24
--- SPECS/kernel-vanilla.spec:1.23 Fri Dec 15 09:56:36 2006
+++ SPECS/kernel-vanilla.spec Fri Dec 15 18:38:22 2006
@@ -51,20 +51,20 @@
%define alt_kernel vanilla
+%define _basever 2.6.19
+%define _postver .1
+%define _rel 1
+%define _rc %{nil}
Summary: The Linux kernel (the core of the Linux operating system)
Summary(de): Der Linux-Kernel (Kern des Linux-Betriebssystems)
Summary(fr): Le Kernel-Linux (La partie centrale du systeme)
Summary(pl): Jądro Linuksa
Name: kernel-%{alt_kernel}
-%define _basever 2.6.19
-%define _postver .1
-%define _rel 1
Version: %{_basever}%{_postver}
Release: %{_rel}
Epoch: 3
License: GPL v2
Group: Base/Kernel
-%define _rc %{nil}
#define _rc -rc6
#Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing/linux-%{_basever}%{_rc}.tar.bz2
Source0: http://www.kernel.org/pub/linux/kernel/v2.6/linux-%{_basever}.tar.bz2
@@ -760,13 +760,19 @@
install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{ver}
install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{ver_rel}{,smp}
+# 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
+
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
+for i in "" smp; do
if [ -e $RPM_BUILD_ROOT/lib/modules/%{ver_rel}$i ] ; then
rm -f $RPM_BUILD_ROOT/lib/modules/%{ver_rel}$i/build
ln -sf %{_prefix}/src/linux-%{ver} \
@@ -777,7 +783,7 @@
ln -sf linux-%{ver} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{alt_kernel}
-find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{ver}/" ";"
+find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a$l "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{ver}/" ";"
cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{ver}
@@ -1262,6 +1268,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.24 2006/12/15 17:38:22 glen
+- hardlink over copy speedup from kernel.spec
+- partial adapter
+
Revision 1.23 2006/12/15 08:56:36 shadzik
- rel 1; seems stable
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/kernel-vanilla.spec?r1=1.23&r2=1.24&f=u
More information about the pld-cvs-commit
mailing list