GNU Commit to 'patch' fixed part of the problem reported back in March 2013: http://git.savannah.gnu.org/cgit/patch.git/commit/?id=2f40ef66bea54be23a24f616cde021d8d7fc25be ML Report: https://lists.gnu.org/archive/html/bug-patch/2013-03/msg00000.html However, if the wrong patch level is specified when patching, patch will fail to clean up its temp working files. This is triggered with kernel source unpacking/patching because unipatch() in kernel2.eclass takes a brute-force approach and tries to patch from -p0 until -p5 to see which patch level worked. These empty directories are created even when --dry-run is used. Being reported upstream and this is a tracking bug until upstream fixes. Upstream Bug #39603.
*** Bug 479362 has been marked as a duplicate of this bug. ***
Fixed in patch-2.7.1-r2.
*** Bug 478246 has been marked as a duplicate of this bug. ***