|Mer is back : Please visit http://www.merproject.org to learn more about this news.|
 Installing OBS tools locally
You'll need an account with Novell
You must then visit your project list and click : "Let me build my packages!"
Assuming a Debian Testing development box locally:
To get the OBS tools repository add an entry to the sources.lists:
echo "deb http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/ /" > /etc/apt/sources.list.d/obs.list
apt-get update apt-get install osc build qemu
OBS uses 403 redirects which hits a bug in apt in Lenny.
You can workaround using:
wget http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/./all/build_2009.09.23-1_all.deb apt-get -f install
Assuming an Ubuntu9.04 development box locally:
To get the OBS tools repository add the following line:
deb http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_9.04/ /
to a new file called:
# add the key in the apt keyring wget -q http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_9.04/Release.key -O- | apt-key add - # refresh your package source apt-get update apt-get install osc build
/etc/apt/sources.list.d/obs.list and comment that line out.
Note there is a problem in Ubuntu9.04 osc as of 25 May '09... to fix it, do this as root:
cd /usr/lib/python2.6/dist-packages/ ln -s ../site-packages/osc* .
Suse don't have an Ubuntu qemu yet so we use the one they make for Debian (bug raised):
Add the following lines:
deb http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/ /
to a new file called:
apt-get update apt-get install qemu
now remove that file:
If you get the following error when adding one of these repos
W: GPG error: http://ftp.debian.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY SOMEKEY
Then run the command
gpg --keyserver pgpkeys.mit.edu --recv-key SOMEKEY && gpg -a --export SOMEKEY | sudo apt-key add -
replacing SOMEKEY with the complained about key
 RedHat Enterprise Linux 5
Assuming a RHEL 5 box locally:
The M2Crypto package that comes w/ RHEL5 is too old. I retrieved the 0.19.1 source rpm from Fedora 10 and built it for my architecture. But you will need to update this package to at least version 0.19 before installing the OBS packages.
Install the public key for the OBS RPM repository:
rpm --import http://download.opensuse.org/repositories/openSUSE:/Tools/RHEL_5/repodata/repomd.xml.key
To get the OBS tools repository recognized by yum:
echo "[obs]" > /etc/yum.repos.d/obs.repo echo "name=OpenSUSE Build System" >> /etc/yum.repos.d/obs.repo echo "baseurl=http://download.opensuse.org/repositories/openSUSE:/Tools/RHEL_5" >> /etc/yum.repos.d/obs.repo
yum makecache yum install osc build qemu-svn
This technique is likely to work with RHEL derivatives like CentOS.
 Other distributions
You can find openSuse build tools for various distributions at http://download.opensuse.org/repositories/openSUSE:/Tools/
 All OSes
NAME=<username> cat <<EOF >> /etc/sudoers $NAME ALL=NOPASSWD: /usr/bin/build $NAME ALL=NOPASSWD: /usr/sbin/chroot EOF
Now, as a normal user, run
and enter novell.com username/passwd when prompted (note these are stored in cleartext in the config file). Note this isn't supposed to do anything (it prints out the osc help) but it stores your name/pw for future use.
Go and login.
Make sure you click the "let me build packages" button.
There is a link to 'Home Project' on the left, follow this and enter a description.
Note that if, in the future, qemu fails to work you may need to setup the associations for arm binaries by running:
 Handle OBS using ':' in filenames
To help bash completion etc:
export COMP_WORDBREAKS=" > "\""'><=;|&("
 Local osc setup
Create a local build path. E.g.,
mkdir -p ~/maemo/Mer/obs
In the following instructions, references to local-username should be replaced with the username used to login on your local machine while build-username (resp. build-password) should be replaced with your OBS account name (resp. OBS account password).
osc without arguments. It will basically ask you to enter your OBS account username and password and create a default configuration in
~/.oscrc. Edit it to match your needs. Here are a few interesting parameters mainly found in the
apiurlparameter should be set to the following URL: https://api.opensuse.org.
packagecachedirparameter specifies where all the cached binary packages are held to create a chroot build environment. Around 300MB are needed. E.g.,
packagecachedir = /home/local-username/maemo/Mer/obs/.pkg-cache/
build-rootparameter specifies the default location where a complete chroot build will be installed. This will be a minimal OS install: 400MB minimum. E.g.,
build-root = /home/local-username/maemo/Mer/obs/build-%(repo)s-%(arch)s
- in the section
[https://api.opensuse.org], set your credentials as follow:
user = build-username pass = build-password
 Next Steps
- This page was last modified on 13 October 2010, at 11:37.
- This page has been accessed 14,231 times.