Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: d/configure gives constructive comments, severity prefix for messages #3071

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 31 additions & 6 deletions debian/configure
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf

while test $# -ne 0; do
case "$1" in
sim|uspace|noauto) echo "$1 is accepted for compatibility, but ignored";;
sim|uspace|noauto) echo "I: Argument $1 is accepted for compatibility, but ignored";;
no-docs) unset ENABLE_BUILD_DOCUMENTATION ;;
*) echo 1>&2 "Unknown option: $1"; exit 99 ;;
*) echo 1>&2 "E: Unknown option: $1"; exit 99 ;;
esac
shift
done
Expand Down Expand Up @@ -109,9 +109,9 @@ case $DISTRIB_NAME in
Debian-10|Debian-10.*|Raspbian-10|Raspbian-10.*)
;;
*)
echo "unknown distribution: $DISTRIB_NAME"
echo "detected dependencies may be incomplete or wrong"
echo "please consider fixing it and submitting a pull request"
echo "W: Unknown distribution: '$DISTRIB_NAME'."
echo " Detected dependencies may be incomplete or wrong."
echo " Please consider fixing it and submitting a pull request."
;;
esac

Expand Down Expand Up @@ -195,4 +195,29 @@ fi


rm -f ../build-stamp
echo "successfully configured for '$DISTRIB_NAME'.."
echo "I: Successfully configured for '$DISTRIB_NAME'."

if which dpkg-checkbuilddeps > /dev/null; then

if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then
a=$(cd .. && dpkg-checkbuilddeps || true)
if [ -n "$a" ]; then
echo "W: To successfully build all of LinuxCNC, install the following build dependencies are mising:\n$a"
echo " The missing packages are auto-installed by"
echo " sudo apt build-dep ."
else
echo "I: No build dependencies missing for complete builds including documentation."
fi
else
a=$(cd .. && dpkg-checkbuilddeps -B || true)
if [ -n "$a" ]; then
echo "I: No dependencies missing for building binaries only."
fi
fi
else
echo "W: Tool to check build-dependenices not found"
echo " You may want to install it as follows:"
echo " sudo apt install dpkg-dev"
echo " and directly execute it like this:"
echo " dpkg-checkbuilddeps"
fi
Loading