m ~ # genkernel all --lvm --mdadm * Gentoo Linux Genkernel; Version 3.4.10.907 * Running with options: all --lvm --mdadm * Clearing cache dir contents from /var/cache/genkernel * >> removing blkid-1.40.9-x86.bz2 * >> removing busybox-1.7.4-x86.tar.bz2 * >> removing src rm: cannot remove `/var/cache/genkernel/src': Is a directory * Linux Kernel 2.6.36-gentoo-r3-home2 for x86... * >> Running oldconfig... * config: --no-clean is enabled; leaving the .config alone. Reproducible: Always Steps to Reproduce: Why does genkernel tries to remove /var/cache/genkernel/src as a file? It is expected to be a directory containing its own required files. Anyway deleteing always fail producing misleading error message.
Created attachment 255927 [details, diff] Check if is a directory and remove it with rm -rf. See my first patch, maybe it will be useful.
removing directory is not an option m linux # genkernel all --lvm --mdadm * Gentoo Linux Genkernel; Version 3.4.10.907 * Running with options: all --lvm --mdadm * Clearing cache dir contents from /var/cache/genkernel Could not find source tarball /var/cache/genkernel/src/busybox-1.7.4.tar.bz2. Please refetch.
PS: Adding keyword "Inclusion" and "[patch] " prefix to better show this bug's nature in searches...
Created attachment 259533 [details, diff] Fix warning "rm: cannot remove `/var/cache/genkernel/src': Is a directory" This patch got pushed to the experimental branch exposed by genkernel-99999 (five nines). Looks fixed to me, please report back.