Fetch pkg for other {$ABI}

Need fetch i386 arch. pkg on instead amd64.

I make this:
Code:
   # cat /etc/pkg/FreeBSD.conf
   FreeBSD: {
     url: "pkg+http://pkg.freebsd.org/${ABI}/latest"
     mirror_type: "srv",
     signature_type: "fingerprints",
     fingerprints: "/usr/share/keys/pkg",
     enabled: yes
   }

   # mkdir -p ./tmp/i386
   # pkg -o ABI=FreeBSD:13:i386 fetch -Ud -r FreeBSD -o ./tmp/i386 wine mesa-dri
...
   pkg: wrong architecture: freebsd:13:i386 instead of FreeBSD:13:amd64
   pkg: repository FreeBSD contains packages with wrong ABI: FreeBSD:13:i386
 
   If set env:
   tcsh: # setenv IGNORE_OSVERSION yes
   bash/zsh: # export IGNORE_OSVERSION=yes
 
   # pkg -o ABI=FreeBSD:13:i386 fetch -Ud -o ./tmp/i386 mesa-dri wine
      Is Ok.
I suppose this assumes that the package dependencies are exactly
the same for all the ABIs that one would need.

But is there another and more correct way?
 
I suppose this assumes that the package dependencies are exactly
the same for all the ABIs that one would need.
There is only one ports tree. So everything has the same version and the same dependencies regardless of OS version or architecture. There might be some exceptions though (the DRM driver for example installs a different version based on the OS version).
 
# pkg -o ABI=FreeBSD:13:i386 fetch -Ud -o ./tmp/i386 mesa-dri wine
Is Ok.
[/code]
I suppose this assumes that the package dependencies are exactly
the same for all the ABIs that one would need.

But is there another and more correct way?

Hello,

the wine ports do contain an script to obtain i386 packages.
 
Back
Top