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: 4821395c6a
("- Avoid variable expansion in the spec here-documents during build")
This commit is contained in:
parent
ec3e4597c0
commit
83d917e644
@ -255,7 +255,7 @@ fi
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF > %{buildroot}/%{_sysconfdir}/profile.d/dpdk-sdk-%{_arch}.csh
|
cat << EOF > %{buildroot}/%{_sysconfdir}/profile.d/dpdk-sdk-%{_arch}.csh
|
||||||
if ( ! \$RTE_SDK ) then
|
if ( ! \$?RTE_SDK ) then
|
||||||
setenv RTE_SDK "%{sdkdir}"
|
setenv RTE_SDK "%{sdkdir}"
|
||||||
setenv RTE_TARGET "%{target}"
|
setenv RTE_TARGET "%{target}"
|
||||||
setenv RTE_INCLUDE "%{incdir}"
|
setenv RTE_INCLUDE "%{incdir}"
|
||||||
|
Loading…
Reference in New Issue
Block a user