Closes: https://bugs.gentoo.org/645054
Package-Manager: Portage-2.3.19, Repoman-2.3.6
--- /dev/null
+linuxattr: fix missing symbol safe_dirname
+
+This one was probably missed when they did a global rename to xar_
+prefixed variants.
+
+--- a/lib/linuxattr.c
++++ b/lib/linuxattr.c
+@@ -223,7 +223,7 @@
+ if( statfs(file, &sfs) != 0 ) {
+ char *tmp, *bname;
+ tmp = strdup(file);
+- bname = safe_dirname(tmp);
++ bname = xar_safe_dirname(tmp);
+ statfs(bname, &sfs);
+ free(tmp);
+ free(bname);
DEPEND="
!kernel_Darwin? (
+ virtual/acl
!libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
)
"
RDEPEND="${DEPEND}"
-PATCHES=( "${FILESDIR}"/${PN}-1.6.1-ext2.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.1-ext2.patch
+ "${FILESDIR}"/${PN}-1.8-safe_dirname.patch
+)
S=${WORKDIR}/${PN}-${APPLE_PV}/${PN}
-src_prepare() {
- default
- sed -i -e 's/safe_dirname/xar_safe_dirname/' lib/linuxattr.c || die
-}
-
multilib_src_configure() {
use kernel_Darwin || append-libs $(pkg-config --libs openssl)
ECONF_SOURCE=${S} \