]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Extend builddep instructions to include more distros
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Oct 2021 10:30:47 +0000 (11:30 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Oct 2021 11:27:14 +0000 (12:27 +0100)
docs/HACKING.md

index f435d02b25ae960a9d81e0f3b885c6b9fa25f0b6..7e1a9f86eb72a663eaec5f15ac9245f75a1444e4 100644 (file)
@@ -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