When patches are applied to the kernel, the screen systematically and always shows "Applying ${i/*\//} (-p${PATCH_DEPTH}+)" (line 986). - That is to say the value of PATCH_DEPTH prior entering the while loop (line 987) in which different values for PATCH_DEPTH might be tested. - That is to say not necessarily the value of PATCH_DEPTH used for actually applying the patch. This, most of the time, results in the display of "... p(0)+" when, most of the times (genpatches, ck-patches...) these patches are actually applied for PATCH_DEPTH = 1 This might appear trivial and whoever playing with kernel source ebuilds is certainly well aware of this but... it does make the n00b needlessly suspecting some error was made at this point and desperately look for some error in his own code before... having to understand what kernel-2.eclass does... No hardfeeling... I would have had to dig into kernel-2.eclass one day or another anyway... Reproducible: Always
Created attachment 345392 [details] patch_depth.patch This patch will be part of a series of patches that will be sent to the mailing lists and committed all at once to the tree in the near future.
This patch does enable traces displaying much more valuable information. Thanks a lot for this, Tom.
17 Apr 2013; Tom Wijsman <TomWij@gentoo.org> kernel-2.eclass: Added a warning after the variables that modifying other variables in the eclass is not supported, there is a chance that we will not fix resulting bugs. Fixes bug #421721. Clarify the default DESCRIPTION and make it not use versions, a directory with ebuilds that inherit this eclass may contain multiple versions and we also don't want to give the impression that a new directory needs to made if that's not the case. Fixes bug #445110. Clarified which patch depths are used in the normal output and error output when applying patches. Fixes bug #436402. Made sure .tmp_gas_check is created inside the temp folder, it accidentally created temp.tmp_gas_check instead. Fixes bug #336732. Make UNIPATCH_DOCS work again, install 0000_README document when using genpatches. Fixes bug #301478.