Results 1 to 9 of 9

Thread: Building 32bit apps with pbuilder on amd64?

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    Finland
    Beans
    650
    Distro
    The Feisty Fawn Testing

    Question Building 32bit apps with pbuilder on amd64?

    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!

  2. #2
    Join Date
    Jul 2005
    Location
    Sydney
    Beans
    2,543
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Building 32bit apps with pbuilder on amd64?

    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
    Code:
    sudo pbuilder create --distribution edgy --debootstrapopts --arch=i386 any other options
    That (eventually) worked for me (Debootstrap had problems downloading all the i386 packages, I don't know why).
    Remember: if your problem is not described on a Launchpad bug, it can only be fixed by accident!

  3. #3
    Join Date
    Apr 2006
    Location
    Finland
    Beans
    650
    Distro
    The Feisty Fawn Testing

    Smile Re: Building 32bit apps with pbuilder on amd64?

    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.

  4. #4
    Join Date
    Apr 2006
    Location
    Finland
    Beans
    650
    Distro
    The Feisty Fawn Testing

    Re: Building 32bit apps with pbuilder on amd64?

    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

  5. #5
    Join Date
    Apr 2006
    Location
    Finland
    Beans
    650
    Distro
    The Feisty Fawn Testing

    Re: Building 32bit apps with pbuilder on amd64?

    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

  6. #6
    Join Date
    Apr 2006
    Location
    Finland
    Beans
    650
    Distro
    The Feisty Fawn Testing

    Re: Building 32bit apps with pbuilder on amd64?

    Allright, seems like this longsome monolog is getting to an end;

    StevenK xopher: Right, it's pbuilder. --debootstrapopts --arch=i386 won't work, but --debootstrapopts --arch --debootstrapopts i386 will.
    creating the base.tgz atm, hope it will work allright

    Thanks all!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •