<table><tr><td style="">mpyne added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8256" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>As I mentioned on the KDE bug, there is a possibility that changes like this would break FreeBSD.  FreeBSD operates by a model of exporting symbols by default for legacy/BSD-specific needs.  However if a feature flag is set, it limits its exports to *only* that required by the feature flag.  Notably, all BSD-specific exports are removed in FreeBSD if you set a feature flag that doesn't also standardize that BSD feature, and unlike C libraries like musl and glibc, they don't support any feature flags to specifically request BSD-specific exports be exported.</p>

<p>See <a href="https://cgit.kde.org/kio.git/commit/?id=15451d505fdbc37b5d027f8ad1ba6aeb6314cc2d" class="remarkup-link" target="_blank" rel="noreferrer">KIO commit 15451d505fdbc37b5d027f8ad1ba6aeb6314cc2d</a> and <a href="https://phabricator.kde.org/D6597" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;" rel="noreferrer">D6597</a> for an example of where I had to take special pains when committing musl-specific fixes to KF5 to avoid breaking FreeBSD.</p>

<p>Andrew, have you been able to test your patches on a FreeBSD at all?  We can catch it in CI now, but on the other hand I have already tried to fix this by pushing feature flag defines into source repositories requiring the extra defines rather than making it a KDE-wide define.  I had previously verified that these fixes allowed all of KF5 (though not all of Plasma5) to build on Alpine Linux, though it's been a month since I had reverified that.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8256" rel="noreferrer">https://phabricator.kde.org/D8256</a></div></div><br /><div><strong>To: </strong>awilcox, alexmerry, dfaure<br /><strong>Cc: </strong>mpyne, dfaure, Frameworks, Build System<br /></div>