Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
Re: [opensuse-buildservice] OBS private instance: download on demand trouble
Am 04.07.2012 23:09, schrieb Marcus Hüwe:
On 2012-07-04 19:42:01 +0200, Martin Weber wrote:
Hi all,

I have set up a company-wide yum repository which contains non-free
third-party rpms.
Following
<http://web.archiveorange.com/archive/v/6r2m99UGJvpq5Wh5EajT>, I
created a project to download these third party rpms in order to use
them to build our own packages.

The DoD configuration seems to be correct, the file :fill.solv ist created.
But the scheduler log always shows a 'bad config' for that repo and
the build of our own packages fails with unresolved packages from
the DoD project.

How does your project setup look like? I would do the following:
- create a project A for your distro

Sorry, it's not quite clear to me what 'your distro' does mean.

- create a second project B with your third party rpms and add something
like this to the project meta:

<repository name="standard">
<path project="A" repository="standard"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>

Normally there's no need to make any changes to B's project config
(the one you edit via "osc meta prjconf B").

Just add B's repo to another project in order to build against the
third party rpms.

I have one project that should download and provide the third party (RHEL) rpms for OBS:

<project name="FTI-mirror-RHEL5">
<title>Mirrored RPMs from FTI and Ccur</title>
<download baseurl="http://blah/rpms-mirror/RHEL5/"; arch="i586" metafile="primary.xml" mtype="rpmmd"/>
<build>
<disable/>
</build>
<repository name="standard">
<arch>i586</arch>
</repository>

My second project contains the packages I want to build. I added the first project in order to get the missing third party dependencies:

<project name="Razorcat:testing">
<description>Untested and instable builds</description>
<build>
<disable repository="FTI-mirror-RHEL5_standard"/>
</build>
<publish>
<disable repository="FTI-mirror-RHEL5_standard"/>
</publish>
<repository name="CentOS_5">
<path repository="standard" project="openSUSE.org:CentOS:CentOS-5"/>
<!-- added to get cmake 2.6.4++ ->
<path repository="CentOS_5" project="openSUSE.org:openSUSE:Tools"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
<repository name="CentOS_6">
<path repository="standard" project="openSUSE.org:CentOS:CentOS-6"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
<repository name="FTI-mirror-RHEL5_standard">
<path repository="standard" project="FTI-mirror-RHEL5"/>
<arch>i586</arch>
</repository>
<repository name="openSUSE_12.1">
<path repository="standard" project="openSUSE.org:openSUSE:12.1"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
<repository name="RHEL_5">
<path repository="standard" project="openSUSE.org:RedHat:RHEL-5"/>
<!-- added to get cmake 2.6.4++ ->
<path repository="RHEL_5" project="openSUSE.org:openSUSE:Tools"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>
<repository name="RHEL_6">
<path repository="standard" project="openSUSE.org:RedHat:RHEL-6"/>
<arch>i586</arch>
<arch>x86_64</arch>
</repository>

For the first project, the follwing files exist on the build maschine:
/srv/obs/build/FTI-mirror-RHEL5/standard/i586/:
drwxr-xr-x 2 obsrun obsrun 80 Jul 4 14:59 :full
-rw-r--r-- 1 obsrun obsrun 7664 Jul 4 19:44 :full.solv
-rw-r--r-- 1 obsrun obsrun 36 Jul 4 19:46 :schedulerstate

/srv/obs/build/FTI-mirror-RHEL5/standard/i586/:full:
-rw-r--r-- 1 obsrun obsrun 184654 May 8 11:21 primary.xml

primary.xml was copied from the download URL http://blah/rpms-mirror/RHEL5/repodata/primary.xml.gz.
Under the download URL, the following directories exists:
i386/ <-- these should go to /srv/obs/build/FTI-mirror-RHEL5/standard/i586/, correct?
noarch/
repodata/
x86_64/
A typical entry in primary.xml looks like
<package type="rpm">
<name>ccur-kernheaders</name>
<arch>i386</arch> <-- Note this is not i586
In addition, primary.xml also lists rpms with <arch>noarch</arch>.

obs-admin --dump-cache shows
'ccur-kernheaders' => {
'source' => 'ccur-kernheaders',
'arch' => 'i386',
'path' => 'i386/ccur-kernheaders-5.1-20080414.i386.rpm'

Martin


--
E-Mails sollten Text sein, Text und nur Text.
Wenn Gott gewollt hätte, dass E-Mails in HTML geschrieben würden,
endeten Gebete traditionell mit </amen>.
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups