How can I build 32bit apps with pbuilder on amd64? Ive looked at some guides for debian, but if someone could explain it all to me more simple, Id really appreciate it.
I have a running amd64 pbuilder already, which works like a charm.
Thanks!
How can I build 32bit apps with pbuilder on amd64? Ive looked at some guides for debian, but if someone could explain it all to me more simple, Id really appreciate it.
I have a running amd64 pbuilder already, which works like a charm.
Thanks!
Yup. I've just recently set one up, although that was during Edgy testing (so it might be easier for you).
Basically, the single command you want is
That (eventually) worked for me (Debootstrap had problems downloading all the i386 packages, I don't know why).Code:sudo pbuilder create --distribution edgy --debootstrapopts --arch=i386 any other options
Remember: if your problem is not described on a Launchpad bug, it can only be fixed by accident!
Thanks! Ive stumbled upon that cmd a few times, but nice making sure!
Edit; well, having some problems, I guess its my pbuilderrc not being as it should.Could you post yours?
This is mine:
Code:## Overrides /etc/pbuilderrc # Default distribution DISTRIBUTION=edgy COMPONENTS="main restricted universe multiverse" # Repositories MIRRORSITE=http://fi.archive.ubuntu.com/ubuntu OTHERMIRROR="deb ${MIRRORSITE} ${DISTRIBUTION}-updates ${COMPONENTS}|deb ${MIRRORSITE} ${DISTRIBUTION}-security ${COMPONENTS}" #OTHERMIRROR="deb ${MIRRORSITE} ${DISTRIBUTION}-updates ${COMPONENTS}|deb ${MIRRORSITE} ${DISTRIBUTION}-security ${COMPONENTS}" # For build results BUILDRESULT=${HOME}/pbuilder/edgy32/result # Hooks for chroot environment HOOKDIR=${HOME}/pbuilder/edgy32/hook.d # Mount directories inside chroot environment BINDMOUNTS=${BUILDRESULT} # Bash prompt inside pbuilder export debian_chroot="pbuild$$" # For D70results hook export LOCALREPO=${BUILDRESULT} # Always include source package DEBBUILDOPTS="-sa"
Last edited by xopher; October 31st, 2006 at 09:27 PM.
Oh, and this is the error Im getting:
Code:sudo pbuilder32 create --debootstrapopts --arch=i386 W: Build-result Directory /home/xopher/pbuilder/pbuilder32/result does not exist Distribution is edgy. Building the build environment -> running debootstrap /usr/sbin/debootstrap E: No such script: http://fi.archive.ubuntu.com/ubuntu pbuilder: debootstrap failed -> Aborting with an error -> cleaning the build env -> removing directory /var/cache/pbuilder/build//17046 and its subdirectories
And here's my pbuilder32,
Code:#!/bin/sh # script from Jamin W. Collins BTS: #255165 # name this script 'pbuilder-woody', 'pbuilder-sid', 'pbuilder-sarge' etc. # # The script currently contains a minor, but harmless error # See https://launchpad.net/distros/ubuntu/+source/pbuilder/+bug/57284 OPERATION=$1 DISTRIBUTION=`basename $0 | cut -f2 -d '-'` PROCEED=false BASE_DIR="/var/cache/pbuilder" RESULT_DIR="/home/xopher/pbuilder" case $OPERATION in create|update|build|clean|login|execute ) PROCEED=true ;; esac if ( $PROCEED == true ) then shift sudo /usr/sbin/pbuilder $OPERATION \ --basetgz $BASE_DIR/$DISTRIBUTION/base.tgz \ --distribution $DISTRIBUTION \ --configfile $BASE_DIR/$DISTRIBUTION/pbuilderrc \ --aptconfdir $BASE_DIR/$DISTRIBUTION/apt.config \ --buildresult $RESULT_DIR/$DISTRIBUTION/result $@ else echo "Invalid command..." echo "Valid commands are:" echo " create" echo " update" echo " build" echo " clean" echo " login" echo " execute" exit 1 fi
Allright, seems like this longsome monolog is getting to an end;
creating the base.tgz atm, hope it will work allrightStevenK xopher: Right, it's pbuilder. --debootstrapopts --arch=i386 won't work, but --debootstrapopts --arch --debootstrapopts i386 will.
Thanks all!
Bookmarks