lintool-0.2.4-r1 currentl fails on fixyear.diff because it's trying to change a file in the regular filesystem as opposed to the work dir of lintool >>> emerge (1 of 1) app-portage/lintool-0.2.4-r1 to / >>> md5 src_uri ;-) lintool-0.2.4.tar.bz2 >>> Unpacking source... >>> Unpacking lintool-0.2.4.tar.bz2 to /var/tmp/portage/lintool-0.2.4-r1/work * Applying lintool-0.2.4-fixyear.diff... * A dry-run of patch command succeeded, but actually * applying the patch failed! * Failed Patch: lintool-0.2.4-fixyear.diff! * * Include in your bugreport the contents of: * * /var/tmp/portage/lintool-0.2.4-r1/temp/lintool-0.2.4-fixyear.diff-19376.out !!! ERROR: app-portage/lintool-0.2.4-r1 failed. !!! Function epatch, Line 354, Exitcode 0 !!! Failed Patch: lintool-0.2.4-fixyear.diff! enterprise root # less /var/tmp/portage/lintool-0.2.4-r1/temp/lintool-0.2.4-fixyear.diff-19376.out ***** lintool-0.2.4-fixyear.diff ***** ====================================== PATCH COMMAND: patch -p0 < /usr/portage/app-portage/lintool/files/lintool-0.2. 4-fixyear.diff ====================================== patching file /usr/lib/python2.2/site-packages/lintool/ebuild.py ====================================== ACTUALLY APPLYING lintool-0.2.4-fixyear.diff... ====================================== patching file /usr/lib/python2.2/site-packages/lintool/ebuild.py patch: **** Can't rename file /var/tmp/portage/lintool-0.2.4-r1/temp/po4fKnO3 to /usr/lib/python2.2/site-packages/lintool/ebuild.py : Permission denied
*boots self for not commiting the final version of the fixed patch* I had to hack up the patch manually because it got damaged by keyword expansion originally. It's fixed now, changed the patch header lines.