<div class="markdown">
<p dir="auto">Hello,</p>
<p dir="auto">Thank you for your replies!</p>
<p dir="auto">The packages are nginx, php83, php83-fpm, nghttp2, certbot and certbot-nginx.<br />
I built these packages on two different Apple Silicon Macs without Rosetta 2 installed.<br />
Each mpkg installer presents me the message to install Rosetta (see attached screenshot).</p>
<p dir="auto">This is how I setup MacPorts and create the mpkg files (in this case there is no port file used):<br />
⁃     curl <a href="https://distfiles.macports.org/MacPorts/MacPorts-2.10.5.tar.bz2">https://distfiles.macports.org/MacPorts/MacPorts-2.10.5.tar.bz2</a> > ~/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 <a href="https://distfiles.macports.org/MacPorts/">https://distfiles.macports.org/MacPorts/</a></p>
<pre><code> ⁃     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
</code></pre>
</div><div id="8DF7D1A9-C8F0-4D29-A5D5-1BB9F9C09BAE"><html>
<table width="600px" style="border:0px;">
<tr>
<td width="400px">Met vriendelijke groeten | Bien à vous | Kind regards<br/>Dimitri<br/><br/></td>
<td width="200px"></td>
</tr>
<tr>
<td width="400px"><strong>ARC - your Apple Authorised Service partner</strong></td>
<td width="200px">H.D. Saviolaan 8</td>
</tr>
<tr>  
<td> </td>
<td>B-1700 Dilbeek</td>
</tr>
<tr>
<td> </td>
<td>Belgium</td>
</tr>
<tr>
<td><a href="[mailto:info@arcict.com](mailto:info@arcict.com)">info@arcict.com</a></td>
<td><a href="[https://www.arcict.com](https://www.arcict.com)">www.arcict.com</a></td>
</tr>
<tr>
<td>tel. : +32 (0)2 466 50 00</td>
<td>fax. : +32 (0)2 466 88 33</td>
</tr>
</table>
</html></div>
<div class="markdown"><p dir="auto"><br />
On 28 Jan 2025, at 13:29, Christopher Jones wrote:</p>
</div><blockquote class="embedded"><blockquote class="embedded"><div id="A937E65C-8350-4A00-AFC6-0C05FBC6A716">
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On 28 Jan 2025, at 12:22 pm, Ryan Carsten Schmidt <ryandesign@macports.org> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="auto">
<div dir="ltr"></div>
<div dir="ltr">On Jan 28, 2025, at 05:53, Oscar wrote:</div>
<div dir="ltr">
<blockquote type="cite"><br></blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">We've build a few packages using the mpkg command on an Apple Silicon Mac.
<div class="plaintext">
<p dir="auto">When we want to install any of these packages, Rosetta 2 installation is required.</p>
<p dir="auto">We want to avoid using Rosseta 2, if there a way of forcing the architecture to arm64 when building a mpkg?</p>
</div>
</div>
</blockquote>
<br>
<div>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.</div>
</div>
</div>
</blockquote>
</div>
<br>
<div>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.</div>
<div><br></div>
<div>So, what ports specific are you talking about ?</div>
</div></div></blockquote></blockquote>