Skip to content

Commit

Permalink
docs: rodw-au on building Debian packages
Browse files Browse the repository at this point in the history
  • Loading branch information
smoe committed Sep 11, 2024
1 parent ab53bd4 commit 82ebabb
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docs/src/code/building-linuxcnc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ For the impatient, try this:
----
$ git clone https://github.com/LinuxCNC/linuxcnc.git linuxcnc-source-dir
$ cd linuxcnc-source-dir/src
$ ./debian/configure
$ sudo apt-get build-dep .
$ DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -B
$ ./autogen.sh
$ ./configure --with-realtime=uspace
$ make
----

That will probably fail! That doesn't make you a bad person,
Expand Down Expand Up @@ -240,10 +240,17 @@ delivery to end users, and when building the software for a machine
that does not have the build environment installed, or that does not have
internet access.

To build packages is primarily useful when packaging the software for delivery to end users.
Developers among themselves exchange only the source code, likely supported by the LinuxCNC GitHub repository referenced below.
Also, when building the software for a machine that doesn't have the build environment installed,
or that doesn't have internet access, one happily accepts a prebuilt package.
For the impatient, try this:

[source,console]
----
$ sudo apt-get install build-essential
$ git clone https://github.com/LinuxCNC/linuxcnc.git linuxcnc-source-dir
$ cd linuxcnc-source-dir/src
$ ./debian/configure
$ sudo apt-get build-dep .
$ DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -B
----

Building Debian packages is performed with the `dpkg-buildpackage` tool that is
provided by the `dpkg-dev` package. Its execution comes with a series of prerequisites
Expand Down

0 comments on commit 82ebabb

Please sign in to comment.