merproject.org openSUSE Build Service for users of other build systems
If you intend to build native graphical applications for the Jolla phone, then by all means follow the official docs.
If, OTOH, you are used to writing spec files and feeding another build system (for me it’s mainly Koji), then read on.
The following is all on Fedora, but will work on must distribution with your package manager.
Set up osc
Set the apiurl via commandline option on your first call of osc
[user@host ]$ osc -A https://api.merproject.org ls
If you just want to know how your build system tool’s (fedpkg in my case) calls translate to osc, you can skip ahead to Building against Mer in Community OBS.
A short example;
First create project in the webUI, then
checkout to your build host
[user@host ]$ osc co home:project [user@host ]$ cd home:project
create package locally on build host via CLI
[user@host ]$ osc mkpac package_name [user@host ]$ osc meta pkg -e [user@host ]$ osc add package.spec package-1.0.0.tar.bz2 [user@host ]$ osc ci
Every time you do osc ci, the Open Build Service will rebuild as per the instructions in the spec file for you.
which project to build against?
One of the biggest challenges I faced was finding out how to set up my Repositories.
If you build something Jolla specific, start with sailfishos:chum:22.214.171.124:testing and once your package works, migrate to sailfishos:chum:126.96.36.199 (obviously the version number 188.8.131.52 will increase over time).
If you build something which can benefit all of mer, use nemo:devel:mw
I find it useful to refer to the architecture overview when deciding where to push my packages.
Which architecture to choose?
When you build packages to run on your Jolla, select armv8el as target. You probably also want to build for i586 so that your binary can also be used in the SailfishOS Emulator
When you add a Repository, you will not find sailfishos in the distribution overview page, please follow the pick one via advanced interface link. Select the project (e.g. sailfishos:chum:184.108.40.206:testing), the project’s repository to use when building (probably only one in the drop down list) and give it a name.
For home:pcfe:public:buteo-sync-plugin-caldav I set up as follows (shout if I am doing this wrong).