openSUSE:Backports Package Submission Process
tagline: From openSUSE
This page outlines the technical process of building and maintaining packages for the SLE Backports repos.
Backported packages are built in the openSUSE build service
The following default target exists:
- openSUSE:Backports:SLE-12 (SUSE Linux Enterprise Server 12 "GA" release)
The default target should be used for building and submitting all new packages. If a package requires a later service pack to build, use the appropriate target below:
- openSUSE:Backports:SLE-12-SP1 (SUSE Linux Enterprise Server 12 Service Pack 1)
- openSUSE:Backports:SLE-12-SP2 (SUSE Linux Enterprise Server 12 Service Pack 2)
- openSUSE:Backports:SLE-12-SP3 (SUSE Linux Enterprise Server 12 Service Pack 3)
The packages in older releases should, in most cases, be forward compatible with the following service pack releases. Therefore it's not necessary to rebuild for each service pack. Packages in the openSUSE:Backports:SLE-12 target will not be automatically migrated and built in the service pack targets, though they will be available at build time where needed.
The Backports project only allows packages that are already accepted in Factory. Ensure that you package is accepted and building there.
You can build and locally test any checked out package:
osc build --alternative-project openSUSE:Backports:SLE-12 standard
If the package builds, it will build in backports as well. Proceed with submitting it as a single package below.
openSUSE:Backports:SLE-12 as a build target to your project is possible, and will work for developing your new packages in a separate project. It is not suitable for the general case as packages will be set to automatically fail should they duplicate packages already in the SLES product.
Introducing a single new package
A single package can be submitted as follows:
osc sr devel:project hello openSUSE:Backports:SLE-12
Note that the package may build in
devel:project but not in
openSUSE:Backports:SLE-12, it is hence recommended to check for that using
--alternative-project as described above or a suitable project configuration.
Introducing more than one package
Consider a new package (e.g.
devel:project/newpackage) that also requires a new library
devel:project/newlib, none of which are already in backports.
We will create a maintenance branch (
-M) for a new package (
osc branch -M -N openSUSE:Backports:SLE-12/newlib osc branch -M -N openSUSE:Backports:SLE-12/newpackage osc co home:SLE_WIZARD:branches:openSUSE:Backports:SLE-12
Now we can put in our sources. In this case, we copy the sources from the devel project. We need to extend the source link (
-e) as well as keep the target link in case it exists (
osc copypac -e -K devel:project/newlib home:SLE_WIZARD:branches:openSUSE:Backports:SLE-12/newlib.openSUSE_Backports_SLE-12 osc copypac -e -K devel:project/newpackage home:SLE_WIZARD:branches:openSUSE:Backports:SLE-12/newpackage.openSUSE_Backports_SLE-12
When this is built and tested, we can submit a maintenance request for all packages together:
cd home:SLE_WIZARD:branches:openSUSE:Backports:SLE-12 osc mr
A combination of new and updated packages is possible.
Branching existing package
Just like with openSUSE maintenance a package can be branched directly from the destination project
osc branch openSUSE:Backports:SLE-12 hello
Alternatively, to automatically branch all maintained versions
osc mbranch hello
This command would set up a project that also contains all openSUSE versions of the same package so the maintainer can fix all instances at once.
Note that the current policy requires that package sources for the Backports project and openSUSE Factory are identical.
The target project doesn't actually build the packages but behaves like an update project for released openSUSE distributions. I.e. the actual sources are built in so called "incident projects". The openSUSE maintenance team takes care of those incident projects.
After the packager filed a submit request (which will be converted by osc to a maintenance incident request) the requests are reviewed by automated review bots:
- maintbot: checks if the submission was created by the package maintainer as defined in the devel project. maintbot will add the devel project as reviewer for submissions by non-maintainers.
- factory-source: checks if the sources for submissions to the Backports project are actually accepted in factory. Rejects requests where this is not the case.
After successful automated review the maintenance engineer takes over. If the request is ok he accepts it and therefore creates a maintenance incident. After the packages built successfully the maintenance engineer creates a release request. The release request in turn is checked again by factory-source.
After the usual grace period for testing as used on openSUSE the maintenance engineer then accepts release requests to actually release the package.