HOWTO setup an i386 pbuilder on amd64
This is mostly for my own reference, because the thing in the manual didn't work for me and it took too much googling. I just wanted these steps listed in order.
- debootstrap --variant=buildd --arch i386 --foreign sid base-i386
- chroot base-i386 /debootstrap/debootstrap --second-stage
- vi base-i386/etc/apt/sources.list (there must be some way to do this exactly like pbuilder --create?)
- (cd base-i386 && tar vczf /var/cache/pbuilder/base-i386.tgz .)
- pbuilder --update --basetgz /var/cache/pbuilder/base-i386.tgz
I'm not sure if this is quite right, as I did end up tidying up both amd64 and i386 by hand at some point. But it's functional.
