app-arch/libarchive: fix compilation on OSX, it needs acl enabled
authorFabian Groffen <grobian@gentoo.org>
Sat, 2 Jul 2016 08:12:14 +0000 (10:12 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sat, 2 Jul 2016 08:12:25 +0000 (10:12 +0200)
Package-Manager: portage-2.2.28

app-arch/libarchive/libarchive-3.1.2-r5.ebuild

index f968413bd974392c2e5bce60ce9b8c1aba113824..7d43f909683a5a2b64c449785903632995cb6fbb 100644 (file)
@@ -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)