i386/amd64 coexistence

Mark Felder feld at FreeBSD.org
Mon Nov 25 15:13:17 UTC 2013


On Nov 24, 2013, at 14:47, Sean Bruno <sean_bruno at yahoo.com> wrote:

> I'm trying to understand two things simultaneously.
> 
> 1.  How to build a useable emulators/wine with poudriere.
> I *think* I have to build this in an i386 jail for this and it does
> build there.  I keep being pointed at i386-wine though, so I'm very
> confused as to what am I supposed to use here.
> 

What we currently have in ports (i386-wine) is a precompiled package for amd64. Building it requires a 32bit chroot or jail and then packaging up not only wine but all of its 32bit dependencies. It is very tedious and the guy who is doing it has it down to a science. We can’t really build this in poudriere as the resulting package will be 32bit and you won’t be able to install it on amd64 because pkg will notice the arch difference.

> 2.  How to maintain and use an i386 & amd64 repo locally on my machine.
> If I need to use a i386 pkg repo locally, how do I innstall from it if
> my machine is amd64?  I'm super happy with poudriere thus far and am
> looking to figure out how to install from a second repo if I want to.
> Currently, my pkg.conf defines:
> 
> PACKAGESITE	    :
> file:///usr/local/poudriere/data/packages/11amd64-default

You can use multiple repos, but I don’t think you will be able to use a different architecture.

If you want to use multiple repos, however, you should also move to the new pkg configuration format:

/usr/local/etc/pkg/repos/*.conf

You can put all of your repos into their own config files. Format looks like this:

FreeBSD: {
 url: "http://pkg.FreeBSD.org/${ABI}/latest”,
 mirror_type: "srv”,
  enabled: yes
}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20131125/82808fcc/attachment.sig>


More information about the freebsd-pkg mailing list