[opensuse-buildservice] Which directory structure under /srv/obs/build for Ubuntu/Debian builds?
Hi, I am experimenting with a local obs and so far I like it quite a lot! I have a question with regard to the directory structure for base packages: The directory tree structure for the base repository packages according to: http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/ope... looks like this: chris@builder:/srv/obs> tree build/ build/ |-- SUSE:SL-10.1 | `-- standard | `-- i586 | | `-- :full | | `-- *.i586.rpm | `-- noarch | | `-- :full | | `-- *.noarch.rpm | `-- x86_64 | `-- :full | `-- *.x86_64.rpm |-- Ubuntu:7.04 | `-- standard ???? My question is: What would be the proper directory structure for an Ubuntu or Debian base repository? Just copy all .deb files from the Debian repository path pool/main into the standard/ dir? A quick hint is much appreciated. many thanks! Chris http://www.acurana.de/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Sat, Jan 19, 2008 at 02:19:51AM +0100, Christopher Lang wrote:
I am experimenting with a local obs and so far I like it quite a lot!
I have a question with regard to the directory structure for base packages:
The directory tree structure for the base repository packages according to: http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/ope...
looks like this:
chris@builder:/srv/obs> tree build/ build/ |-- SUSE:SL-10.1 | `-- standard | `-- i586 | | `-- :full | | `-- *.i586.rpm | `-- noarch | | `-- :full | | `-- *.noarch.rpm | `-- x86_64 | `-- :full | `-- *.x86_64.rpm
This is actually not 100% correct, as what looks like rpm architectures are in reality build architectures. I.e., you have to have the noarch rpms in both i586 and x86_64.
|-- Ubuntu:7.04 | `-- standard ????
My question is: What would be the proper directory structure for an Ubuntu or Debian base repository?
Just copy all .deb files from the Debian repository path pool/main into the standard/ dir?
Yes, that's one solution. Copy them to standard/i586. As an alternative, you can create a ":full.subdirs" file, which can point to subdirectories that should be used. Here's an example |-- SUSE:SL-10.1 | `-- standard | `-- i586 | | `-- :full symbolic link to some directory | | :full.subdirs file containing "i586 noarch" The subdirs entries can't be absolute paths at the moment, which can be considered a bug. Note that if a full tree contains multiple versions of a package it is currently undefined which of them will be used for building. Strange thinks like build cycles may happen. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michael, thanks! that's very helpful! Chris Am Samstag 19 Januar 2008 15:13:38 schrieb Michael Schroeder:
On Sat, Jan 19, 2008 at 02:19:51AM +0100, Christopher Lang wrote:
I am experimenting with a local obs and so far I like it quite a lot!
I have a question with regard to the directory structure for base packages:
The directory tree structure for the base repository packages according to: http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/ openSUSE_10.2#Setup_Initial_Distributions
looks like this:
chris@builder:/srv/obs> tree build/ build/
|-- SUSE:SL-10.1 | `-- standard | `-- i586 | | | `-- :full | | `-- *.i586.rpm | | `-- noarch | | | `-- :full | | `-- *.noarch.rpm | | `-- x86_64 | `-- :full | `-- *.x86_64.rpm
This is actually not 100% correct, as what looks like rpm architectures are in reality build architectures. I.e., you have to have the noarch rpms in both i586 and x86_64.
|-- Ubuntu:7.04 | `-- standard
????
My question is: What would be the proper directory structure for an Ubuntu or Debian base repository?
Just copy all .deb files from the Debian repository path pool/main into the standard/ dir?
Yes, that's one solution. Copy them to standard/i586. As an alternative, you can create a ":full.subdirs" file, which can point to subdirectories that should be used.
Here's an example
|-- SUSE:SL-10.1 | `-- standard | `-- i586 | | | `-- :full symbolic link to some directory | | | | :full.subdirs file containing "i586 noarch"
The subdirs entries can't be absolute paths at the moment, which can be considered a bug.
Note that if a full tree contains multiple versions of a package it is currently undefined which of them will be used for building. Strange thinks like build cycles may happen.
Cheers, Michael.
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, I tested the ":full.subdirs" method as described below and it is working nicely. It even works with (long) relative paths, so it is quite easy to keep a "debmirrored" repository and put all the paths to the deb repository in the :full.subdirs file like this: pool/main pool/main/a pool/main/a/at pool/main/a/acl ... As described in the build server wiki is is necessary to restart the scheduler to make him re-read and cache the new files after one installed the new :full.subdirs file. To create the :full.subdirs content this line is helpful: find -type d | grep './:full/pool/' | sed 's/\.\/:full\///' > ':full.subdirs' cheers Chris Am Samstag 19 Januar 2008 15:13:38 schrieb Michael Schroeder:
On Sat, Jan 19, 2008 at 02:19:51AM +0100, Christopher Lang wrote:
I am experimenting with a local obs and so far I like it quite a lot!
I have a question with regard to the directory structure for base packages:
The directory tree structure for the base repository packages according to: http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/ openSUSE_10.2#Setup_Initial_Distributions
looks like this:
chris@builder:/srv/obs> tree build/ build/
|-- SUSE:SL-10.1 | `-- standard | `-- i586 | | | `-- :full | | `-- *.i586.rpm | | `-- noarch | | | `-- :full | | `-- *.noarch.rpm | | `-- x86_64 | `-- :full | `-- *.x86_64.rpm
This is actually not 100% correct, as what looks like rpm architectures are in reality build architectures. I.e., you have to have the noarch rpms in both i586 and x86_64.
|-- Ubuntu:7.04 | `-- standard
????
My question is: What would be the proper directory structure for an Ubuntu or Debian base repository?
Just copy all .deb files from the Debian repository path pool/main into the standard/ dir?
Yes, that's one solution. Copy them to standard/i586. As an alternative, you can create a ":full.subdirs" file, which can point to subdirectories that should be used.
Here's an example
|-- SUSE:SL-10.1 | `-- standard | `-- i586 | | | `-- :full symbolic link to some directory | | | | :full.subdirs file containing "i586 noarch"
The subdirs entries can't be absolute paths at the moment, which can be considered a bug.
Note that if a full tree contains multiple versions of a package it is currently undefined which of them will be used for building. Strange thinks like build cycles may happen.
Cheers, Michael.
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Sat, Jan 19, Michael Schröder wrote:
My question is: What would be the proper directory structure for an Ubuntu or Debian base repository?
Just copy all .deb files from the Debian repository path pool/main into the standard/ dir?
Yes, that's one solution. Copy them to standard/i586. As an alternative, you can create a ":full.subdirs" file, which can point to subdirectories that should be used.
Here's an example
|-- SUSE:SL-10.1 | `-- standard | `-- i586 | | `-- :full symbolic link to some directory | | :full.subdirs file containing "i586 noarch"
The subdirs entries can't be absolute paths at the moment, which can be considered a bug.
Note that if a full tree contains multiple versions of a package it is currently undefined which of them will be used for building. Strange thinks like build cycles may happen.
I'm currently trying to do something simlar. I have the following directory content in /srv/obs/build/Ubuntu:6.06/standard/i586 debian-bootstrap -> /srv/obs/debian-bootstrap/ :full/ :full.cache :full.subdirs :packstatus :repodone :repoinfo in debian-bootstrap there's a package ox-ubuntu-preinit.deb that's, what full.subdirs contains: $ cat \:full.subdirs debian-bootstrap What's happening when I restart the scheduler is this log: - Ubuntu:6.06/standard (dsc) - debian-bootstrap: is obsolete packages found: 23500 (hits: 18971, misses: 4529) expanding dependencies sorting 0 packages building: 0, notready: 0 prp Ubuntu:6.06/standard is finished... and after some time the file debian-bootstrap/ox-ubuntu-preinit.deb has been removed from disk. Why does the scheduler delete this package and how to prevent it from doing so? -- With best regards, Carsten Hoeger
participants (3)
-
Carsten Hoeger
-
Christopher Lang
-
Michael Schroeder