From 08224fdd4b65c02411e790ba4c43e8bf0782ceff Mon Sep 17 00:00:00 2001 From: ng0 Date: Fri, 22 Feb 2019 20:58:18 +0000 Subject: [PATCH] gnunet-bugreport: add checks for pkg_add, some fixes --- contrib/scripts/gnunet-bugreport | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/contrib/scripts/gnunet-bugreport b/contrib/scripts/gnunet-bugreport index f17cb7636..e7d9caa7e 100755 --- a/contrib/scripts/gnunet-bugreport +++ b/contrib/scripts/gnunet-bugreport @@ -24,6 +24,22 @@ else echo "gcc : Not Found"; fi +TEST=`$WHICH cc 2>/dev/null` +if test -n "$TEST"; then + VERS=`cc --version 2>/dev/null | head -n 1` + echo "cc : $VERS" +else + echo "cc : Not Found"; +fi + +TEST=`$WHICH c++ 2>/dev/null` +if test -n "$TEST"; then + VERS=`c++ --version 2>/dev/null | head -n 1` + echo "c++ : $VERS" +else + echo "c++ : Not Found"; +fi + TEST=`$WHICH gmake 2>/dev/null` if test -n "$TEST" ; then gmake --version 2>/dev/null |\ @@ -176,6 +192,16 @@ else fi fi +TEST=`$WHICH pkg_add 2> /dev/null` +if test -n "$TEST"; then + VERSION_UNISTRING=`pkg_info -Nb libunistring` + VERSION_GMP=`pkg_info -Nb gmp` + echo "libunistring :" + echo "$VERSION_UNISTRING" + echo "GMP :" + echo "$VERSION_GMP" +fi + TEST=`$WHICH gettext 2> /dev/null` if test -n "$TEST"; then gettext --version | head -n1 2> /dev/null | \ -- 2.25.1