From 03f4eff287a003d7d1a4f09f71ffd66406d88a90 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Sun, 21 Jul 2024 15:18:32 +0200 Subject: [PATCH] xml/obs_local_building.xml: improve readability As a first-time reader I was confused by the current text, so I quickly came up with some edits to make the chapter more intelligible. Signed-off-by: Nathan Cutler --- xml/book-obs-user-guide.xml | 2 +- ...sc_building.xml => obs_local_building.xml} | 37 ++++++++++++------- 2 files changed, 25 insertions(+), 14 deletions(-) rename xml/{osc_building.xml => obs_local_building.xml} (80%) diff --git a/xml/book-obs-user-guide.xml b/xml/book-obs-user-guide.xml index fe79d836..69e158f8 100644 --- a/xml/book-obs-user-guide.xml +++ b/xml/book-obs-user-guide.xml @@ -63,7 +63,7 @@ Usage - + diff --git a/xml/osc_building.xml b/xml/obs_local_building.xml similarity index 80% rename from xml/osc_building.xml rename to xml/obs_local_building.xml index aee4b590..30222a26 100644 --- a/xml/osc_building.xml +++ b/xml/obs_local_building.xml @@ -4,7 +4,7 @@ %entities; ]> - @@ -12,8 +12,8 @@ - Every build which happens on the server can also be executed locally in the same environment using - the osc tool. All what you need is to checkout the source code and build the build recipe. The + Every build that happens on the server can also be executed locally in the same environment using + the osc tool. All you need is to check out the source code and run osc build to run the build recipe. The following explains it for RPM format, but it works for any. osc will download needed binaries and execute the local build. @@ -21,8 +21,19 @@ toms 2017-08-18: Also integrate content from obs_build_containers.xml - - Generic build options + + Generic Local Build Options + + Frequently, local builds are undertaken on local checkouts of source packages that + already reside on an &obsa; server - for example, to test changes before commiting + them to the server. + + + It is also possible to trigger a local build in an arbitrary local directory containing + sources, without any corresponding source package on an &obsa; server. (However, osc + will still need a connection to the server in order to download build dependencies.) + The following text describes what the source directory should contain, at a minimum. + Independent of the build format you need at least one source file as build description. The file name and structure is format specific. You can find some supported formats described below. @@ -49,8 +60,9 @@ - For existing packages, this is already the case. To build an - existing package, the general procedure is as follows: + In the typical case of source packages locally checked out from an &obsa; + server, this is already the case. To build an existing package, the general + procedure is as follows: @@ -83,8 +95,8 @@ - The simplest way to run a build is just to call the build command. osc will try - to detect your installed OS and build for it if possible. + The simplest way to run a build is just to call the osc build + command. osc will try to detect your installed OS and build for it if possible. &prompt.user;osc build @@ -95,8 +107,7 @@ - It will download the required dependencies and execute the build script. Therefore it needs to ask for root - permissions in most cases. + It will download the required dependencies and execute the build script. Therefore it needs to ask for root permissions in most cases. @@ -141,8 +152,8 @@ The buildroot was: /var/tmp/build-root/openSUSE_Tumbleweed-x86_64 - - Advanced Build Environment Handling + + Advanced Local Build Environment Handling The default build environment for local builds is usually chroot. While this is simplest environment and is therefore easy and fast to handle, it has also a number of shortcomings. For one it is