Skip to content

Commit 0aa0611

Browse files
committed
debian: Adjusting d/{configure,control,rules.in} to rebase and review
1 parent b3fbbf9 commit 0aa0611

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

debian/changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ linuxcnc (1:2.10.0~pre0) UNRELEASED; urgency=medium
88
depend on defaults passed by dpkg-buildflags on
99
Ubuntu and Debian (LP: #2104012)
1010

11+
[ Steffen Moeller ]
12+
* Introducing DEB_BUILD_OPTIONS to d/rules.
13+
1114
-- Pushkar Kulkarni <pushkar.kulkarni@canonical.com> Mon, 24 Mar 2025 20:50:08 +0530
1215

1316
linuxcnc (1:2.9.4-2) unstable; urgency=medium

debian/configure

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,25 @@ set -e
1414

1515
usage () {
1616
P=${0##*/}
17-
cat <<EOF
17+
cat 1>&2 <<EOF
1818
$P: Set up debian/ files to build for a particular kernel
1919
2020
Usage:
2121
$P [no-docs]
2222
2323
Extra options:
24-
no-docs
25-
Skip building documentation
24+
25+
no-docs|nodocs
26+
Skip building documentation.
27+
Debian packaging will not know about documentation to exist at all.
28+
If configured regularly but with the intent not to build the docs,
29+
run "DEB_BUILD_OPTIONS=nodocs dpkg-buildpackage".
30+
31+
sim|uspace|noauto
32+
Accepted for compatibility, but now ignored.
33+
34+
-h|--help|help
35+
Show this help.
2636
EOF
2737
}
2838

@@ -47,8 +57,12 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf
4757
while test $# -ne 0; do
4858
case "$1" in
4959
sim|uspace|noauto) echo "$1 is accepted for compatibility, but ignored";;
50-
no-docs) unset ENABLE_BUILD_DOCUMENTATION ;;
51-
*) echo 1>&2 "Unknown option: $1"; exit 99 ;;
60+
help|-h|--help) usage; exit 0 ;;
61+
no-docs|nodocs) unset ENABLE_BUILD_DOCUMENTATION ;;
62+
*) echo 1>&2 "Unknown option: $1"
63+
echo 1>&2
64+
usage
65+
exit 99 ;;
5266
esac
5367
shift
5468
done
@@ -201,5 +215,9 @@ echo "I: You can now start the build of LinuxCNC Debian packages."
201215
echo " To build and test everything: fakeroot debian/rules binary"
202216
echo " To build the executables and man pages only: fakeroot debian/rules binary-arch"
203217
echo " To avoid tests: DEB_BUILD_OPTIONS=nocheck debian/rules binary"
204-
echo " To avoid documentation: DEB_BUILD_OPTIONS=nodocs fakeroot debian/rules binary"
218+
if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then
219+
echo " To avoid documentation: DEB_BUILD_OPTIONS=nodocs fakeroot debian/rules binary"
220+
else
221+
echo " Building of documentation is disabled."
222+
fi
205223
echo " The DEB_BUILD_OPTIONS environment variable also works with dpkg-buildpackage."

debian/control.top.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ Build-Depends:
5151
yapps2
5252
Build-Depends-Indep:
5353
@DOC_DEPENDS@,
54-
Build-Conflicts-Arch: libjpeg8-dev, libtiff4-dev
54+
Build-Conflicts-Arch:
55+
libjpeg8-dev,
56+
libtiff4-dev
5557
Standards-Version: 4.7.2
5658
Homepage: https://linuxcnc.org/
5759
Vcs-Browser: https://github.com/LinuxCNC/linuxcnc

debian/rules.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ override_dh_auto_install-arch:
9090
override_dh_installdocs-arch:
9191
ifeq (,$(filter nodocs,$(DEB_BUILD_OPTIONS)))
9292
# Sample configs go in `usr/share/doc/linuxcnc` (not `.../doc/@MAIN_PACKAGE_NAME@`)
93-
# because that's where the `linuxcnc` launcher script looks for them,
93+
# because that's where the `linuxcnc` launcher script looks for them,
9494
# and that's inconvenient to change.
9595
dh_installdocs --doc-main-package=@MAIN_PACKAGE_NAME@ --package=@MAIN_PACKAGE_NAME@
9696
mkdir -p debian/@MAIN_PACKAGE_NAME@/usr/share/doc/linuxcnc

0 commit comments

Comments
 (0)