Attempting to emerge net-misc/l7-filter-2.9 against sys-kernel/gentoo-sources-2.6.19-r5: * Failed Patch: kernel-2.6.18-2.6.19-layer7-2.9.patch ! * ( /var/tmp/portage/net-misc/l7-filter-2.9/work/netfilter-layer7-v2.9/kernel-2.6.18-2.6.19-layer7-2.9.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/net-misc/l7-filter-2.9/temp/kernel-2.6.18-2.6.19-layer7-2.9.patch-9812.out
Created attachment 115913 [details] kernel-2.6.18-2.6.19-layer7-2.9.patch-9812.out It seems the various files the patch attempted to change just don't exist in the linux source tree.
Nevermind. I reemerged my kernel and the l7-filter patch worked fine. Looks like I had a dirty source tree for some reason. It might be advisable to include a notice during the merge that this is something to watch out for...
I can't think of a meaningfun notify for a failed patch. its either a incompatible kernel or modified by the user and i can't tell the difference. I'm happy the pre/post install message covers this. ewarn "This may not work with all kernels. If it does not work please enter a bug at bugs.gentoo.org" ewarn "This only patches the current kernel source code. (${KV_DIR})" ewarn "Its up to you to recompile the kernel with the l7 options" Thanks for solving this before i looked too deeply.
Well honestly the "please file a bug" message encouraged me to file a bug quickly before poking at it myself first :) I think that you could catch the failed patch and include something along the lines of the following statement: "Patching of the kernel failed. Often this is caused by a kernel source that has been modified. You might want to re-emerge your kernel sources and try this package again."