Skip to content

Commit 7dd29be

Browse files
committed
build: d/configure: severity prefix, instructions
1 parent b8f90d7 commit 7dd29be

File tree

1 file changed

+36
-5
lines changed

1 file changed

+36
-5
lines changed

debian/configure

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf
5656

5757
while test $# -ne 0; do
5858
case "$1" in
59-
sim|uspace|noauto) echo "$1 is accepted for compatibility, but ignored";;
59+
sim|uspace|noauto) echo "I: Argument $1 is accepted for compatibility, but ignored";;
6060
help|-h|--help) usage; exit 0 ;;
6161
no-docs|nodocs) unset ENABLE_BUILD_DOCUMENTATION ;;
6262
*) echo 1>&2 "Unknown option: $1"
@@ -123,9 +123,9 @@ case $DISTRIB_NAME in
123123
Debian-10|Debian-10.*|Raspbian-10|Raspbian-10.*)
124124
;;
125125
*)
126-
echo "unknown distribution: $DISTRIB_NAME"
127-
echo "detected dependencies may be incomplete or wrong"
128-
echo "please consider fixing it and submitting a pull request"
126+
echo "W: Unknown distribution: '$DISTRIB_NAME'."
127+
echo " Detected dependencies may be incomplete or wrong."
128+
echo " Please consider fixing it and submitting a pull request."
129129
;;
130130
esac
131131

@@ -210,7 +210,7 @@ fi
210210

211211
rm -f ../build-stamp
212212
echo "I: Successfully configured for '$DISTRIB_NAME'."
213-
213+
echo
214214
echo "I: You can now start the build of LinuxCNC Debian packages."
215215
echo " To build and test everything: fakeroot debian/rules binary"
216216
echo " To build the executables and man pages only: fakeroot debian/rules binary-arch"
@@ -221,3 +221,34 @@ else
221221
echo " Building of documentation is disabled."
222222
fi
223223
echo " The DEB_BUILD_OPTIONS environment variable also works with dpkg-buildpackage."
224+
echo
225+
226+
if which dpkg-checkbuilddeps > /dev/null; then
227+
228+
if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then
229+
a=$(cd .. && dpkg-checkbuilddeps 2>&1 | sed -e "s/.*error: //" || true)
230+
if [ -n "$a" ]; then
231+
echo "W: To successfully build all of LinuxCNC, install the following build dependencies are mising:"
232+
echo " $a"
233+
echo
234+
echo "I: Missing packages are auto-installed by"
235+
echo " sudo apt build-dep ."
236+
else
237+
echo "I: No build dependencies missing for complete builds including documentation."
238+
fi
239+
else
240+
a=$(cd .. && dpkg-checkbuilddeps -B 2>&1 | sed -e "s/.*error: //" || true)
241+
if [ -n "$a" ]; then
242+
echo "W: To successfully build LinuxCNC without documentation, the following build dependencies are mising:"
243+
echo " $a"
244+
else
245+
echo "I: No dependencies missing for building binaries only."
246+
fi
247+
fi
248+
else
249+
echo "W: Tool to check build-dependenices not found"
250+
echo " You may want to install it as follows:"
251+
echo " sudo apt install dpkg-dev"
252+
echo " and directly execute it like this:"
253+
echo " dpkg-checkbuilddeps"
254+
fi

0 commit comments

Comments
 (0)