Skip to content
Open
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
41 changes: 36 additions & 5 deletions debian/configure
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ 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";;
help|-h|--help) usage; exit 0 ;;
no-docs|nodocs) unset ENABLE_BUILD_DOCUMENTATION ;;
*) echo 1>&2 "Unknown option: $1"
Expand Down Expand Up @@ -123,9 +123,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 @@ -210,7 +210,7 @@ fi

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

echo
echo "I: You can now start the build of LinuxCNC Debian packages."
echo " To build and test everything: fakeroot debian/rules binary"
echo " To build the executables and man pages only: fakeroot debian/rules binary-arch"
Expand All @@ -221,3 +221,34 @@ else
echo " Building of documentation is disabled."
fi
echo " The DEB_BUILD_OPTIONS environment variable also works with dpkg-buildpackage."
echo

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

if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then
a=$(cd .. && dpkg-checkbuilddeps 2>&1 | sed -e "s/.*error: //" || true)
if [ -n "$a" ]; then
echo "W: To successfully build all of LinuxCNC, install the following build dependencies are mising:"
echo " $a"
echo
echo "I: 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 2>&1 | sed -e "s/.*error: //" || true)
if [ -n "$a" ]; then
echo "W: To successfully build LinuxCNC without documentation, the following build dependencies are mising:"
echo " $a"
else
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