The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
OBS projects setup
From Mer Wiki
(Difference between revisions)
(Initial page) |
(→Download on Demand) |
||
Line 12: | Line 12: | ||
=== Download on Demand === | === Download on Demand === | ||
− | http://en.opensuse.org/openSUSE:Build_Service_Concept_Download_on_Demand | + | Steps for debian : |
+ | |||
+ | * Choose a fast mirror of the repository you want to build against. It has to be static as cached information will not be refreshed automatically by OBS. | ||
+ | |||
+ | For example for Debian stable I use http://debian.osuosl.org/debian/ | ||
+ | |||
+ | * Locate the Packages file for the dist and architecture you want. For squeeze (stable) i386 it is at : | ||
+ | |||
+ | http://debian.osuosl.org/debian/dists/squeeze/main/binary-i386/Packages.gz | ||
+ | |||
+ | * Create a project using the web UI or the osc. For example to create a toplevel Debian:6.0 using osc : | ||
+ | |||
+ | osc -A apiurl meta prj -e Debian:6.0 | ||
+ | |||
+ | * Fill the project meta similar to the following xml : | ||
+ | |||
+ | <project name="Debian:6.0"> | ||
+ | <title>Debian stable (Squeeze)</title> | ||
+ | <description>Debian 6.0 stable (Squeeze) using download and demand from http://debian.osuosl.org/debian/dists/squeeze</description> | ||
+ | <person userid="Admin" role="maintainer"/> | ||
+ | <person userid="Admin" role="bugowner"/> | ||
+ | <download mtype="debmd" arch="i586" baseurl="http://debian.osuosl.org/debian/" metafile="Packages"/> | ||
+ | <build> | ||
+ | <disable/> | ||
+ | </build> | ||
+ | <publish> | ||
+ | <disable/> | ||
+ | </publish> | ||
+ | <repository name="standard"> | ||
+ | <arch>i586</arch> | ||
+ | </repository> | ||
+ | </project> | ||
+ | |||
+ | Notes : | ||
+ | |||
+ | * mtype is debmd for debian | ||
+ | * arch matches this repository and Packages file to an OBS scheduler, so debian i386 will be handeled by the i586 scheduler | ||
+ | * baseurl is used to construct the URL of the packages mentioned in the Packages file | ||
+ | |||
+ | * | ||
+ | |||
+ | |||
+ | References : | ||
+ | * http://en.opensuse.org/openSUSE:Build_Service_Concept_Download_on_Demand |
Revision as of 13:21, 14 January 2012
Building for different targets in OBS
You might want to build packages for different targets like Debian or Opensuse. There are two ways to do that :
- inter-OBS link provided by build.opensuse.org
- download on demand against a static repository
Explain inter-OBS link
Download on Demand
Steps for debian :
- Choose a fast mirror of the repository you want to build against. It has to be static as cached information will not be refreshed automatically by OBS.
For example for Debian stable I use http://debian.osuosl.org/debian/
- Locate the Packages file for the dist and architecture you want. For squeeze (stable) i386 it is at :
http://debian.osuosl.org/debian/dists/squeeze/main/binary-i386/Packages.gz
- Create a project using the web UI or the osc. For example to create a toplevel Debian:6.0 using osc :
osc -A apiurl meta prj -e Debian:6.0
- Fill the project meta similar to the following xml :
<project name="Debian:6.0">
<title>Debian stable (Squeeze)</title> <description>Debian 6.0 stable (Squeeze) using download and demand from http://debian.osuosl.org/debian/dists/squeeze</description> <person userid="Admin" role="maintainer"/> <person userid="Admin" role="bugowner"/> <download mtype="debmd" arch="i586" baseurl="http://debian.osuosl.org/debian/" metafile="Packages"/> <build> <disable/> </build> <publish> <disable/> </publish> <repository name="standard"> <arch>i586</arch> </repository>
</project>
Notes :
- mtype is debmd for debian
- arch matches this repository and Packages file to an OBS scheduler, so debian i386 will be handeled by the i586 scheduler
- baseurl is used to construct the URL of the packages mentioned in the Packages file
References :