OpenSuse Build Service/MeeGo Setup

(Update MeeGo current project update notes)
Line 76: Line 76:
=== MeeGo Current ===
=== MeeGo Current ===
 +
 +
On the be we must have done:
 +
<pre>
 +
ln -s /backend_storage/obs/meego/current/armv7l_full/ /srv/obs/build/MeeGo:current/standard/armv7el/:full
 +
ln -s /backend_storage/obs/meego/current/ia64_full/ /srv/obs/build/MeeGo:current/standard/ia64/:full
 +
</pre>
 +
<pre>
<pre>
build=1.0.80.9.20100706.1
build=1.0.80.9.20100706.1
-
OBS=/backend_storage/obs/meego/${build}/
+
BASE=/backend_storage/obs/meego
 +
DL=$BASE/${build}/
 +
PRJ=$BASE/current
 +
 
 +
# download
FROM="http://repo.meego.com/MeeGo/builds/1.0.80/${build}/"
FROM="http://repo.meego.com/MeeGo/builds/1.0.80/${build}/"
-
mkdir -p $OBS
+
mkdir -p $DL
-
cd $OBS
+
cd $DL
lftp -c "open $FROM; mirror"
lftp -c "open $FROM; mirror"
 +
 +
mkdir -p $BASE/delete_me
 +
mv $BASE/w-2 $BASE/delete_me
 +
# rm -rf delete_me &
 +
mv $BASE/w-1 $BASE/w-2
 +
mv $BASE/current $BASE/w-1
 +
 +
mkdir -p $BASE/current/armv5l_full
 +
mkdir -p $BASE/current/armv7l_full
 +
mkdir -p $BASE/current/i586_full
 +
 +
find $BASE/${build}/core/repos/ia32/ -name *rpm | xargs -I@ ln @ $BASE/current/i586_full
 +
find $BASE/${build}/core/repos/armv5tel/ -name *rpm | xargs -I@ ln @ $BASE/current/armv5l_full
 +
find $BASE/${build}/core/repos/armv7l/ -name *rpm | xargs -I@ ln @ $BASE/current/armv7l_full
</pre>
</pre>
-
hmm, now what to do with the mirror.
+
Now on the be:
 +
<pre>
 +
/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:current standard i586
 +
/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:current standard armv5el
 +
/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:current standard armv7el
 +
</pre>
-
REPO=/backend_storage/MeeGo/
 
-
find $REPO -name *rpm | xargs -I@ ln @ armel_full
 
[[Category:OpenSuse build service]]
[[Category:OpenSuse build service]]

Revision as of 09:27, 14 July 2010

MeeGo

Targets:

MeeGo:1.0:Core

# Specify the OBS we're working on
API=http://api.obs.maemo.org/

# Get the binaries
mkdir -p /backend_storage/MeeGo/1.0/ia32
cd  /backend_storage/MeeGo/1.0/ia32
wget -e robots=off --accept \*.rpm --mirror --no-parent --progress=dot \
 --no-host-directories --cut-dirs=7 -nv \
 http://repo.m2.org/MeeGo/releases/1.0/core/repos/ia32/packages/


# Prepare for the :full dir for the OBS
OBS=/backend_storage/obs/meego1.0
mkdir -p $OBS/i586_full
REPO=/backend_storage/MeeGo/1.0/ia32/
cd $OBS
find $REPO -name *.rpm | xargs -I@ ln @ i586_full

# Not done (11 Jun)
OBS=/backend_storage/obs/meego1.0
mkdir -p $OBS/armel_full
REPO=/backend_storage/MeeGo/1.0/armv7l
cd $OBS
find $REPO -name *rpm | xargs -I@ ln @ armel_full



# On an OBS client
osc -A $API meta prj MeeGo:1.0:Core -F - <<XML
<project name="MeeGo:1.0:Core">
  <title>MeeGo 1.0</title>
  <description>
MeeGo from http://repo.m2.org/MeeGo/releases/1.0/core/repos
  </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/MeeGo\:1.0\:Core/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 MeeGo:1.0:Core standard i586
/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:1.0:Core standard armv7el

chown -R obsrun:obsrun /srv/obs/build/MeeGo:1.0:Core

Since this project is a target it needs a prjconf

MeeGo Current

On the be we must have done:

ln -s /backend_storage/obs/meego/current/armv7l_full/ /srv/obs/build/MeeGo:current/standard/armv7el/:full
ln -s /backend_storage/obs/meego/current/ia64_full/ /srv/obs/build/MeeGo:current/standard/ia64/:full


build=1.0.80.9.20100706.1
BASE=/backend_storage/obs/meego
DL=$BASE/${build}/
PRJ=$BASE/current

# download
FROM="http://repo.meego.com/MeeGo/builds/1.0.80/${build}/"
mkdir -p $DL
cd $DL

lftp -c "open $FROM; mirror"

mkdir -p $BASE/delete_me
mv $BASE/w-2 $BASE/delete_me
# rm -rf delete_me &
mv $BASE/w-1 $BASE/w-2
mv $BASE/current $BASE/w-1

mkdir -p $BASE/current/armv5l_full
mkdir -p $BASE/current/armv7l_full
mkdir -p $BASE/current/i586_full

find $BASE/${build}/core/repos/ia32/ -name *rpm | xargs -I@ ln @ $BASE/current/i586_full
find $BASE/${build}/core/repos/armv5tel/ -name *rpm | xargs -I@ ln @ $BASE/current/armv5l_full
find $BASE/${build}/core/repos/armv7l/ -name *rpm | xargs -I@ ln @ $BASE/current/armv7l_full

Now on the be:

/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:current standard i586
/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:current standard armv5el
/usr/lib/obs/server/bs_admin --rescan-repository MeeGo:current standard armv7el