Ticket #54459: 0001-libtool-Remove-xattrs-from-installed-files.patch

File 0001-libtool-Remove-xattrs-from-installed-files.patch, 1.4 KB (added by raimue (Rainer Müller), 7 years ago)
  • devel/libtool/Portfile

    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 
    44
    55name                libtool
    66version             2.4.6
    7 revision            3
     7revision            4
    88categories          devel sysutils
    99platforms           darwin freebsd
    1010# Scripts are GPL-2+, libltdl is LGPL-2+, but all parts that tend to be
    post-destroot { 
    6464    xinstall -m 0644 -W ${worksrcpath} \
    6565            AUTHORS COPYING ChangeLog NEWS README THANKS TODO \
    6666            ${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}"
    6771}
    6872
    6973test.run            yes