<div dir="ltr"><div dir="ltr">A bit of searching suggests that availability.h is provided by Xcode, not by a normal dependency. Try adding "use_xcode yes" in the Portfile, or one of the other mechanisms suggested here:</div><div dir="ltr"><a href="https://guide.macports.org/#reference.keywords.use_xcode" target="_blank">https://guide.macports.org/#reference.keywords.use_xcode</a><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 2, 2024 at 12:00 PM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Link, the basic difference is that builders start with an empty system and add only the minimum required dependencies. Your local macports might have all sorts of other software installed. Also you might not be correctly isolating your local macports environment, meaning that the local build could pick up files from unexpected locations outside of a proper macports environment.</div><div><br></div><div>So track down where your local build is getting availability.h, then decide what should be done about it.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 2, 2024 at 11:41 AM Link Dupont via macports-dev <<a href="mailto:macports-dev@lists.macports.org" target="_blank">macports-dev@lists.macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="line-break:after-white-space">I submitted a new port[1] recently. I ensured that it compiled and runs locally, but when I the commit was merged, I noticed that the buildbot builds are failing[2] with an error:<div><br></div><div>> cli.c:8:10: fatal error: 'availability.h' file not found</div><div><br></div><div>I’m puzzled why this doesn’t seem to be a problem locally. How can I go about reproducing this build failure locally so that I can figure out a fix? What sort of differences are there between ports built locally and ports built by the build bot?<br><div><br></div><div>1: <a href="https://ports.macports.org/port/socket_vmnet/" target="_blank">https://ports.macports.org/port/socket_vmnet/</a></div></div><div>2: <a href="https://build.macports.org/builders/ports-14_arm64-builder/builds/16659/steps/install-port/logs/stdio" target="_blank">https://build.macports.org/builders/ports-14_arm64-builder/builds/16659/steps/install-port/logs/stdio</a></div></div></blockquote></div></div>
</blockquote></div></div>