← All posts tagged portage

L29Ah
? Gentoo portage qemu musl >> Emerging (1 of 32) sys-libs/ncurses-6.0-r1::gentoo * ncurses-6.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
/usr/lib/portage/python2.7/phase-functions.sh: line 234: 29396 Segmentation fault install -m${PORTAGE_WORKDIR_MODE:-0700} -d "${WORKDIR}"
* ERROR: sys-libs/ncurses-6.0-r1::gentoo failed (unpack phase):
* Failed to create dir '/var/tmp/portage/sys-libs/ncurses-6.0-r1/work'

# ulimit -c
unlimited

И хули он мне не высрал core dump?
L29Ah
Gentoo paludis Кривой костыль для eapply_user в paludis:

--- /usr/libexec/paludis/6/build_functions.bash 2016-02-27 23:33:13.028855100 +0300
+++ /tmp/p 2016-02-27 23:33:09.132142253 +0300
@@ -75,9 +75,35 @@
}
ebuild_need_extglob eapply

+# Ported epatch_user
eapply_user()
{
— return 0
+ : ${EPATCH_USER_SOURCE:=${PORTAGE_CONFIGROOT%/}/etc/portage/patches}
+
+ [[ $# -ne 0 ]] && die "epatch_user takes no options"
+
+ # Allow multiple calls to this function; ignore all but the first
+ local applied="${T}/epatch_user.log"
+ [[ -e ${applied} ]] && return 2
+
+ # don't clobber any EPATCH vars that the parent might want
+ local EPATCH_SOURCE check
+ for check in ${CATEGORY}/{${P}-${PR},${P},${PN}}{,:${SLOT%/*}}; do
+ EPATCH_SOURCE=${EPATCH_USER_SOURCE}/${CTARGET}/${check}
+ [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${EPATCH_USER_SOURCE}/${CHOST}/${check}
+ [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${EPATCH_USER_SOURCE}/${check}
+ if [[ -d ${EPATCH_SOURCE} ]] ; then
+ EPATCH_SOURCE=${EPATCH_SOURCE} \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_MULTI_MSG="Applying user patches from ${EPATCH_SOURCE} ..." \
+ epatch
+ echo "${EPATCH_SOURCE}" > "${applied}"
+ return 0
+ fi
+ done
+ echo "none" > "${applied}"
+ return 1
}

einstall()