From 8ecfd5552aab63f9af75e44c65088dc9d6f55df5 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Jun 26 2017 12:44:33 +0000 Subject: document only one way for building modules locally The container is way out of date and the module-build-service package is widely available. --- diff --git a/source/development/building-modules/building-local.rst b/source/development/building-modules/building-local.rst index edb1877..9e12dbe 100644 --- a/source/development/building-modules/building-local.rst +++ b/source/development/building-modules/building-local.rst @@ -1,45 +1,25 @@ Building modules locally ============================ -To build a modulemd, you need to have the `Module Build Service `__ installed on your system. There are two ways of achieving that: +To build a modulemd, you need to have the `Module Build Service `__ installed on your system. -1. Installing the `module-build-service package `__ with all its dependencies. -2. Using a `pre-built docker image and a helper script `__. - -Both options provide the same result, so choose whichever you like better. - -Option 1: module-build-service package --------------------------------------- - -On **Fedora rawhide** and **Fedora 26**, just install it by: +On **Fedora rawhide** and **Fedora 26**, install it by: :: $ sudo dnf install module-build-service -On **Fedora 25**, just install the latest version from `https://koji.fedoraproject.org/koji/packageinfo?packageID=23564`: +On **Fedora 25**, install the latest version from `https://koji.fedoraproject.org/koji/packageinfo?packageID=23564`: :: $ sudo dnf install -To build your modulemd, run a command similar to the following: +To build your module, run a command similar to the following: :: $ sudo mbs-build local -An output will be a yum/dnf repository in the /tmp directory. - -Option 2: docker image and a helper script ------------------------------------------- - -With this option you don’t need to install all the dependencies on your system, but it requires you to setenforce 0 before the build. :-( - -You only need to clone the `asamalik/build-module repository on GitHub `__ and use the helper script as follows: - -:: - - $ build_module ./my-module ./results - -An output will be a yum/dnf repository in the patch you have specified. +An output will be a yum/dnf repository beneath the modulebuild directory in the +home of the user. Right now, using sudo, this will be root.