all_arch_configs can be undefined

"all_arch_configs" is not defined on architectures where only the kernel-headers
package is built, like on s390 and sparc/sparcv9.

workarounds Jarod's 5b65297cef
This commit is contained in:
Dan Horák 2011-01-25 09:50:05 +01:00
parent 89a0c6d9b9
commit cfdfd01df8

View File

@ -1120,6 +1120,7 @@ cp %{SOURCE15} .
# Dynamically generate kernel .config files from config-* files # Dynamically generate kernel .config files from config-* files
make -f %{SOURCE20} VERSION=%{version} configs make -f %{SOURCE20} VERSION=%{version} configs
%if %{?all_arch_configs:1}%{!?all_arch_configs:0}
#if a rhel kernel, apply the rhel config options #if a rhel kernel, apply the rhel config options
%if 0%{?rhel} %if 0%{?rhel}
for i in %{all_arch_configs} for i in %{all_arch_configs}
@ -1137,6 +1138,7 @@ do
./merge.pl %{SOURCE1000} $i.tmp > $i ./merge.pl %{SOURCE1000} $i.tmp > $i
rm $i.tmp rm $i.tmp
done done
%endif
ApplyOptionalPatch git-linus.diff ApplyOptionalPatch git-linus.diff