Solved What about multiarch

Hi everybody,

I wonder if it's possible to install both 32bit and 64bit libraries like freetype2 with pkg (provided the lib32 basesystem installed) ?

I've tried :
# pkg -o ABI=freebsd:13:i386 install freetype2
pkg: http://pkgmir.geo.freebsd.org/freebsd:13:i386/quarterly/meta.txz: Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkgmir.geo.freebsd.org/freebsd:13:i386/quarterly/packagesite.pkg: Not Found
pkg: http://pkgmir.geo.freebsd.org/freebsd:13:i386/quarterly/packagesite.txz: Not Found
Unable to update repository FreeBSD
Error updating repositories
 
There is no multiarch support in FreeBSD ports. And IMHO, the times when this would have been useful are over anyways, so no need to think about a solution.

That said, you can install 32bit packages, but without also adding an alternative root prefix, they would conflict with the 64bit packages (installing into exactly the same paths).

I'm aware of one single use case where 32bit packages are needed, that is WoW64 support in wine. You might want to look at the script wine installs to enable installing 32bit packages into an alternative root to get an idea how to do it: /usr/local/share/wine/pkg32.sh.
 
You've guessed it. I'm trying to build wine 8.5 with wow64 implemented by multiarch freebsd.
Previously, i've tried the new and expérimental purely wine wow64 implementation.
But, run is not concluant : a message stack overflow of about 1500 bytes occurs for any PE32 exécutable.

Thanks a lot
 
You've guessed it. I'm trying to build wine 8.5 with wow64 implemented by multiarch freebsd.
Well, as I said, there is no multiarch support. The wine ports work around this using scripts, one to install (quoted above) the 32bit packages to an alternative root, one for wine startup so the 32bit libs and binaries are actually found as needed.

If you want to try building a newer wine version, you'll probably have more luck starting from the existing ports and trying to upgrade them.
 
Back
Top