<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/8dfd62775fc672cfa1385945d992a61a2f336686">https://github.com/macports/macports-legacy-support/commit/8dfd62775fc672cfa1385945d992a61a2f336686</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8dfd62775fc672cfa1385945d992a61a2f336686
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Wed Nov 6 19:30:59 2024 -0800
<span style='display:block; white-space:pre;color:#404040;'> Fix build on 10.4 x86_64
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The special treatment for 10.4 in splitandfilterandmergemultiarch was
</span><span style='display:block; white-space:pre;color:#404040;'> not being applied appropriately to x86_64, causing a build failure
</span><span style='display:block; white-space:pre;color:#404040;'> for fdopendir.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixing this bug prior to fixing the realpath() wrapper resulted in
</span><span style='display:block; white-space:pre;color:#404040;'> successfully building code that didn't work correctly, though the
</span><span style='display:block; white-space:pre;color:#404040;'> realpath() bug wasn't limited to this one configuration.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Note that at the time of this writing, when this case is built as a
</span><span style='display:block; white-space:pre;color:#404040;'> port, the architecture is coerced to i386. Until that is fixed, this
</span><span style='display:block; white-space:pre;color:#404040;'> fix won't affect the actual port.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> With the realpath() fix, builds successfully on all platforms,
</span><span style='display:block; white-space:pre;color:#404040;'> including 10.4 x86_64.
</span>---
Makefile | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/Makefile b/Makefile
</span><span style='display:block; white-space:pre;color:#808080;'>index fcb1187..d26e79e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -242,10 +242,7 @@ define splitandfilterandmergemultiarch
</span> $$(: 'On the contrary, the i386 architecture has only $$UNIX2003-compat functions for the $$INODE64 feature set.') && \
$$(: '10.4 is so old that it does not even have the $$INODE64 feature.') && \
case "$${arch}" in \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ('x86_64') \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $${ld} -r "$${output}.inode32.$${arch}" "$${output}.inode64.$${arch}" -o "$${output}.$${arch}"; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ('ppc64') \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ('x86_64'|'ppc64') \
</span> if [ '9' -gt "$${platform}" ]; then \
$${ld} -r "$${output}.inode32.$${arch}" -o "$${output}.$${arch}"; \
else \
</pre><pre style='margin:0'>
</pre>