From f82e8153489b1efcc9de8b7aa95add3ad060ada6 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 20 Jul 2020 09:11:06 +0200 Subject: [PATCH] HACKING: Document how to build distribution packages Fixes #13970 Closes #14370 --- HACKING.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/HACKING.md b/HACKING.md index 79a3fef21..c0f4c6fa3 100644 --- a/HACKING.md +++ b/HACKING.md @@ -221,6 +221,21 @@ that `make install` not write outside that prefix, then specify the installation of Cockpit that does not work without further tweaking. For advanced users only. +## Build distribution packages + +Instead of a direct `make install` as above, you can also build distribution +packages and install them. This is generally more robust, as they upgrade and +remove cleanly, and don't interfere with distribution packages in `/usr`. + +In a Fedora/RHEL build environment you can build binary RPMs with + + tools/make-rpms --quick + +In a Debian/Ubuntu build environment you can build debs with + + cp -r tools/debian . + dpkg-buildpackage -us -uc -b + ## Contributing a change Make a pull request on github.com with your change. All changes get