src_unpuck() function is incorrect Reproducible: Always Steps to Reproduce: 1. emerge amule Actual Results: >>> Unpacking source... * Applying amule-2.2.6-fallocate.diff ... * Failed Patch: amule-2.2.6-fallocate.diff ! * ( /usr/portage/net-p2p/amule/files/amule-2.2.6-fallocate.diff ) ll /var/tmp/portage/net-p2p/amule-2.2.6/work total 0 Expected Results: package should be unpacked =========================================================== amule-2.2.6.ebuild: .... src_unpack() { epatch "${FILESDIR}"/${P}-fallocate.diff } .... # ChangeLog for net-p2p/amule # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.150 2010/04/11 17:52:42 armin76 Exp $ 11 Apr 2010; Raúl Porcel <armin76@gentoo.org> amule-2.2.6.ebuild, +files/amule-2.2.6-fallocate.diff: Add patch from debian to build on hppa wrt #312831 ================================================== May be src_unpack() { default_src_unpack epatch "${FILESDIR}"/${P}-fallocate.diff } fix this mistake.
The error still occurs after adding default_src_unpack. Replacing src_unpack by src_prepare solves the problem.
Thanks for reporting. It's fixed now.