[packages/test/newkernel] - make build_kernels global, to avoid macro loop in _alt_kernel expansion

baggins baggins at pld-linux.org
Thu Oct 24 14:28:55 CEST 2013


commit c356a9c75882eae71c7fe9b385fe73e0865ddc6d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Oct 24 14:28:18 2013 +0200

    - make build_kernels global, to avoid macro loop in _alt_kernel expansion

 test.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/test.spec b/test.spec
index f834e37..d3241ca 100644
--- a/test.spec
+++ b/test.spec
@@ -1,3 +1,4 @@
+%trace
 # Module for kernels <2.6.24
 #
 # Conditional build:
@@ -15,9 +16,9 @@
 exit 1
 %endif
 %undefine	with_userspace
-%define		_build_kernels		%{alt_kernel}
+%global		_build_kernels		%{alt_kernel}
 %else
-%define		_build_kernels		%{?build_kernels:,%{?build_kernels}}
+%global		_build_kernels		%{?build_kernels:,%{?build_kernels}}
 %endif
 
 %define		kpkg	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%kernel_pkg ; done)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/test.git/commitdiff/c356a9c75882eae71c7fe9b385fe73e0865ddc6d



More information about the pld-cvs-commit mailing list