--- aufs2-9999.ebuild.old 2009-11-26 01:18:22.000000000 +0100 +++ aufs2-9999.ebuild 2009-11-26 03:20:56.000000000 +0100 @@ -13,7 +13,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="debug inotify kernel-patch ramfs" +IUSE="debug inotify kernel-patch nfs ramfs" DEPEND="" RDEPEND="!sys-fs/aufs" @@ -77,9 +77,17 @@ } src_compile() { + local myconf ARCH=i386 use amd64 && ARCH=x86_64 - emake CC=$(tc-getCC) CONFIG_AUFS_FS=m KDIR=${KV_OUT_DIR:-$KV_DIR} || die + if use nfs; then + myconf="$myconf CONFIG_AUFS_EXPORT=y" + if use amd64; then + myconf="$myconf CONFIG_AUFS_INO_T_64=y" + fi + fi + + emake CC=$(tc-getCC) CONFIG_AUFS_FS=m $myconf KDIR=${KV_OUT_DIR:-$KV_DIR} || die cd "${S}"-utils emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_OUT_DIR:-$KV_DIR} C_INCLUDE_PATH="${S}"/include || die