Mailinglist Archive: opensuse-buildservice (45 mails)

< Previous Next >
Re: [opensuse-buildservice] use kiwi result as build-requirement
On Samstag, 30. August 2014, 20:12:35 wrote Matwey V. Kornilov:

Is it possible to use kiwi build products as build-requirements for rpm

Not directly. But what you can do is providing a wrapper script,
which is using a hook at the end of the kiwi build and packages
the resulting files into an rpm.

That one can be used as any other rpm afterwards inside of OBS.

To create such a hook, you need to write a script and package
it as


executable. When this file is installed during kiwi builds (eg.
via Support: $your_package line in prjconf), it is executed
at the end of the kiwi build.

The script needs to build the rpm, eg. via calling rpmbuild
and placing the result into $TOPDIR/OTHER/ directory.

($TOPDIR should be set in the environment)

You should create an own repository in your project
to build this and configure it in your prjconf like this:

%if "%_repository" == "images-rpm"
Type: kiwi
Repotype: rpm-md
Patterntype: none
Support: kiwi-post-run-package


Adrian Schroeter
email: adrian@xxxxxxx

SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284
(AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
This Thread
  • No further messages