The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Mer OBS Build

From Mer Wiki
(Difference between revisions)
Jump to: navigation, search
(initial page)
 
(copy the suse apache and rubygem-passenger to Mer:OBS)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Mer OBS Build ==
 
 
 
https://bugs.merproject.org/show_bug.cgi?id=145
 
https://bugs.merproject.org/show_bug.cgi?id=145
 +
 +
apache:
 +
From http://lists.opensuse.org/archive/opensuse-buildservice/2011-06/msg00134.html
 +
Please note that current apache2 versions have a known bug which cuts the http
 +
headers regardless to it's configuration. Please use apache2 from openSUSE:Tools
 +
project to get this fixed for now.
 +
 +
This needs apache2-mod_xforward and rubygem-passenger to be built against the apache in the Mer OBS project
 +
 +
See https://bugs.merproject.org/show_bug.cgi?id=278
  
 
* First time setup :
 
* First time setup :
   
+
  osc -A suse copypac openSUSE:Tools apache2 -t cobs Mer:OBS:Testing:Devel -m "initial import"
 +
 
 
   for i in \
 
   for i in \
 +
  apache-mod_xforward \
 
   rubygems \
 
   rubygems \
 
   build-server \
 
   build-server \
Line 13: Line 23:
 
   rubygem-actionmailer-2_3  \
 
   rubygem-actionmailer-2_3  \
 
   rubygem-activeresource-2_3 \
 
   rubygem-activeresource-2_3 \
 +
  rubygem-builder-2_1 \
 +
  rubygem-ci_reporter \
 +
  ruby-ldap \
 +
  rubygem-nokogiri \
 
   rubygem-rmagick \
 
   rubygem-rmagick \
 
   rubygem-rack-1_1 \
 
   rubygem-rack-1_1 \
 +
  rubygem-passenger \
 
   build \
 
   build \
 
   build-initvm \
 
   build-initvm \
  rubygem-gruff \
 
 
   rubygem-json \
 
   rubygem-json \
 
   rubygem-libxml-ruby\
 
   rubygem-libxml-ruby\
Line 24: Line 38:
 
   do
 
   do
 
   osc -A suse copypac openSUSE:Tools:Unstable $i -t cobs Mer:OBS:Testing -m "initial import"
 
   osc -A suse copypac openSUSE:Tools:Unstable $i -t cobs Mer:OBS:Testing -m "initial import"
 +
  done
 +
 +
  # The latest rubygem-daemons doesn't build for 11.4 so an earlier version is used
 +
  for i in \
 +
    rubygem-gruff \
 +
    rubygem-daemons \
 +
  do
 +
    osc -A suse copypac openSUSE:Tools:2.1 $i -t cobs Mer:OBS:Testing $i-2.1 -m "initial import"
 
   done
 
   done
  
Line 32: Line 54:
 
   rubygem-daemons \
 
   rubygem-daemons \
 
   rubygem-exception_notification \
 
   rubygem-exception_notification \
 +
  rubygem-rdoc \
 
   do
 
   do
 
   osc -A suse copypac openSUSE:Tools $i -t cobs Mer:OBS:Testing -m "initial import"
 
   osc -A suse copypac openSUSE:Tools $i -t cobs Mer:OBS:Testing -m "initial import"
 
   done
 
   done
 
  VERSION=2.2.120
 
  BRANCH_OR_TAG=master
 
  
 
* Update from git periodically :
 
* Update from git periodically :
  
  git clone git://github.com/openSUSE/open-build-service.git open-build-service
+
#!/bin/bash
  #git clone git://github.com/Merproject/open-build-service.git open-build-service
+
set -x
  pushd open-build-service
+
set -e
  git archive --prefix=build-service-$VERSION/ $BRANCH_OR_TAG | bzip2 - > ../obs-server-$VERSION.tar.bz2
+
BRANCH_OR_TAG=master
  sha1sum=$(git rev-list --max-count=1 --abbrev-commit master)
+
osc co Mer:OBS:Testing:Devel || true
  popd
+
pushd Mer:OBS:Testing:Devel/obs-server
  sed -i -e "s/^Release:.*$/Release:    $sha1sum/g" obs-server.spec
+
osc up
 +
VERSION=$(grep Version: obs-server.spec | gawk '{ print $2 }' | sed -e 's/\.git.*//')
 +
git clone git://github.com/Merproject/open-build-service.git open-build-service || true
 +
pushd open-build-service
 +
git pull --force
 +
sha1sum=$(git rev-list --max-count=1 --abbrev-commit $BRANCH_OR_TAG)
 +
VERSHA="$VERSION".git"$sha1sum"
 +
git archive --prefix=build-service-$VERSHA/ $BRANCH_OR_TAG | bzip2 - > ../obs-server-$VERSHA.tar.bz2
 +
popd
 +
sed -i -e "s/^Version:.*$/Version:    $VERSHA/g" obs-server.spec
 +
git clone git://github.com/openSUSE/opensuse-themes.git opensuse-themes || true
 +
pushd opensuse-themes
 +
git archive --prefix=opensuse-themes-2.2.115/ master | bzip2 - > ../opensuse-themes-2.2.115.tar.bz2
 +
popd
 +
popd
 +
pushd Mer:OBS:Testing:Devel/build
 +
osc up
 +
VERSION=$(grep Version: build.spec | gawk '{ print $2 }' | sed -e 's/\.git.*//')
 +
git clone git://github.com/Merproject/obs-build.git || true
 +
pushd obs-build
 +
git pull --force
 +
sha1sum=$(git rev-list --max-count=1 --abbrev-commit $BRANCH_OR_TAG)
 +
VERSHA="$VERSION".git"$sha1sum"
 +
git archive --prefix=obs-build-$VERSHA/ $BRANCH_OR_TAG | bzip2 - > ../obs-build-$VERSHA.tar.bz2
 +
popd
 +
sed -i -e "s/^Version:.*$/Version:    $VERSHA/g" build.spec
 +
 
 +
 
  
  git clone git://github.com/openSUSE/opensuse-themes.git opensuse-themes
+
[[Category:Obs]]
  pushd opensuse-themes
+
  git archive --prefix=opensuse-themes-2.2.115/ master | bzip2 - > ../opensuse-themes-2.2.115.tar.bz2
+
  popd
+

Latest revision as of 21:18, 4 April 2012

https://bugs.merproject.org/show_bug.cgi?id=145

apache:
From http://lists.opensuse.org/archive/opensuse-buildservice/2011-06/msg00134.html
Please note that current apache2 versions have a known bug which cuts the http
headers regardless to it's configuration. Please use apache2 from openSUSE:Tools
project to get this fixed for now.

This needs apache2-mod_xforward and rubygem-passenger to be built against the apache in the Mer OBS project

See https://bugs.merproject.org/show_bug.cgi?id=278

  • First time setup :
osc -A suse copypac openSUSE:Tools apache2 -t cobs Mer:OBS:Testing:Devel -m "initial import"
 for i in \
  apache-mod_xforward \
  rubygems \
  build-server \
  rubygem-activesupport-2_3 \
  rubygem-activerecord-2_3 \
  rubygem-actionpack-2_3 \
  rubygem-actionmailer-2_3  \
  rubygem-activeresource-2_3 \
  rubygem-builder-2_1 \
  rubygem-ci_reporter \
  ruby-ldap \
  rubygem-nokogiri \
  rubygem-rmagick \
  rubygem-rack-1_1 \
  rubygem-passenger \
  build \
  build-initvm \
  rubygem-json \
  rubygem-libxml-ruby\
  rubygem-rails_xss \
  perl-File-Sync \
  do
 osc -A suse copypac openSUSE:Tools:Unstable $i -t cobs Mer:OBS:Testing -m "initial import"
 done
 # The latest rubygem-daemons doesn't build for 11.4 so an earlier version is used
 for i in \
   rubygem-gruff \
   rubygem-daemons \
 do
   osc -A suse copypac openSUSE:Tools:2.1 $i -t cobs Mer:OBS:Testing $i-2.1 -m "initial import"
 done
 for i in \
 perl-BSSolv \
 rubygem-rdoc \
 rubygem-delayed_job \
 rubygem-daemons \
 rubygem-exception_notification \
 rubygem-rdoc \
 do
 osc -A suse copypac openSUSE:Tools $i -t cobs Mer:OBS:Testing -m "initial import"
 done
  • Update from git periodically :
#!/bin/bash
set -x
set -e
BRANCH_OR_TAG=master
osc co Mer:OBS:Testing:Devel || true
pushd Mer:OBS:Testing:Devel/obs-server
osc up
VERSION=$(grep Version: obs-server.spec | gawk '{ print $2 }' | sed -e 's/\.git.*//')
git clone git://github.com/Merproject/open-build-service.git open-build-service || true
pushd open-build-service
git pull --force
sha1sum=$(git rev-list --max-count=1 --abbrev-commit $BRANCH_OR_TAG)
VERSHA="$VERSION".git"$sha1sum"
git archive --prefix=build-service-$VERSHA/ $BRANCH_OR_TAG | bzip2 - > ../obs-server-$VERSHA.tar.bz2
popd
sed -i -e "s/^Version:.*$/Version:    $VERSHA/g" obs-server.spec
git clone git://github.com/openSUSE/opensuse-themes.git opensuse-themes || true
pushd opensuse-themes
git archive --prefix=opensuse-themes-2.2.115/ master | bzip2 - > ../opensuse-themes-2.2.115.tar.bz2
popd
popd
pushd Mer:OBS:Testing:Devel/build
osc up
VERSION=$(grep Version: build.spec | gawk '{ print $2 }' | sed -e 's/\.git.*//')
git clone git://github.com/Merproject/obs-build.git || true
pushd obs-build
git pull --force
sha1sum=$(git rev-list --max-count=1 --abbrev-commit $BRANCH_OR_TAG)
VERSHA="$VERSION".git"$sha1sum"
git archive --prefix=obs-build-$VERSHA/ $BRANCH_OR_TAG | bzip2 - > ../obs-build-$VERSHA.tar.bz2
popd
sed -i -e "s/^Version:.*$/Version:    $VERSHA/g" build.spec
Personal tools