On Donnerstag, 19. März 2020, 16:03:57 CET wrote Marcus Hüwe:
On 2020-03-19 15:44:37 +0100, Jakub Olczyk wrote:
I am still very new to the OBS ecosystem and I couldn't find information about building sets of packages (depending on each other) locally in a way that for example `mock` (where you can use the `--chain` option for that). Is it possible to build set of packages locally without sending the information to build.opensuse.org?
It depends a bit what "sending the information" actually means... You can use "osc build ..." to perform a local build of a package. If you have a set of packages, you have to manually "derive" the build order for the set of packages.
Let's assume you have the packags A, B, C, D, E. A depends on packages from openSUSE Tumbleweed B depends on A + packages from openSUSE Tumbleweed E depends on D + packages from openSUSE Tumbleweed D depends on A, C + packages from openSUSE Tumbleweed C depends on packages from openSUSE Tumbleweed
In this case, a potential build order would be A, B, C, D, E (or C, A, D, E, B) etc.
Once, you have the build order, you can use osc to build the packages locally:
$> cd package $> osc build --alternative-project openSUSE:Factory snapshot x86_64 \ -k /dir/where/to/store/built/packages \ -p /dir/where/to/store/built/packages
Note that this will send some "information", like the spec file (or any other build description) + the dependency information retrieved from the packages stored in /dir/where/to/store/built/packages, to the OBS.
It will not be stored though. But Marcus is right, this information will go over wire and root user admins of OBS may be able to read it for a very short amount of time. -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org