--- /usr/portage/portage/sys-block/open-iscsi/open-iscsi-2.0.873-r2.ebuild 2016-06-29 22:31:15.000000000 +0000 +++ open-iscsi-2.0.873-r2.ebuild 2016-08-23 18:25:03.133424938 +0000 @@ -62,6 +62,7 @@ src_prepare() { epatch "${FILESDIR}"/${P}-Makefiles.patch epatch "${FILESDIR}"/${P}-memset.patch + epatch "${FILESDIR}"/${P}-isns-slp.patch sed -i -e 's:^\(iscsid.startup\)\s*=.*:\1 = /usr/sbin/iscsid:' etc/iscsid.conf || die } @@ -78,12 +79,16 @@ } src_compile() { + local SLP_LIBS + use slp && SLP_LIBS="-lslp" + # Stuffing CPPFLAGS into CFLAGS isn't entirely correct, but the build # is messed up already here, so it's not making it that much worse. KSRC="${KV_DIR}" CFLAGS="" \ emake \ OPTFLAGS="${CFLAGS} ${CPPFLAGS}" \ AR="$(tc-getAR)" CC="$(tc-getCC)" \ + SLP_LIBS="${SLP_LIBS}" \ user }