Third Party Repository for building

Hello everybody,

is it possible to add third party repositories to let the suse build service search for dependencies during the building process?
Maybe in the Spec file or in the build service configuration?

Thanks already,
Chris

[QUOTE=strati1991;2732201is it possible to add third party repositories to let the suse build service search for dependencies during the building process?
Maybe in the Spec file or in the build service configuration?
[/QUOTE]
Yes, in the project metadata.

In the Web Interface click on “Repositories”, and then on “Edit Repositories”. On the next page there should be an “Add an additional path to this repository”, where you can choose an additional repo to build against.

Or edit the project metadata manually, either via “osc meta -e prj” or by clicking on “Advanced”->“Meta” in the WebUI.
You should add something like this:

  <repository name="openSUSE_13.2" rebuild="local" block="local">
    <path project="KDE:Frameworks5" repository="openSUSE_13.2"/>
   <path project="KDE:Qt5" repository="openSUSE_13.2"/>
    <arch>i586</arch>
    <arch>x86_64</arch>
  </repository>

The red lines in this example mean that this repo builds against KDE:Frameworks5/openSUSE_13.2 and KDE:Qt5/openSUSE_13.2

If you just need one or two packages, you could also branch (or aggregate) them in your repo.

On Wed 14 Oct 2015 12:36:01 PM CDT, strati1991 wrote:

Hello everybody,

is it possible to add third party repositories to let the suse build
service search for dependencies during the building process?
Maybe in the Spec file or in the build service configuration?

Thanks already,
Chris

Hi
No, all sources need to be local, except a _service which runs prior to
building, but during the actual building, no.

What are you trying to build?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 | GNOME 3.10.1 | 3.12.44-52.18-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

I am trying to build a meteorologic visualization program that needs special geographical repositories:(

On Wed 14 Oct 2015 12:46:01 PM CDT, wolfi323 wrote:

strati1991;2732201is it possible to add third party repositories to let
the suse build service search for dependencies during the building
process? Maybe in the Spec file or in the build service configuration?
[/QUOTE Wrote:
>
> Yes, in the project metadata.
>
> In the Web Interface click on “Repositories”, and then on “Edit
> Repositories”. On the next page there should be an “Add an additional
> path to this repository”, where you can choose an additional repo to
> build against.
>
> Or edit the project metadata manually, either via “osc meta -e prj” or
> by clicking on “Advanced”->“Meta” in the WebUI.
> You should add something like this:[color=green]
> >
Code:

> > <repository name=“openSUSE_13.2” rebuild=“local”
block=“local”> <path project=“KDE:Frameworks5”
repository=“openSUSE_13.2”/> > > <path project=“KDE:Qt5”
repository=“openSUSE_13.2”/> > <arch>i586</arch>
> <arch>x86_64</arch>
>
> </repository>
>

> >
> The red lines in this example mean that this repo builds against
> KDE:Frameworks5/openSUSE_13.2 and KDE:Qt5/openSUSE_13.2

Hi
I was thinking sources, not packages…

I’m assuming if the repo is added it will pull packages from both
repositories on install from the defined repo?

Could that potentially lead to conflicts for building/installing
especially if something in either repo is blocked…


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 | GNOME 3.10.1 | 3.12.44-52.18-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

No, it will pull packages from the defined repo during build.
This can imply a dependency on that repo for the resulting package then too, of course.

Could that potentially lead to conflicts for building/installing
especially if something in either repo is blocked…

Yes, it can.

And what “special geographical repositories” do you mean?
Are they available on OBS?

These two:
http://download.opensuse.org/repositories/Application:/Geo/openSUSE_13.X/
and

http://download.opensuse.org/repositories/home:/SStepke/openSUSE_13.X/

Then add Application:Geo and home:SStepke like I describe, or branch the necessary packages in your repo.

For 13.2 this would look like this:

  <repository name="openSUSE_13.2">
    <path project="Application:Geo" repository="openSUSE_13.2"/>
    <path project="home:SStepke" repository="openSUSE_13.2"/>
    <path project="openSUSE:13.2" repository="standard"/>
    <arch>i586</arch>
    <arch>x86_64</arch>
  </repository>

Hi
Perhaps better to just link to the packages required in home:SStepke since some in there link back to Geo…?

Many thanks that was exactly i was searching for! Works!

I see only one package in there that links to Application:Geo, namely hdf5.
And actually this package is disabled anyway for openSUSE 13.1 and up, it’s only built for SLE11 SP2/SP3 and Fedora, RedHat and CentOS (for which Application:Geo is not available at all).

But yes, as home:SStepke only contains a few packages anyway, it might be preferable to branch the one or two needed (which will make them part of your own repo) and not link to the whole repo, as I suggested already.