openSUSE:Packaging for Leap
Leap 16
openSUSE Leap 16 combines SUSE Linux Enterprise (SLE 16, also known as SLFO) packages with Community-contributed packages. Packaging for Leap follows a Git-based workflow, which differs slightly depending on whether the package originates from SLE or the community.
Git packaging workflow
For general documentation and examples, see: openSUSE:Git Packaging Workflow. Note: Some examples reference Tumbleweed, which has not yet fully switched to Git.
💡 OBS users
If you prefer the traditional OBS workflow instead of working purely with Git, take a look at:
- openSUSE:Git_Packaging_Workflow#Initial_Setup git-obs — a bridge between OBS and Git.
- `osc fork` — lets you fork and test packages while preserving the familiar OBS project structure.
openSUSE Packaging with git tutorials on youtube
https://www.youtube.com/playlist?list=PL_AMhvchzBadx1w05kUqH4d7Nh_mgubYh
Package sources
It's quite simple. Go to https://src.opensuse.org/pool.
Community Packages
- Use the `leap-x.y` branch (e.g., `leap-16.0`).
- There is no separate branch for Package Hub.
SLE/SLFO packages
- Use `slfo-main` or `slfo-x.y` branches.
- `slfo-x.y` is created after the Release Candidate (e.g., `slfo-1.2` corresponds to SLES 16.0).
These packages are owned by suse.com. Due to certification requirements, changes to these packages need to be handled internally at SUSE. Public requests for changes: https://code.opensuse.org/leap/features/issues.
Packages with both slfo-x.y and leap-x.y
Some packages have both slfo-x.y and leap-x.y branches. This means that we forked the SLES package in Leap. In such cases, use the leap-x.y branch.
Workflow for community packages
- Fork the package from the pool repository.
- Work on your changes in the `leap-x.y` branch (e.g., `leap-16.0`).
- Create a pull request against the same branch.
- The PR automatically links to build results.
Optional: Track your work in the public feature tracker for Leap, especially if:
- The update may affect SLFO packages (e.g., GIMP 3.0).
- The update is large (e.g., Plasma 6.1, Xfce 4.20).
Workflow for SLES/SLFO packages
- Create an issue in our public feature tracker for Leap. Use a descriptive title (e.g., GIMP 3.0) and list the required package updates.
- Issues are reviewed every Monday as part of our Public Feature Review meeting.
- User:Lkocman creates and links the corresponding jira.suse.com requests and/or SR requests with references like jsc#PED-123 or code-o-o/leap/features#123.
- Progress is tracked weekly at the Public Feature Review meeting.
Workflow for packages that don't use git lfs
Some simpler packages can be updated without the need to create a fork using AGit, in these cases the process is very simple:
# clone the package from pool
git clone gitea@src.opensuse.org:pool/patterns-base.git
cd patterns-base
# switch to the desired branch
git switch leap-16.0
# do the changes required
git cherry-pick e85db2b572e468bb30df0e50b2f8fc6748dbb71dbc841041fd3710c282585716
# submit your changes
PR_DESCRIPTION="Fix [bsc1283293](https://bugzilla.opensuse.org/show_bug.cgi?id=1283293) based on #16"
git push origin leap-16.0:refs/for/leap-16.0/bsc1283293 \
-o title="Fix missing tar from enhanced_base" \
-o description="${PR_DESCRIPTION}"
This results in the following:
...
remote: Hook 'pre-receive/forbidden-files' took 0.02s
remote: Hook 'pre-receive/gitea' took 0.10s
remote: Hook 'pre-receive/git-lfs-check' took 0.25s
remote: Hook 'pre-receive/package-submodule-blacklist' took 0.00s
...
remote: Visit the existing pull request:
remote: https://src.opensuse.org/pool/patterns-base/pulls/17 <-- this is your new PR
...
Adding a new package to Leap and Package Hub from Factory
Open an issue using a template in https://src.opensuse.org/products/PackageHub/issues/new/choose
- title must start with [ADD]
- issue must have a target branch selected from the drop-down menu on the right
- description must specify the package location and which branch in the format user/package#branch or organization/package#branch
An example would be https://src.opensuse.org/products/PackageHub/issues/1327
- [ADD] please add susedialog in 16.1
- branch leap-16.1 is selected
- pool/susedialog#factory
- Alternatively, submit an issue to the openSUSE admin team requesting a new package repo or branch.
- Or, contact the Release Team (`maxlin`, `lkocman`) to request the branch on your behalf.
- You can also use the Leap feature tracker, which we expect to be eventually migrated to src.opensuse.org as well.
Updating a Leap package from Factory
This part needs has been updated recently and needs to be tested and reviewed
To update a Leap package with changes from openSUSE Factory:
- Fork the package from the pool.
- Check out the `leap-16.0` branch.
- Create a separate branch from your fork's original
- Remove all files (git rm *)
- Copy files from the factory branch
- Commit changes, push
- Check out a leap 16.1 branch based on the changes to the `16.0' branch
- git push
Example:
# Fork gitea@src.opensuse.org:pool/libstrophe.git
git clone gitea@src.opensuse.org:<yourusername>/libstrophe.git
cd libstrophe
git fetch --all
git checkout -b leap-16.0-sync-e164eb0 origin/leap-16.0
git rm *
git checkout factory -- .
git commit -S -m "Update to x.x/factory at e164eb0"
git push
git checkout -b leap-16.1-e164eb0 leap-16.0-sync-e164eb0
git push
- Create a pull request against the `leap-16.0` branch, for example, https://src.opensuse.org/pool/product-composer/pulls/2.
Updating a Leap package from your home project
Users who want to test their changes before creating a pull request can use osc fork, which covers both the git and OBS project parts.
osc fork openSUSE:Tools product-composer
Dropping a package from Leap
Remove the package submodule:
In a fork of openSUSE/Leap, checkout appropriate branch and remove the submodule.
git rm <submodule>
git commit
git push
Then create your PR from your fork to openSUSE/Leap#<appropriate Leap version>
Notes for Leap 15.6
For previous releases, please refer to the instructions in Portal:Maintenance.

