--- nspluginwrapper-0.9.91.5-r1.ebuild 2008-03-09 19:50:41.000000000 +0000 +++ nspluginwrapper-0.9.91.5-r3.ebuild 2008-03-09 19:10:45.000000000 +0000 @@ -23,8 +23,14 @@ DEPEND="${RDEPEND} src_unpack() { unpack ${A} cd "${S}" - epatch "${FILESDIR}/${P}-g_thread_init.patch" || die "epatch failed" + #this patch need to be applied in source dir + cd "${S}/src" + + # protect against segfaults for npconfig + epatch "${FILESDIR}/0001-check-allocations-for-failure.patch" || die "epatch failed" + # protect against segfaults for npviewer + epatch "${FILESDIR}/0002-prevent-segfaults-in-libraries-crashing-npviewer.patch" || die "epatch failed" } src_compile() {