Download presentation
Presentation is loading. Please wait.
Published byBlaise McCoy Modified over 7 years ago
1
Cross-Distribution Packaging Made Easy OSDC 2011, Canberra
Tim Serong Senior Clustering Engineer SUSE
2
Why Am I Talking About Software Packaging?
A tarball is not a product – Arjen Lentz Show of hands: - Who primarily develops software? - Who also packages it? For some distro or other? If you hack on GIMP (etc.) not your problem, but... I have a source code repo & tarballs Casual/new users don't want these things Like takeaway Chinese food without a plasic box
3
Problems for Developers
Multiple Distributions Multiple Versions Multiple Architectures Minimal time, hardware, etc. I basically hack on one distro, one arch Maybe one other, sometimes, in a VM
4
Solution: The Open Build Service
Builds packages for various Linuces build.opensuse.org (or run your own) Give it a tarball and spec/dsc It does the rest - show of hands - who's heard of it? - who's used it? - platform for building packages and ISOs – web ui - nee openSUSE build service - openSUSE - SLES - isos, vms - openSUSE, SLES, RHEL, CentOS, Fedora, Mandriva, Debian, Ubuntu - describe worker, etc. running build kvm - gonna try make this a bit of a rambling show & tell
5
Packages and Projects All packages are part of a project
Multiple developers can work on a project / package Projects define the target distros Packages can be built for all or a subset of distros
10
Entertainment Over Dinner
The story here is about openastro, which I packaged using the web UI only, whist at a friend's place for dinner
12
Pull from URL Can also pull from git, svn etc.
13
Can't get around writing a spec
Generators for some things (rubygems) Some things are easier than others (python, perl)
17
A Little More Complexification
23
Behind Every Great GUI...
24
We Have a Command Line Interface
osc co - checkout package osc add - add files to package osc build - build on local machine osc diff - diff local copy with OBS server osc vc - edit changelog osc ci - checkin changes Osc itself Is, of course, packaged using obs
27
Playing Well With Others
28
Collaboration Projects can depend on each other
Anyone can branch packages... ...and submit changes back to the main project Maintainers review and (hopefully!) accept
34
Enough With the Screenshots!
35
At this point in the presentation, a live demo ensued, where a small “hello world” style C program was packaged for Centos, Debian, Fedora, RHEL, SLES, openSUSE and Ubuntu. OBS project is at: ect=home:tserong Resultant packages are at: rue
36
So, Was That Easy?
37
What Did I Miss? OBS under GPL, you can hack it.
Used by MeeGo, VLC, GNOME 3, Dell, Cray... Android client, various APIs More distros ISO / VM creation
38
References http://openbuildservice.org/
#opensuse-buildservice on Freenode
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.