openSUSE:OBS Light Tips and tricks

Jump to: navigation, search


Packages

Build fails

You can't build these packages on OS kernel 3.2 (or newer) (ubuntu 12.04)

The local repository isn't priorized versus external repositories

When a package exist in two repository (local & external) with the same version, the package taken is the one of external repository not the one of local repository

( Bug : https://bugs.meego.com/show_bug.cgi?id=25859 )

Work around that seems to be work:

Advices : Before modifying your files, it's better to make a copy of the config file => ~/OBSLight/ObsLightProjectsConfig

Edit the ~/OBSLight/ObsLightProjectsConfig

vi ~/OBSLight/ObsLightProjectsConfig

See my ObsLightProjectsConfig

ssS'projectLocalName' <==== Indicate a project section
p2020
VTizen_x86_64_x86_64 <==== Name of the project
p2021
sS'extraChrootPackages'
p2022
(dp2023
S'strace'
p2024
I00
sS'emacs'
p2025
I00
sS'vim'
p2026
I00
ssS'nbJob'
p2027
I8
sS'chrootIsInit'
p2028
I01
sS'repoList' <==== Indicate the repository list for the project
p2029
(lp2030
(S'repoGrab' <==== Name of the first repository
p2031
S'http://10.19.3.230:84/Tizen_x86_64_x86_64'
p2032
tp2033
a(VTizen_x86_64_x86_64 <==== Name of the local repo the same of the project
p2034
Vhttp://10.19.3.215:84/Tizen_x86_64_x86_64/ 


First You have to switch the repo addresses. Save your file.

-> Restart ObsLigth.

-> Remove & Generate your project file system (-> select your poject -> select a package -> Click on Project filesystem tab -> Click on Delete Button and New Button)

OBS

ARM builds

The build script coming with OBS 2.3 does no more copy qemu binaries to the chroot jail at the beginning of the build. As Tizen and MeeGo do not include qemu, you will have to customize the build script to build them for ARM.

Solution 1: install the build package of Tizen tools

An old build script (with a fake version number) is maintained in Tizen tools. If your server is running openSUSE 12.1, you can execute the following step as root:

zypper ar http://download.tizen.org/tools/openSUSE12.1/Tools.repo
zypper ref
zypper up build

Solution 2: modify /usr/lib/build/build

vi /usr/lib/build/build

Set the variable USE_SYSTEM_QEMU to "--use-system-qemu" (line 59 at the time I wrote this wiki).