--- /usr/portage/app-arch/tar/tar-1.26.ebuild 2011-03-13 16:46:42.000000000 -0400 +++ tar-1.26-r3.ebuild 2011-09-24 16:18:58.000000000 -0400 @@ -4,7 +4,7 @@ EAPI="3" -inherit flag-o-matic +inherit autotools flag-o-matic DESCRIPTION="Use this to make tarballs :)" HOMEPAGE="http://www.gnu.org/software/tar/" @@ -15,13 +15,16 @@ LICENSE="GPL-3" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="nls static userland_GNU" +IUSE="nls static userland_GNU acl caps selinux xattr" RDEPEND="" DEPEND="${RDEPEND} nls? ( >=sys-devel/gettext-0.10.35 )" src_prepare() { + epatch "${FILESDIR}"/${P}-full-xattr.patch #bug #382067 + eautoreconf + if ! use userland_GNU ; then sed -i \ -e 's:/backup\.sh:/gbackup.sh:' \ @@ -34,6 +37,9 @@ local myconf use static && append-ldflags -static use userland_GNU || myconf="--program-prefix=g" + if use acl || use caps || use selinux || use xattr ; then + myconf+=" --enable-xattr" + fi # Work around bug in sandbox #67051 gl_cv_func_chown_follows_symlink=yes \ FORCE_UNSAFE_CONFIGURE=1 \