Hello,
Thank you for your replies!
The packages are nginx, php83, php83-fpm, nghttp2, certbot and
certbot-nginx.
I built these packages on two different Apple Silicon Macs without
Rosetta 2 installed.
Each mpkg installer presents me the message to install Rosetta (see
attached screenshot).
This is how I setup MacPorts and create the mpkg files (in this case
there is no port file used):
⁃ curl
https://distfiles.macports.org/MacPorts/MacPorts-2.10.5.tar.bz2 >
~/Desktop/MacPorts-2.10.5.tar.bz2 && tar -xf
~/Desktop/MacPorts-2.10.5.tar.bz2 && mv ~/MacPorts-2.10.5 ~/Desktop &&
rm ~/Desktop/MacPorts-2.10.5.tar.bz2 && open
https://distfiles.macports.org/MacPorts/
⁃ xcode-select --install
⁃ cd ~/Desktop/MacPorts-2.10.5 && export
PATH=/bin:/sbin:/usr/bin:/usr/sbin &&
MP_PREFIX=/opt/macports-bin-pkg-version && ./configure
--prefix=$MP_PREFIX --with-applications-dir=$MP_PREFIX/Applications
--without-startupitems && make && sudo make install
⁃ sudo vi /etc/paths
⁃ add on the bottom:
/opt/macports-bin-pkg-version/bin
⁃ vi ~/.zprofile
⁃ add: export
PATH="/opt/macports-bin-pkg-version/bin:/opt/macports-bin-pkg-version/sbin:$PATH"
⁃ quit and reopen the terminal
⁃ sudo port -d selfupdate
⁃ sudo port mpkg nginx && sudo port work nginx
⁃ sudo port mpkg nghttp2 && sudo port work nghttp2
⁃ sudo port mpkg php83 && sudo port work php83
⁃ sudo port mpkg php83-fpm && sudo port work php83-fpm
⁃ sudo port mpkg certbot && sudo port work certbot
⁃ sudo port mpkg certbot-nginx && sudo port work
certbot-nginx
Met vriendelijke groeten | Bien à vous | Kind regards
Dimitri
ARC - your Apple Authorised Service partner
H. D. Saviolaan 8
1700 Dilbeek
T. : 00 32 02 466 5000
On 28 Jan 2025, at 13:29, Christopher Jones wrote:
On 28 Jan 2025, at 12:22 pm, Ryan Carsten Schmidt
<ryandes...@macports.org> wrote:
On Jan 28, 2025, at 05:53, Oscar wrote:
We've build a few packages using the mpkg command on an Apple
Silicon Mac.
When we want to install any of these packages, Rosetta 2
installation is required.
We want to avoid using Rosseta 2, if there a way of forcing the
architecture to arm64 when building a mpkg?
If you are building on an Apple Silicon Mac, it should already be
building for Apple Silicon, not for Intel, so there's no reason why
Rosetta 2 should be required.
It probably depends on the exact ports being built as if any there
only support x86 and nor ARM then rossetta2 will be automatically used
to build them *all* for x86.
So, what ports specific are you talking about ?