summaryrefslogtreecommitdiff
path: root/docs/HACKING.md
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-10-27 11:30:47 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2021-10-27 12:27:14 +0100
commitb43ed972e0f9d0fa7b188ffdd97b64333718bd3e (patch)
tree9b6b67bc7fcbe2d0195842e2343026d288e69cbd /docs/HACKING.md
parent390a3076656fb02aec1f275e3e5188f8ab1bc966 (diff)
downloadsystemd-b43ed972e0f9d0fa7b188ffdd97b64333718bd3e.tar.gz
docs: Extend builddep instructions to include more distros
Diffstat (limited to 'docs/HACKING.md')
-rw-r--r--docs/HACKING.md17
1 files changed, 12 insertions, 5 deletions
diff --git a/docs/HACKING.md b/docs/HACKING.md
index f435d02b25..7e1a9f86eb 100644
--- a/docs/HACKING.md
+++ b/docs/HACKING.md
@@ -72,18 +72,25 @@ Cache=<full-path-to-package-manager-cache> # (e.g. /var/cache/dnf)
If you want to do a local build without mkosi, most distributions also provide
very simple and convenient ways to install all development packages necessary
-to build systemd. For example, on Fedora the following command line should be
-sufficient to install all of systemd's build dependencies:
+to build systemd:
-```
-# dnf builddep systemd
+```sh
+# Fedora
+$ sudo dnf builddep systemd
+# Debian/Ubuntu
+$ sudo apt-get builddep systemd
+# Arch
+$ sudo pacman install asp
+$ asp checkout systemd
+$ cd systemd/trunk
+$ makepkg -seoc
```
Putting this all together, here's a series of commands for preparing a patch
for systemd (this example is for Fedora):
```sh
-$ sudo dnf builddep systemd # install build dependencies
+# Install build dependencies (see above)
$ sudo dnf install mkosi # install tool to quickly build images
$ git clone https://github.com/systemd/systemd.git
$ cd systemd