From 2e4d068bedc7b8606570ae9c878cdcba635169ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rainer=20M=C3=BCller?= <raimue@macports.org>
Date: Mon, 10 Jul 2017 18:56:26 +0200
Subject: [PATCH] libtool: Remove xattrs from installed files
The libtool-2.4.6 tarball shipped with extended attributes on some
files. These will be retained when installing, and are likely to spread
when copied to other projects. Strip these extended attributes in
destroot.
Closes: https://trac.macports.org/ticket/54459
---
devel/libtool/Portfile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/devel/libtool/Portfile b/devel/libtool/Portfile
index f0cd6fa147..b28a37b115 100644
a
|
b
|
PortSystem 1.0 |
4 | 4 | |
5 | 5 | name libtool |
6 | 6 | version 2.4.6 |
7 | | revision 3 |
| 7 | revision 4 |
8 | 8 | categories devel sysutils |
9 | 9 | platforms darwin freebsd |
10 | 10 | # Scripts are GPL-2+, libltdl is LGPL-2+, but all parts that tend to be |
… |
… |
post-destroot { |
64 | 64 | xinstall -m 0644 -W ${worksrcpath} \ |
65 | 65 | AUTHORS COPYING ChangeLog NEWS README THANKS TODO \ |
66 | 66 | ${destroot}${docdir} |
| 67 | |
| 68 | # libtool 2.4.6 contains com.dropbox.attributes xattrs, |
| 69 | # let's avoid spreading them further (#54459) |
| 70 | system "xattr -r -d com.dropbox.attributes ${destroot}" |
67 | 71 | } |
68 | 72 | |
69 | 73 | test.run yes |