Le 18.02.2006 18:08, GruiicK a écrit :

>GruiicK a écrit :
>  
>
>>Olivier Serres a écrit :
>>
>>    
>>
>>>J'ai corrigé le svn tu devrait réessayer. (Oublie pas de 
>>>repartir ./autogen.sh ... jusqu'au make install)
>>>      
>>>
>>C'est fait. Le jeu se lance bien, je peux naviguer dans les menus,
>>lancer une partie, etc...
>>    
>>
>
>J'ai réussi à faire plusieurs parties sans utiliser le bazooka, donc,
>on va dire que pour une béta, ça fonctionne pas si mal =)
>
>Pour les builds .deb PPC, comment ça marche ? Comment je fais ?
>
>A+, Loïs
>  
>
(In English, as other people could be interested in building the packages)
I use pbuilder to build packages on each different distribution. And I
try to save place putting in common wormux-data and source packages.
Please have a look at joint files :
- build_debs.sh launch pbuilder for each dist, using pbuilderrc.<dist>
- build_apt.sh generates Packages.gz and Sources.gz files

For information, my "debs workshop" is organized as followed :
debian/
debian/dists-in/    -> contains source packages
debian/dists/         -> contains build packages, Sources.gz andPackages.gz
debian/pbuilder/  
debian/pbuilder/<dist>/base.tgz  -> is the file used by pbuilder for
each distrib and generated by "pbuilder generate ..." (RTFM ;-) )

While I tried to have one pool dir for all arch/dist, I had some
troubles as wormux-data for amd64 and i386 was not exactly the same. I
don't why. Waiting for this problem being solved, I abandonned the idea
to have exactly one pool for all, but I have one pool by architecture.
So that, on gna.org, you can see there are these dirs:
pool
pool-amd64
breezy
breezy-amd64
etc.

Last but not least :-) On stable dists (breezy and sarge), the
libsdl-gfx version is not recent enough. So, here it is what I've done:
I got the source package from dapper or sid (it's the same) and I
compiled it for each stable dist. Then I have a local web server which
provide the packages and I added this web server address into the
sources.list of the base.tgz base distrib for sarge and breezy -> this
imply you build 2 base.tgz : one for building libsdl-gfx and then one
for wormux, where you added the local deb repository. Is this clear ? :-/

I hope this will help you.

Cheers, Jean

-- 
 ________________________________________ 
/ Le problème de la distinction entre   \
| nombres premiers et nombres composés, |
| et celui de la décomposition d'un     |
| nombre en produit de facteurs premiers |
| sont les plus importantes et les plus  |
| utiles de toute l'arithmétique. [...] |
| L'honneur de la science semble exiger  |
| qu'on cultive avec zèle tout progrès |
| dans la solution de ces élégantes et |
| célèbres questions. -+- Carl         |
\ Friedrich Gauss -+-                    /
 ---------------------------------------- 
        \   ^__^
         \  (..)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Attachment: build_apt.sh
Description: application/shellscript

Attachment: build_debs.sh
Description: application/shellscript

# this is your configuration file for pbuilder.
# the file in /usr/share/pbuilder/pbuilderrc is the default template.
# /etc/pbuilderrc is the one meant for editing.
#
# read pbuilderrc.5 document for notes on specific options.

pbuilder_base=$HOME/debian/pbuilder/breezy

BASETGZ=$pbuilder_base/base.tgz
#EXTRAPACKAGES=gcc3.0-athlon-builder
#export DEBIAN_BUILDARCH=athlon
BUILDPLACE=$pbuilder_base/build/
MIRRORSITE=http://fr.archive.ubuntu.com/ubuntu
#NONUSMIRRORSITE="http://ftp.jp.debian.org/debian-non-US";
OTHERMIRROR="deb http://fr.archive.ubuntu.com/ubuntu breezy restricted universe 
multiverse
deb http://localhost/sdl_gfx breezy/"
#export http_proxy=http://your-proxy:8080/
USEPROC=yes
USEDEVPTS=yes
USEDEVFS=no
BUILDRESULT=$pbuilder_base/result/

# specifying the distribution forces the distribution on "pbuilder update"
DISTRIBUTION=breezy
#specify the cache for APT 
APTCACHE=$pbuilder_base/pbuilder/aptcache/
APTCACHEHARDLINK="yes"
REMOVEPACKAGES="lilo"
#HOOKDIR="/usr/lib/pbuilder/hooks"
HOOKDIR=""

# make debconf not interact with user
export DEBIAN_FRONTEND="noninteractive"

DEBEMAIL=""

#for pbuilder debuild
BUILDSOURCEROOTCMD="fakeroot"
PBUILDERROOTCMD="sudo"

#default is to build everything. Passed on to dpkg-buildpackage
#DEBBUILDOPTS="-b"
DEBBUILDOPTS=""

#APT configuration files directory
APTCONFDIR=""

# the username and ID used by pbuilder, inside chroot. Needs fakeroot, really
BUILDUSERID=1234
#BUILDUSERNAME=pbuilder

# BINDMOUNTS is a space separated list of things to mount
# inside the chroot.
BINDMOUNTS=""

# Set the debootstrap variant to 'buildd' type.
# DEBOOTSTRAPOPTS[0]='--variant=buildd'
# or work around bug in debootstrap 3.0.0 (314858)
unset DEBOOTSTRAPOPTS

# Set the PATH I am going to use inside pbuilder: default is 
"/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"

# SHELL variable is used inside pbuilder by commands like 'su'; and they need 
sane values
export SHELL=/bin/bash

# The name of debootstrap command.
DEBOOTSTRAP="debootstrap"
# this is your configuration file for pbuilder.
# the file in /usr/share/pbuilder/pbuilderrc is the default template.
# /etc/pbuilderrc is the one meant for editing.
#
# read pbuilderrc.5 document for notes on specific options.

pbuilder_base=$HOME/debian/pbuilder/dapper

BASETGZ=$pbuilder_base/base.tgz
#EXTRAPACKAGES=gcc3.0-athlon-builder
#export DEBIAN_BUILDARCH=athlon
BUILDPLACE=$pbuilder_base/build/
MIRRORSITE=http://fr.archive.ubuntu.com/ubuntu
#NONUSMIRRORSITE="http://ftp.jp.debian.org/debian-non-US";
OTHERMIRROR="deb http://fr.archive.ubuntu.com/ubuntu dapper restricted universe 
multiverse"
#export http_proxy=http://your-proxy:8080/
USEPROC=yes
USEDEVPTS=yes
USEDEVFS=no
BUILDRESULT=$pbuilder_base/result/

# specifying the distribution forces the distribution on "pbuilder update"
DISTRIBUTION=dapper
#specify the cache for APT 
APTCACHE=$pbuilder_base/pbuilder/aptcache/
APTCACHEHARDLINK="yes"
REMOVEPACKAGES="lilo"
#HOOKDIR="/usr/lib/pbuilder/hooks"
HOOKDIR=""

# make debconf not interact with user
export DEBIAN_FRONTEND="noninteractive"

DEBEMAIL=""

#for pbuilder debuild
BUILDSOURCEROOTCMD="fakeroot"
PBUILDERROOTCMD="sudo"

#default is to build everything. Passed on to dpkg-buildpackage
#DEBBUILDOPTS="-b"
DEBBUILDOPTS=""

#APT configuration files directory
APTCONFDIR=""

# the username and ID used by pbuilder, inside chroot. Needs fakeroot, really
BUILDUSERID=1234
#BUILDUSERNAME=pbuilder

# BINDMOUNTS is a space separated list of things to mount
# inside the chroot.
BINDMOUNTS=""

# Set the debootstrap variant to 'buildd' type.
# DEBOOTSTRAPOPTS[0]='--variant=buildd'
# or work around bug in debootstrap 3.0.0 (314858)
unset DEBOOTSTRAPOPTS

# Set the PATH I am going to use inside pbuilder: default is 
"/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"

# SHELL variable is used inside pbuilder by commands like 'su'; and they need 
sane values
export SHELL=/bin/bash

# The name of debootstrap command.
DEBOOTSTRAP="debootstrap"
# this is your configuration file for pbuilder.
# the file in /usr/share/pbuilder/pbuilderrc is the default template.
# /etc/pbuilderrc is the one meant for editing.
#
# read pbuilderrc.5 document for notes on specific options.

pbuilder_base=$HOME/debian/pbuilder/sarge

BASETGZ=$pbuilder_base/base.tgz
#EXTRAPACKAGES=gcc3.0-athlon-builder
#export DEBIAN_BUILDARCH=athlon
BUILDPLACE=$pbuilder_base/build/
MIRRORSITE=http://ftp.fr.debian.org/debian
#NONUSMIRRORSITE="http://ftp.jp.debian.org/debian-non-US";
OTHERMIRROR="deb http://ftp.fr.debian.org/debian sarge contrib non-free
deb http://localhost/sdl_gfx sarge/"
#export http_proxy=http://your-proxy:8080/
USEPROC=yes
USEDEVPTS=yes
USEDEVFS=no
BUILDRESULT=$pbuilder_base/result/

# specifying the distribution forces the distribution on "pbuilder update"
DISTRIBUTION=sarge
#specify the cache for APT 
APTCACHE=$pbuilder_base/pbuilder/aptcache/
APTCACHEHARDLINK="yes"
REMOVEPACKAGES="lilo"
#HOOKDIR="/usr/lib/pbuilder/hooks"
HOOKDIR=""

# make debconf not interact with user
export DEBIAN_FRONTEND="noninteractive"

DEBEMAIL=""

#for pbuilder debuild
BUILDSOURCEROOTCMD="fakeroot"
PBUILDERROOTCMD="sudo"

#default is to build everything. Passed on to dpkg-buildpackage
#DEBBUILDOPTS="-b"
DEBBUILDOPTS=""

#APT configuration files directory
APTCONFDIR=""

# the username and ID used by pbuilder, inside chroot. Needs fakeroot, really
BUILDUSERID=1234
#BUILDUSERNAME=pbuilder

# BINDMOUNTS is a space separated list of things to mount
# inside the chroot.
BINDMOUNTS=""

# Set the debootstrap variant to 'buildd' type.
# DEBOOTSTRAPOPTS[0]='--variant=buildd'
# or work around bug in debootstrap 3.0.0 (314858)
unset DEBOOTSTRAPOPTS

# Set the PATH I am going to use inside pbuilder: default is 
"/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"

# SHELL variable is used inside pbuilder by commands like 'su'; and they need 
sane values
export SHELL=/bin/bash

# The name of debootstrap command.
DEBOOTSTRAP="debootstrap"

Attachment: pbuilderrc.sid
Description: audio/prs.sid

Répondre à