--- icedtea-7.2.6.1.ebuild 2015-09-03 02:01:02.000000000 +0300 +++ icedtea-7.2.6.1-r1.ebuild 2015-10-09 03:18:03.998684953 +0300 @@ -193,6 +193,9 @@ } java_prepare() { + cp "${FILESDIR}"/${SLOT}-xshm-fix.patch patches/xshm-fix.patch || die + export DISTRIBUTION_PATCHES="patches/xshm-fix.patch" + if ! use cups; then # CUPS is always needed at build time but you can at least make it dlopen. sed -i 's/SYSTEM_CUPS="true"/SYSTEM_CUPS="false"/g' Makefile.in || die