[GRASS-dev] [GRASS GIS] #1272: build weekly binary snapshots for generic 32bit linux

#1272: build weekly binary snapshots for generic 32bit linux
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: task | Status: new
Priority: normal | Milestone: Website
Component: Packaging | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------
Hi,

I didn't see an existing bug report for this known problem, so I'll start
a new one for it.

right now we only provide 64 bit binaries for the weekly generic linux
builds, as that's what the build server is. we haven't been able to figure
out how to cross-compile to output 32bit binaries from a 64bit system.

short of doing that properly/directly from the ./configure line
(suggestions welcome), following in this bug report are some notes for
setting up "schroot" on Debian to set up a 32 bit Ubuntu/Lucid change-root
environment.

to decide: run it on the projects or adhoc server?

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1272&gt;
GRASS GIS <http://grass.osgeo.org>

#1272: build weekly binary snapshots for generic 32bit linux
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: task | Status: new
Priority: normal | Milestone: Website
Component: Packaging | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by hamish):

(replace "lucid" in the steps with debian release used on the server. make
sure release is uncommented in /etc/schroot/schroot.conf and debootstrap
release,mirror site are set appropriately)

{{{
aptitude install schroot debootstrap

mkdir -p /var/chroot

cd /etc/schroot/
vi schroot.conf

debootstrap --arch i386 --variant=buildd lucid \
    /var/chroot/lucid http://ucmirror.canterbury.ac.nz/ubuntu

mv lucid/ lucid_32bit

cd lucid_32bit/etc/

cd apt
mv sources.list sources.list.orig
cp /etc/apt/sources.list .
cd

mount -t proc proc-chroot /var/chroot/lucid_32bit/proc
mount -t devpts devpts-chroot /var/chroot/lucid_32bit/dev/pts

chroot /var/chroot/lucid_32bit
# edit /etc/fstab while in there?

# copy stuff into the chroot world
cp ~hamish/.inputrc /var/chroot/lucid_32bit/home/hamish/
cp -r /usr/local/src/grass/ /var/chroot/lucid_32bit/usr/local/src/

# copy stuff out of the 32bit chroot back into the native 64bit enviro
cp /var/chroot/lucid_32bit/home/hamish/bin/program.32bit .
}}}

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1272#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1272: build weekly binary snapshots for generic 32bit linux
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: task | Status: new
Priority: normal | Milestone: Website
Component: Packaging | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by neteler):

Replying to [ticket:1272 hamish]:
...
> to decide: run it on the projects or adhoc server?

Perhaps set up a test installation on the adhoc server, if running, repeat
on projectsVM?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1272#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1272: build weekly binary snapshots for generic 32bit linux
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: task | Status: new
Priority: normal | Milestone: Website
Component: Packaging | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by hamish):

hamish:
> > to decide: run it on the projects or adhoc server?
Replying to [comment:2 neteler]:
> Perhaps set up a test installation on the adhoc server, if running,
repeat on projectsVM?

sounds good.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1272#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1272: build weekly binary snapshots for generic 32bit linux
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: task | Status: new
Priority: normal | Milestone: Website
Component: Packaging | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by hamish):

fwiw Alex asked some weeks ago that we not put any new strain on the VMs
for a little while. But a locally controlled build-bot system is still on
the wish list.

For nightly Ubuntu packages we can make use of Timmie's recipes on the
Ubuntu Team-GRASS PPA.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1272#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>