提交 857f0893 编写于 作者: W weijun

8028479: runNameEquals still cannot precisely detect if a usable native krb5 is available

Reviewed-by: xuelei
上级 56f3e884
...@@ -57,10 +57,10 @@ case "$OS" in ...@@ -57,10 +57,10 @@ case "$OS" in
FILESEP="/" FILESEP="/"
NATIVE=true NATIVE=true
# Not all *nix has native GSS libs installed # Not all *nix has native GSS libs installed
krb5-config --libs gssapi 2> /dev/null krb5-config --libs 2> /dev/null
if [ $? != 0 ]; then if [ $? != 0 ]; then
# Fedora has a different path # Fedora has a different path
/usr/kerberos/bin/krb5-config --libs gssapi 2> /dev/null /usr/kerberos/bin/krb5-config --libs 2> /dev/null
if [ $? != 0 ]; then if [ $? != 0 ]; then
NATIVE=false NATIVE=false
fi fi
...@@ -97,6 +97,15 @@ if [ "${NATIVE}" = "true" ] ; then ...@@ -97,6 +97,15 @@ if [ "${NATIVE}" = "true" ] ; then
if [ $? != 0 ] ; then if [ $? != 0 ] ; then
echo "Native provider fails" echo "Native provider fails"
EXIT_STATUS=1 EXIT_STATUS=1
if [ "$OS" = "Linux" -a `arch` = "x86_64" ]; then
${TESTJAVA}${FILESEP}bin${FILESEP}java -XshowSettings:properties -version 2> allprop
cat allprop | grep sun.arch.data.model | grep 32
if [ "$?" = "0" ]; then
echo "Running 32-bit JDK on 64-bit Linux. Maybe only 64-bit library is installed."
echo "Please manually check if this is the case. Treated as PASSED now."
EXIT_STATUS=0
fi
fi
fi fi
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册