You are not logged in.

#1 2010-09-01 18:25:48

godane
Member
From: NH, USA
Registered: 2008-02-03
Posts: 241
Website

absbb: Archlinux abs build bot

I have been writing a script so we could have a build bot like slitaz project has. The idea is so we can have a build bot website that could be like this http://bb.slitaz.org/.

Archlinux build bot tool

Usage:  absbb [command] pkg.list
Commands: 

  usage                   Print this short usage and command list.
  extra-i686-build        Build chroot extra i686.
  extra-x86_64-build      Build chroot extra x86_64.
  testing-i686-build      Build chroot testing i686.
  testing-x86_64-build    Build chroot testing x86_64.
  staging-i686-build      Build chroot staging i686.
  staging-x86_64-build    Build chroot staging x86_64.
  multilib-build          Build chroot multilib. (x86_64 only)

To get started you just have to do this in root:

abs
absbb extra-i686-build pkg.list

i recommend a pkg.list file like this (I used this list for my testing):

bash
zlib
linux-firmware

The pkg.list is a list of pkgbuilds you want to rebuild in chroot. There copied from /var/abs($ABSROOT) folder to /work/pkgbuild folder in chroot. I use xyne's makerepo for building the list of packages since it will allow users to have there own repo of packages.

I mount bind 4 folders into chroot /work folder.

$HOME/packages into $HOME/chroots/extra-i686/root/work/pkgdest
$HOME/repo into $HOME/chroots/extra-i686/root/work/repo
$HOME/logs into $HOME/chroots/extra-i686/root/work/logs
$HOME/sources into $HOME/chroots/extra-i686/root/work/srcdest

The repo folder will be purge on every time you called absbb. This is cause makerepo doesn't like it when packages and database are there. The packages are still save if you are not rebuild the same list over again. I added a -f to MKARGS variable in absbb.conf file so things go smoothly.

main testing branch:
http://github.com/godane/devtools-pkgbuild/tree/archbb

alpha1 release:
http://github.com/godane/devtools-pkgbu … sbb-alpha1

I hope this helps.

PS I very bad with document. I'm sorry if you have trouble understand me.


I'm working on a live cds based on Archlinux. http://godane.wordpress.com/

Offline

#2 2010-09-01 19:13:11

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: absbb: Archlinux abs build bot

i think bauerbill can do just the same.
are dependencies which are necessary to build packages installed into the chroot or into my running system?

Offline

#3 2010-09-01 20:03:20

godane
Member
From: NH, USA
Registered: 2008-02-03
Posts: 241
Website

Re: absbb: Archlinux abs build bot

@arch0r
Depends are installed into chroot cause absbb runs mkarchroot and everything is build in $HOME/chroots/repo-arch/root.


I'm working on a live cds based on Archlinux. http://godane.wordpress.com/

Offline

#4 2010-09-02 09:18:47

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: absbb: Archlinux abs build bot

godane wrote:

@arch0r
Depends are installed into chroot cause absbb runs mkarchroot and everything is build in $HOME/chroots/repo-arch/root.

ok that's nice. so do i have to run it as root, or is it also possible to build packages as normal user?

Offline

#5 2010-09-02 18:54:15

godane
Member
From: NH, USA
Registered: 2008-02-03
Posts: 241
Website

Re: absbb: Archlinux abs build bot

It has to be run as root. This is mostly cause of it uses a lot mount commands. Also abs default root folder is /var/abs.


I'm working on a live cds based on Archlinux. http://godane.wordpress.com/

Offline

Board footer

Powered by FluxBB