OpenSuse Build Service/Fremantle Setup: Difference between revisions
From Maemo Wiki
Jump to navigationJump to search
imported>lbt -I.git |
imported>lbt Tidy up |
||
| Line 2: | Line 2: | ||
This currently refers to some inaccessible repos. I'll open them up as I get time. | This currently refers to some inaccessible repos. I'll open them up as I get time. | ||
Target: | |||
* Use Maemo:Fremantle:1.2 as build target for Maemo Extras | |||
Approach: | Approach: | ||
* Copy all Nokia Fremantle Binaries to Fremantle:1. | * Copy all Nokia Fremantle Binaries to Maemo:Fremantle:1.2:Std | ||
* Create Fremantle:1. | * Create Maemo:Fremantle:1.2:Bootstrap/<pkg> to create packages (use useforbuild = no?) | ||
* Create Fremantle:1. | * Create Maemo:Fremantle:1.2:Loaded to include additional binaries needed by OBS | ||
* Create Fremantle:1. | * Create Maemo:Fremantle:1.2 as the nominal target for :Extras and the main prjconf | ||
(see https://projects.maemo.org/trac/maemoobs/wiki/Fremantle too) | (see https://projects.maemo.org/trac/maemoobs/wiki/Fremantle too) | ||
| Line 19: | Line 22: | ||
# Get the Fremantle binaries | # Get the Fremantle binaries | ||
mkdir -p /Downloads/fremantle1. | mkdir -p /Downloads/fremantle1.2/ | ||
cd /Downloads/fremantle1. | cd /Downloads/fremantle1.2/ | ||
wget -e robots=off --accept \*.deb --mirror --no-parent --progress=dot \ | wget -e robots=off --accept \*.deb --mirror --no-parent --progress=dot \ | ||
--no-host-directories --cut-dirs=2 -nv \ | --no-host-directories --cut-dirs=2 -nv \ | ||
| Line 39: | Line 42: | ||
osc -A $API meta prj Maemo:Fremantle:1.2:Std -F - <<XML | osc -A $API meta prj Maemo:Fremantle:1.2:Std -F - <<XML | ||
<project name="Maemo:Fremantle:1.2:Std"> | <project name="Maemo:Fremantle:1.2:Std"> | ||
<title>Fremantle 1. | <title>Fremantle 1.2</title> | ||
<description> | <description> | ||
The standard binaries from Nokia | The standard binaries from Nokia | ||
| Line 124: | Line 127: | ||
<description> | <description> | ||
This project contains all the binaries used in addition to the | This project contains all the binaries used in addition to the | ||
standard Nokia ones. They are built in Fremantle:1.2:Bootstrap and | standard Nokia ones. They are built in Maemo:Fremantle:1.2:Bootstrap and | ||
then copied into here. | then copied into here. | ||
</description> | </description> | ||
Revision as of 08:41, 9 May 2010
Fremantle
This currently refers to some inaccessible repos. I'll open them up as I get time.
Target:
- Use Maemo:Fremantle:1.2 as build target for Maemo Extras
Approach:
- Copy all Nokia Fremantle Binaries to Maemo:Fremantle:1.2:Std
- Create Maemo:Fremantle:1.2:Bootstrap/<pkg> to create packages (use useforbuild = no?)
- Create Maemo:Fremantle:1.2:Loaded to include additional binaries needed by OBS
- Create Maemo:Fremantle:1.2 as the nominal target for :Extras and the main prjconf
(see https://projects.maemo.org/trac/maemoobs/wiki/Fremantle too)
Setup the projects:
Maemo:Fremantle:1.2:Std
# Specify the OBS we're working on
API=http://build.obs.maemo.org/
# Get the Fremantle binaries
mkdir -p /Downloads/fremantle1.2/
cd /Downloads/fremantle1.2/
wget -e robots=off --accept \*.deb --mirror --no-parent --progress=dot \
--no-host-directories --cut-dirs=2 -nv \
http://repository.maemo.org /pool/fremantle-update2/
# Prepare for the :full dir for the OBS
REPO=/backend_storage/maemo-sdk-5/pool/maemo5.0
OBS=/backend_storage/obs/fremantle1.2
mkdir $OBS
cd $OBS
mkdir -p armel_full i586_full
find $REPO -name *armel.deb | xargs -I@ ln @ armel_full
find $REPO -name *i386.deb | xargs -I@ ln @ i586_full
find $REPO -name *all.deb | xargs -I@ ln @ armel_full
find $REPO -name *all.deb | xargs -I@ ln @ i586_full
# On an OBS client
osc -A $API meta prj Maemo:Fremantle:1.2:Std -F - <<XML
<project name="Maemo:Fremantle:1.2:Std">
<title>Fremantle 1.2</title>
<description>
The standard binaries from Nokia
</description>
<person role="maintainer" userid="Admin"/>
<person role="bugowner" userid="Admin"/>
<build>
<enable/>
</build>
<publish>
<disable/>
</publish>
<debuginfo>
<disable/>
</debuginfo>
<repository name="standard">
<arch>armv7el</arch>
<arch>i586</arch>
</repository>
</project>
XML
# Back on OBS server
# Copy the binaries into the new project
cd /srv/obs/build/Maemo:Fremantle\:1.2\:Std/standard/
mkdir -p i586 armv7el
ln -s $OBS/i586_full i586/:full
ln -s $OBS/armel_full armv7el/:full
/usr/lib/obs/server/bs_admin --rescan-repository Maemo:Fremantle:1.2:Std standard i586
/usr/lib/obs/server/bs_admin --rescan-repository Maemo:Fremantle:1.2:Std standard armv7el
chown -R obsrun:obsrun /srv/obs/build/Maemo:Fremantle:1.2:Std
Maemo:Fremantle:1.2:Bootstrap
# On an OBS client
osc -A $API meta prj Maemo:Fremantle:1.2:Bootstrap -F - <<XML
<project name="Maemo:Fremantle:1.2:Bootstrap">
<title>Fremantle 1.2</title>
<description>
The standard binaries from Nokia
</description>
<person role="maintainer" userid="Admin"/>
<person role="bugowner" userid="Admin"/>
<build>
<enable/>
</build>
<publish>
<disable/>
</publish>
<debuginfo>
<disable/>
</debuginfo>
<useforbuild>
<disable/>
</useforbuild>
<repository name="Debian_5.0_standard">
<path project="openSUSE.org:Debian:5.0" repository="standard"/>
<arch>armv5el</arch>
<arch>i586</arch>
</repository>
<repository name="Ubuntu_9.04_standard">
<path project="openSUSE.org:Ubuntu:9.04" repository="standard"/>
<arch>armv5el</arch>
<arch>i586</arch>
</repository>
</project>
XML
This project has <useforbuild> disabled. This means that a package built in this project will not attempt to resolve dependencies from peer packages.
Now ensure the Ubuntu/Debian bootstrapped armv5el binaries are copied to the armv7el repo
echo ExportFilter: armel\.deb$ armv5el | osc -A $API meta prjconf Maemo:Fremantle:1.2:Bootstrap -F -
Maemo:Fremantle:1.2:Loaded
This project
osc -A $API meta prj Maemo:Fremantle:1.2:Loaded -F - <<XML
<project name="Maemo:Fremantle:1.2:Loaded">
<title>Fremantle 1.2 Loaded</title>
<description>
This project contains all the binaries used in addition to the
standard Nokia ones. They are built in Maemo:Fremantle:1.2:Bootstrap and
then copied into here.
</description>
<person role="maintainer" userid="Admin"/>
<person role="bugowner" userid="Admin"/>
<build>
<enable/>
</build>
<publish>
<disable/>
</publish>
<debuginfo>
<disable/>
</debuginfo>
<repository name="standard">
<arch>armv7el</arch>
<arch>i586</arch>
</repository>
</project>
XML
Maemo:Fremantle:1.2
This project is used as a target by applications. It is a multi-path project looking first in :Loaded and then in :Std
osc -A $API meta prj Maemo:Fremantle:1.2 -F - <<XML
<project name="Maemo:Fremantle:1.2">
<title>Fremantle 1.2</title>
<description>
This project is the OBS Fremantle target. It is based on the standard
Nokia binaries with some additional binaries needed for Fremantle.
</description>
<person role="maintainer" userid="Admin"/>
<person role="bugowner" userid="Admin"/>
<build>
<enable/>
</build>
<publish>
<disable/>
</publish>
<debuginfo>
<disable/>
</debuginfo>
<repository name="standard">
<path project="Maemo:Fremantle:1.2:Loaded" repository="standard"/>
<path project="Maemo:Fremantle:1.2:Std" repository="standard"/>
<arch>armv7el</arch>
<arch>i586</arch>
</repository>
</project>
XML
Since this project is a target it needs a prjconf: https://dvcs.projects.maemo.org/git/?p=OBS/maemoConf;a=blob_plain;f=Maemo_Fremantle.conf;h=818bd5a0c9136d13e1bb698cfcf861f64522b1d1;hb=573b391ccecd8fef6e4f5328a272a3ab1c4cdee5
Extras
Binaries for :Loaded
scratchbox-fake
osc -A $API meta pkg Maemo:Fremantle:1.2:Bootstrap scratchbox-fake -e osc -A $API co Maemo:Fremantle:1.2:Bootstrap scratchbox-fake cd Maemo:Fremantle:1.2:Bootstrap/scratchbox-fake git clone git@dvcs.projects.maemo.org:OBS/fremantle-deltas/scratchbox-fake cd scratchbox-fake dpkg-buildpackage -S -uc -us -I.git cd .. osc addremove osc commit -m"From git"
busybox
This just provides 'su' through busybox-login.
Stskeeps reports that there's a login pkg inside Nokia that would be better.
osc -A $API meta pkg Maemo:Fremantle:1.2:Bootstrap busybox -e osc -A $API co Maemo:Fremantle:1.2:Bootstrap busybox cd Maemo:Fremantle:1.2:Bootstrap/busybox git clone git@dvcs.projects.maemo.org:OBS/fremantle-deltas/busybox cd busybox dpkg-buildpackage -S -uc -us -I.git cd .. osc addremove osc commit -m"From git"
fakeroot
osc -A $API meta pkg Maemo:Fremantle:1.2:Bootstrap fakeroot -e osc -A $API co Maemo:Fremantle:1.2:Bootstrap fakeroot cd Maemo:Fremantle:1.2:Bootstrap/fakeroot git clone git@dvcs.projects.maemo.org:OBS/fremantle-deltas/fakeroot cd fakeroot dpkg-buildpackage -S -uc -us -I.git cd .. osc addremove osc commit -m"From git"