Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How I managed to use the buildsystem to build 32 bit packages on a 64bit machine
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jan Mette  
View profile  
 More options Jan 11 2010, 6:13 pm
From: Jan Mette <jan.me...@berlin.de>
Date: Tue, 12 Jan 2010 00:13:52 +0100
Local: Mon, Jan 11 2010 6:13 pm
Subject: Re: [chakra-devel] How I managed to use the buildsystem to build 32 bit packages on a 64bit machine

Yo :)

The good news:

Beside the separate cache dir, this whole multiarch thing is
now completely automated in the latest create-buildenv.sh in
svn. You can even install a Arch chroot on other distros now,
so far i have done some testing on Debian Lenny x86_64 building
for both archs and it works fine :) Other distros may work fine
too, but besides Debian there is no support for them in the script
so far.

To use it on Arch, you just have to add one more parameter for the
architecture. Thats it!

To use it on other distros, you need a pacman installation at first,
preferably pacman.static (the script will prefer pacman.static if found).
After having some breakage with alien i just unpacked the following
arch packages into the root of the debian install:
pacman, pacman-mirrorlist, pacman-static
Its a bit unclean,  but pacman is quite simple software, so i can
delete it manually if needed.
Just remember to get the correct architecture for your host system,
and you DONT need to configure pacman anymore to include the repos,
its all done by the script now, we just need the binaries :)

Apart from these changes, nothing much else has changed. Some problems
got solved the ugly way, like setting the right arch in makepkg for i686
on a x86_64 host, but so far it seems to work ;)

Also the actual buildscripts need some changes, i have done them in testing,
its just 2 lines per script or so.

The bad news:

After the next "svn up", your build env will probably be broken very badly,
you will need a deletion of the "KDEmod" dir and a complete reinstall.
Or better: do it now :) But mind that only the build scripts in testing
are done so far.

And some tips etc:

- building x86_64 packages on a i686 system is not possible
  (unless you run a customized x86_64 kernel on your i686 system)
- there are still bugs, i can smell them :)
- on Debian, pacman is very slow somehow, learn to deal with it
- stop-all.sh seems to be broken (again, after i thought i fixed it)
- you need to install repo-clean manually sometimes (better check it)

And at least, the actual "work" to get a shared build server is now
completed, we just need a big, powerful machine :) I have created a
build user on the main server, but it isnt that fast because the
machine already has a lot of stuff to do. However, if we cant find
a faster one we can use this one for now, probably with some
cpu-limiting tricks for the buildenvs. If someone wants to play with
the env on the server, just leave me a note.

Thats if for now, good night :)

Jan

Am Mittwoch 23 Dezember 2009 23:24:20 schrieb Dario Freddi:

> Yes, I did. However, it's not 100% tested and has it flaws, but it's
>  possible and if some buildsystem masters follow those steps, making it
>  automated won't be a big issue. Let's start. You need a fresh
>  create-buildenv.sh first.

>  - Create a new directory wherever you want. This directory will be an
> alternative pacman cache for i686 packages. Let's say our dir is
> /srv/store/drf/test32/pacmancache

>  - Copy your pacman.conf to another location, and switch its architecture
>  from x86_64 to i686. All the repositories. Let's say our pacman.conf with
>  i686 repositories is located at /srv/store/drf/test32/pacman32.conf

>  - Now, in create-buildenv.sh, each call to pacman must have the following
> additional options:

> --cachedir /srv/store/drf/test32/pacmancache --config
> /srv/store/drf/test32/pacman32.conf

> So a sample pacman call would look like:

> sudo pacman -r $BASEPATH/${REPO} --cachedir
>  /srv/store/drf/test32/pacmancache --config
>  /srv/store/drf/test32/pacman32.conf -Sy $BASEPKGS

> That's it. create your fresh new i686 chroot. Now there comes the bugs:

> You have to switch the architecture everywhere else in the buildsystem
> manually. Even if the system is i686, the buildsystem obviously doesn't
>  know that. So makepkg.conf and the stuff for upload (the 2 I run into, I
>  bet there's other stuff) need manual tweaks to work properly.

> More than that, it's pretty much working. I just uploaded
>  aqpm/shaman2/chase in playground i686, a friend of mine just reported they
>  work fine.

> Now it's your turn to try and make this process suck less and be automated.
>  Do it and we can all switch to 64 bit and still build for everyone :) (and
>  if this gets done the possibility of having a build machine is more
>  appealing)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.