commit:     1d1a6caf59e111590af7aff4ff18df644edb8fd9
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  2 08:12:14 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Jul  2 08:12:25 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d1a6caf

app-arch/libarchive: fix compilation on OSX, it needs acl enabled

Package-Manager: portage-2.2.28

 app-arch/libarchive/libarchive-3.1.2-r5.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app-arch/libarchive/libarchive-3.1.2-r5.ebuild 
b/app-arch/libarchive/libarchive-3.1.2-r5.ebuild
index f968413..7d43f90 100644
--- a/app-arch/libarchive/libarchive-3.1.2-r5.ebuild
+++ b/app-arch/libarchive/libarchive-3.1.2-r5.ebuild
@@ -48,10 +48,13 @@ multilib_src_configure() {
        export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
 
        local myconf=()
+       # acl: libarchive has tight integration with OSX, disabling acl
+       #      breaks the code for it knows it is there and assumes hence is
+       #      enabled
        myconf=(
                $(use_enable static-libs static)
                $(use_enable xattr)
-               $(use_enable acl)
+               $([[ ${CHOST} != *-darwin* ]] && use_enable acl)
                $(use_with zlib)
                $(use_with bzip2 bz2lib)
                $(use_with iconv)

Reply via email to