<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=194.2.148.117</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=194.2.148.117"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/194.2.148.117"/>
	<updated>2026-04-22T07:06:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Mer/Build/Install_OBS&amp;diff=23561</id>
		<title>Mer/Build/Install OBS</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Mer/Build/Install_OBS&amp;diff=23561"/>
		<updated>2009-12-08T09:42:11Z</updated>

		<summary type="html">&lt;p&gt;194.2.148.117: /* Installing OBS tools locally */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OBS stands for [https://build.opensuse.org/ Opensuse Build Service]. You can find out more about it from the OpenSuse webpage.&lt;br /&gt;
&lt;br /&gt;
== Installing OBS tools locally ==&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need an [https://secure-www.novell.com/selfreg/jsp/createOpenSuseAccount.jsp?target=http://www.opensuse.org account with Novell]&lt;br /&gt;
&lt;br /&gt;
You must then visit your [https://build.opensuse.org/project/list_my project list] and click : &amp;quot;Let me build my packages!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Assuming a Debian Testing development box locally:&lt;br /&gt;
&lt;br /&gt;
To get the OBS tools repository add an entry to the sources.lists:&lt;br /&gt;
 echo &amp;quot;deb &amp;lt;nowiki&amp;gt;http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/ /&amp;lt;/nowiki&amp;gt;&amp;quot; &amp;gt; /etc/apt/sources.list.d/obs.list&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install osc build qemu&lt;br /&gt;
&lt;br /&gt;
OBS uses 403 redirects which hits a [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479350 bug in apt] in Lenny.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can workaround using:&lt;br /&gt;
  wget http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/./all/build_2009.09.23-1_all.deb&lt;br /&gt;
  apt-get -f install&lt;br /&gt;
&lt;br /&gt;
=== Ubuntu ===&lt;br /&gt;
Assuming an Ubuntu9.04 development box locally:&lt;br /&gt;
&lt;br /&gt;
To get the OBS tools repository add the following line:&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_9.04/ /&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
to a new file called:&lt;br /&gt;
 /etc/apt/sources.list.d/obs.list&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install osc build&lt;br /&gt;
&lt;br /&gt;
Now edit &amp;lt;code&amp;gt;/etc/apt/sources.list.d/obs.list&amp;lt;/code&amp;gt; and comment that line out.&lt;br /&gt;
&lt;br /&gt;
Note there is a problem in Ubuntu9.04 osc as of 25 May &#039;09... to fix it, do this as root:&lt;br /&gt;
  cd /usr/lib/python2.6/dist-packages/&lt;br /&gt;
  ln -s ../site-packages/osc* .&lt;br /&gt;
&lt;br /&gt;
Suse don&#039;t have an Ubuntu qemu yet so we use the one they make for Debian (bug raised):&lt;br /&gt;
&lt;br /&gt;
Add the following lines:&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/ /&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
to a new file called:&lt;br /&gt;
 /etc/apt/sources.list.d/debian5_qemu.list&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install qemu&lt;br /&gt;
&lt;br /&gt;
now remove that file: &lt;br /&gt;
 &amp;lt;code&amp;gt;rm /etc/apt/sources.list.d/debian5_qemu.list&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
If you get the following error when adding one of these repos&lt;br /&gt;
 W: GPG error: http://ftp.debian.org stable Release: The following signatures couldn&#039;t be verified because the public key is not available: NO_PUBKEY &#039;&#039;SOMEKEY&#039;&#039;&lt;br /&gt;
Then run the command&lt;br /&gt;
 gpg --keyserver pgpkeys.mit.edu --recv-key &#039;&#039;SOMEKEY&#039;&#039; &amp;amp;&amp;amp; gpg -a --export  &#039;&#039;SOMEKEY&#039;&#039; | sudo apt-key add -&lt;br /&gt;
replacing &#039;&#039;SOMEKEY&#039;&#039; with the complained about key&lt;br /&gt;
&lt;br /&gt;
=== RedHat Enterprise Linux 5 ===&lt;br /&gt;
Assuming a RHEL 5 box locally:&lt;br /&gt;
&lt;br /&gt;
To get the OBS tools repository recognized by yum:&lt;br /&gt;
 echo &amp;quot;[obs]&amp;quot; &amp;gt; /etc/yum.repos.d/obs.repo&lt;br /&gt;
 echo &amp;quot;name=OpenSUSE Build System&amp;quot; &amp;gt;&amp;gt; /etc/yum.repos.d/obs.repo&lt;br /&gt;
 echo &amp;quot;baseurl=http://download.opensuse.org/repositories/openSUSE:/Tools/RHEL_5&amp;quot; &amp;gt;&amp;gt; /etc/yum.repos.d/obs.repo&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
 yum makecache&lt;br /&gt;
 yum install osc build qemu-svn&lt;br /&gt;
&lt;br /&gt;
This technique is likely to work with RHEL derivatives like CentOS.&lt;br /&gt;
 &lt;br /&gt;
=== Other distributions ===&lt;br /&gt;
You can find openSuse build tools for various distributions at&lt;br /&gt;
http://download.opensuse.org/repositories/openSUSE:/Tools/&lt;br /&gt;
&lt;br /&gt;
=== All OSes ===&lt;br /&gt;
&lt;br /&gt;
 NAME=&amp;lt;username&amp;gt;&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt;&amp;gt; /etc/sudoers&lt;br /&gt;
 $NAME ALL=NOPASSWD: /usr/bin/build&lt;br /&gt;
 $NAME ALL=NOPASSWD: /usr/sbin/chroot&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Now, as a normal user, run&lt;br /&gt;
 osc&lt;br /&gt;
and enter novell.com username/passwd when prompted (note these are stored in cleartext in the config file). Note this isn&#039;t supposed to do anything (it prints out the osc help) but it stores your name/pw for future use.&lt;br /&gt;
&lt;br /&gt;
Go and [https://build.opensuse.org login].&lt;br /&gt;
&lt;br /&gt;
Make sure you click the &amp;quot;let me build packages&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
There is a link to &#039;Home Project&#039; on the left, follow this and enter a description.&lt;br /&gt;
&lt;br /&gt;
Note that if, in the future, qemu fails to work you may need to setup the associations for arm binaries by running:&lt;br /&gt;
  qemu-binfmt-conf.sh&lt;br /&gt;
&lt;br /&gt;
=== Handle OBS using &#039;:&#039; in filenames ===&lt;br /&gt;
&lt;br /&gt;
To help bash completion etc:&lt;br /&gt;
  export COMP_WORDBREAKS=&amp;quot;&lt;br /&gt;
  &amp;gt; &amp;quot;\&amp;quot;&amp;quot;&#039;&amp;gt;&amp;lt;=;|&amp;amp;(&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
  COMP_WORDBREAKS=${COMP_WORDBREAKS//:/}&lt;br /&gt;
&lt;br /&gt;
=== Local osc setup ===&lt;br /&gt;
Create a local build path.&lt;br /&gt;
&lt;br /&gt;
 mkdir -p ~/maemo/Mer/obs&lt;br /&gt;
&lt;br /&gt;
All references below with (yourusername) should of course be replaced with the login name on your local machine.&lt;br /&gt;
&lt;br /&gt;
You can now check some settings in your ~/.oscrc :&lt;br /&gt;
&lt;br /&gt;
This is the OBS builder we&#039;re using... maybe we&#039;ll use a maemo.org instance one day?&lt;br /&gt;
 apiurl = &amp;lt;nowiki&amp;gt;https://api.opensuse.org&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies where all the cached binary packages are held to create a chroot build environment. Around 300MB.&lt;br /&gt;
 packagecachedir = /home/(yourusername)/maemo/Mer/obs/.pkg-cache/&lt;br /&gt;
&lt;br /&gt;
This specifies the default location where a complete chroot build will be installed. This will be a minimal OS install - allow 400MB minimum.  Replace (yourusername) with your current login name&lt;br /&gt;
 build-root = /home/(yourusername)/maemo/Mer/obs/build-%(repo)s-%(arch)s&lt;br /&gt;
&lt;br /&gt;
The next section is credentials for access control to the builder.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[https://api.opensuse.org]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 user = &amp;lt;username&amp;gt;&lt;br /&gt;
 pass = &amp;lt;password&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Next Steps ===&lt;br /&gt;
Go back up to [[Mer/Build]] and then onto [[Mer/Build/Application Building|Application Building]]&lt;br /&gt;
[[Category:Mer]]&lt;/div&gt;</summary>
		<author><name>194.2.148.117</name></author>
	</entry>
</feed>