When reinstalling gentoo-kernel as binpkg I found that it fails because in the process it tries to clean some folders that do not exist in the binary package: rm: cannot remove '/tmp/portage/sys-kernel/gentoo-kernel-6.9.3/image/lib/modules/6.9.3-Wesker.Umbrella/build': No such file or directory rm: cannot remove '/tmp/portage/sys-kernel/gentoo-kernel-6.9.3/image/lib/modules/6.9.3-Wesker.Umbrella/source': No such file or directory Caused by: * The specific snippet of code: * rm "${ED}/lib/modules/${release}"/{build,source} || die; Can this be somehow skipped when installing via BINPKG?
To reproduce: 1. emerge gentoo-kernel (If it is not already installed) 2. quickpkg gentoo-kernel 3. emerge -K gentoo-kernel And see the error on deleting those non existant folders
> quickpkg gentoo-kernel quickpkg is a dirty hack that should not be used except in emergencies. Please use emerge --buildpkg instead.