<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8ca4ff300ce2cc8dd054c747f084d75982b3893b">https://github.com/macports/macports-ports/commit/8ca4ff300ce2cc8dd054c747f084d75982b3893b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8ca4ff300ce2cc8dd054c747f084d75982b3893b
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Mon Aug 2 09:47:30 2021 -0400
<span style='display:block; white-space:pre;color:#404040;'> libtool: more robust xattr command
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> xattr on macOS 12 Monterey beta supports -r but errors on directories, so do fully manual ... hoping for the same command here!
</span>---
devel/libtool/Portfile | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libtool/Portfile b/devel/libtool/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index dbad15f75a8..6f93ec1c4e4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libtool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libtool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -80,12 +80,9 @@ post-destroot {
</span>
# libtool 2.4.6 contains com.dropbox.attributes xattrs,
# let's avoid spreading them further (#54459)
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # xattr on leopard or earlier does not support -r so do the recursion manually
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.platform} eq "darwin" && ${os.major} >= 10} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "xattr -r -d com.dropbox.attributes ${destroot}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${destroot} "find . -type f -print0 | xargs -0 xattr -d com.dropbox.attributes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # xattr on Leopard or earlier does not support -r so do the recursion manually
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # xattr on Monterey supports -r but errors on directories, so do fully manual
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot} "xattr -d com.dropbox.attributes \$(find . -type f -print0 | xargs -0 xattr | grep com.dropbox.attributes | awk '{ print \$1 }' | sed -e 's@:\$@@g')"
</span> }
test.run yes
</pre><pre style='margin:0'>
</pre>