From 83d917e6443791b1bedf961da8a5ef01019a941b Mon Sep 17 00:00:00 2001 From: Eric Kinzie Date: Sat, 16 Feb 2019 13:14:11 -0500 Subject: [PATCH] fix test for RTE_SDK variable in csh profile In csh, undefined variables do not expand to the empty string. Use the $? csh substitution to check if the variable is defined. Fixes: 4821395c6a5f ("- Avoid variable expansion in the spec here-documents during build") --- dpdk.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpdk.spec b/dpdk.spec index 02e70b3..8d7e35b 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -255,7 +255,7 @@ fi EOF cat << EOF > %{buildroot}/%{_sysconfdir}/profile.d/dpdk-sdk-%{_arch}.csh -if ( ! \$RTE_SDK ) then +if ( ! \$?RTE_SDK ) then setenv RTE_SDK "%{sdkdir}" setenv RTE_TARGET "%{target}" setenv RTE_INCLUDE "%{incdir}"