This commit is contained in:
Jakub Jelinek 2005-07-08 10:21:35 +00:00
parent 24d9119125
commit 2f520cac16

View File

@ -477,13 +477,13 @@ if gcc -v 2>&1 | grep -q 'gcc version 3.[0123]'; then
BuildFlags="$BuildFlags -finline-limit=2000" BuildFlags="$BuildFlags -finline-limit=2000"
fi fi
EnableKernel="--enable-kernel=%{enablekernel}" EnableKernel="--enable-kernel=%{enablekernel}"
echo "$BuildFlags" > ../BuildFlags echo "$BuildFlags" > BuildFlags
echo "$GCC" > ../Gcc echo "$GCC" > Gcc
AddOns=`cd .. && echo */configure | sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkaio\)\( \|$\)!!g;s! \+$!!;s! !,!g;s!^!,!;/^,\*$/d'` AddOns=`echo */configure | sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkaio\)\( \|$\)!!g;s! \+$!!;s! !,!g;s!^!,!;/^,\*$/d'`
%ifarch %{rtkaioarches} %ifarch %{rtkaioarches}
AddOns=,rtkaio$AddOns AddOns=,rtkaio$AddOns
%endif %endif
echo "$AddOns" > ../AddOns echo "$AddOns" > AddOns
build_nptl() build_nptl()
{ {
@ -656,7 +656,7 @@ find $RPM_BUILD_ROOT -type f -or -type l |
for n in %{_prefix}/share %{_prefix}/include %{_prefix}/lib/locale; do for n in %{_prefix}/share %{_prefix}/include %{_prefix}/lib/locale; do
find ${RPM_BUILD_ROOT}${n} -type d | \ find ${RPM_BUILD_ROOT}${n} -type d | \
grep -v '%{_prefix}/share$' | \ grep -v '%{_prefix}/share$' | \
grep -v '\(%{_mandir}\|%{_infodir}\)' | \ grep -v '%{_infodir}' | \
sed "s/^/%dir /" >> rpm.filelist.in sed "s/^/%dir /" >> rpm.filelist.in
done done
@ -697,14 +697,12 @@ grep -v '%{_prefix}/%{_lib}/lib.*_p.a' rpm.filelist.full |
grep '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist >> devel.filelist grep '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist >> devel.filelist
grep '%{_prefix}/%{_lib}/.*\.o' < rpm.filelist >> devel.filelist grep '%{_prefix}/%{_lib}/.*\.o' < rpm.filelist >> devel.filelist
grep '%{_prefix}/%{_lib}/lib.*\.so' < rpm.filelist >> devel.filelist grep '%{_prefix}/%{_lib}/lib.*\.so' < rpm.filelist >> devel.filelist
grep '%{_mandir}' < rpm.filelist >> devel.filelist
mv rpm.filelist rpm.filelist.full mv rpm.filelist rpm.filelist.full
grep -v '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist.full | grep -v '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist.full |
grep -v '%{_prefix}/%{_lib}/.*\.o' | grep -v '%{_prefix}/%{_lib}/.*\.o' |
grep -v '%{_prefix}/%{_lib}/lib.*\.so'| grep -v '%{_prefix}/%{_lib}/lib.*\.so'|
grep -v '%{_prefix}/%{_lib}/linuxthreads' | grep -v '%{_prefix}/%{_lib}/linuxthreads' |
grep -v '%{_mandir}' |
grep -v 'nscd' > rpm.filelist grep -v 'nscd' > rpm.filelist
grep '%{_prefix}/bin' < rpm.filelist >> common.filelist grep '%{_prefix}/bin' < rpm.filelist >> common.filelist
@ -781,7 +779,7 @@ ln -sf /%{_lib}/ld-linux-ia64.so.2 $RPM_BUILD_ROOT/lib/ld-linux-ia64.so.2
# Increase timeouts # Increase timeouts
export TIMEOUTFACTOR=16 export TIMEOUTFACTOR=16
echo ====================TESTING========================= echo ====================TESTING=========================
cd build-%{_target_cpu}-linuxnptl cd build-%{nptl_target_cpu}-linuxnptl
make %{?_smp_mflags} -k check PARALLELMFLAGS=-s 2>&1 | tee check.log || : make %{?_smp_mflags} -k check PARALLELMFLAGS=-s 2>&1 | tee check.log || :
cd .. cd ..
%if %{buildxen} %if %{buildxen}