SOURCES: rpm.macros - fix !dist_kernel with non-built tree

qboosh qboosh at pld-linux.org
Wed Sep 3 16:53:45 CEST 2008


Author: qboosh                       Date: Wed Sep  3 14:53:45 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix !dist_kernel with non-built tree

---- Files affected:
SOURCES:
   rpm.macros (1.476 -> 1.477) 

---- Diffs:

================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.476 SOURCES/rpm.macros:1.477
--- SOURCES/rpm.macros:1.476	Fri Aug 29 18:01:03 2008
+++ SOURCES/rpm.macros	Wed Sep  3 16:53:39 2008
@@ -1312,7 +1312,7 @@
 	[ -z "$PATCH_SH" ] || echo "$PATCH_SH" | %__spec_build_shell	\
 	set -x															\
 																	\
-	%if %{with dist_kernel}											\
+	%if %{with dist_kernel}	|| %(test -f %{_kernelsrcdir}/scripts/bin2c ; echo $?)	\
 		%{__make} -j1 -C %{_kernelsrcdir} prepare scripts			\\\
 			%{-p*} %{-P*}											\\\
 			%{MakeOpts}												\
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.476&r2=1.477&f=u



More information about the pld-cvs-commit mailing list