Editing Mer/Build/Install OBS
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | |||
- | |||
- | |||
- | |||
== Installing OBS tools locally == | == Installing OBS tools locally == | ||
You'll need an [https://secure-www.novell.com/selfreg/jsp/createOpenSuseAccount.jsp?target=http://www.opensuse.org account with Novell] | You'll need an [https://secure-www.novell.com/selfreg/jsp/createOpenSuseAccount.jsp?target=http://www.opensuse.org account with Novell] | ||
- | You must then visit your [https://build.opensuse.org/project/list_my project list] and click : "Let me build my packages | + | You must then visit your [https://build.opensuse.org/project/list_my project list] and click : "Let me build my packages" |
+ | (Could someone confirm the step above... it only appears when you create a new account) | ||
=== Debian === | === Debian === | ||
Line 36: | Line 33: | ||
Then | Then | ||
- | |||
- | |||
- | |||
apt-get update | apt-get update | ||
apt-get install osc build | apt-get install osc build | ||
Line 73: | Line 67: | ||
gpg --keyserver pgpkeys.mit.edu --recv-key ''SOMEKEY'' && gpg -a --export ''SOMEKEY'' | sudo apt-key add - | gpg --keyserver pgpkeys.mit.edu --recv-key ''SOMEKEY'' && gpg -a --export ''SOMEKEY'' | sudo apt-key add - | ||
replacing ''SOMEKEY'' with the complained about key | replacing ''SOMEKEY'' with the complained about key | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
=== Other distributions === | === Other distributions === | ||
Line 98: | Line 73: | ||
=== All OSes === | === All OSes === | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Now, as a normal user, run | Now, as a normal user, run | ||
osc | osc | ||
Line 117: | Line 85: | ||
Note that if, in the future, qemu fails to work you may need to setup the associations for arm binaries by running: | Note that if, in the future, qemu fails to work you may need to setup the associations for arm binaries by running: | ||
qemu-binfmt-conf.sh | qemu-binfmt-conf.sh | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
=== Local osc setup === | === Local osc setup === | ||
- | Create a local build path. | + | Create a local build path. |
mkdir -p ~/maemo/Mer/obs | mkdir -p ~/maemo/Mer/obs | ||
- | + | All references below with (yourusername) should of course be replaced with the login name on your local machine. | |
- | + | You can now check some settings in your ~/.oscrc : | |
- | + | This is the OBS builder we're using... maybe we'll use a maemo.org instance one day? | |
+ | apiurl = <nowiki>https://api.opensuse.org</nowiki> | ||
- | + | This specifies where all the cached binary packages are held to create a chroot build environment. Around 300MB. | |
- | packagecachedir = /home/ | + | packagecachedir = /home/(yourusername)/maemo/Mer/obs/.pkg-cache/ |
- | + | 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 | |
- | build-root = /home/ | + | build-root = /home/(yourusername)/maemo/Mer/obs/build-%(repo)s-%(arch)s |
- | + | The next section is credentials for access control to the builder. | |
- | user = | + | <nowiki>[https://api.opensuse.org]</nowiki> |
- | pass = | + | user = <username> |
+ | pass = <password> | ||
=== Next Steps === | === Next Steps === | ||
- | Go back to [[Mer/Build]] and then onto [[Mer/Build/Application Building|Application Building]] | + | Go back up to [[Mer/Build]] and then onto [[Mer/Build/Application Building|Application Building]] |
+ | [[Category:Mer]] |
Learn more about Contributing to the wiki.