From b3e4994349808746c17339cb427c600d4c6b2dec Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Aug 14 2017 10:48:13 +0000 Subject: [PATCH 1/2] Show how to check local builds on Fedora --- diff --git a/source/development/building-modules/building-local.rst b/source/development/building-modules/building-local.rst index 9c54e1b..806e0da 100644 --- a/source/development/building-modules/building-local.rst +++ b/source/development/building-modules/building-local.rst @@ -26,3 +26,21 @@ To build your module, run a command similar to the following: 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. + +To test your local build environment on Fedora, the ``httpd`` module is a +reasonable example module to start with:: + + $ fedpkg clone --branch f26 modules/haproxy + $ cd httpd + $ sudo mbs-build local + +.. note:: + + As an interim bootstrapping technique, many of the F26 Boltron modules will + download and cache around 15k RPMs from Koji as potential build dependencies. + ``haproxy`` is recommended as an example module specifically because it + *doesn't* do that and instead only downloads what it needs to build the RPMs + it contains. + + Replacing that bulk download with proper build dependency management more + generally is part of the work being undertaken in F27. From 08d8e0a5f076be33ab480099855f3398ad93ff28 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Aug 14 2017 10:50:33 +0000 Subject: [PATCH 2/2] Explicitly install missing runtime dependency --- diff --git a/source/development/building-modules/building-local.rst b/source/development/building-modules/building-local.rst index 806e0da..4c30dd4 100644 --- a/source/development/building-modules/building-local.rst +++ b/source/development/building-modules/building-local.rst @@ -9,14 +9,18 @@ On **Fedora rawhide** and **Fedora 26**, install it by: :: - $ sudo dnf install module-build-service + $ sudo dnf install mock-scm module-build-service + +``mock-scm`` currently needs to be installed explicitly +due to a missing runtime dependency declaration in the +``module-build-service`` RPM. On **Fedora 25**, install the latest version from `https://koji.fedoraproject.org/koji/packageinfo?packageID=23564`: :: - $ sudo dnf install + $ sudo dnf install mock-scm To build your module, run a command similar to the following: