Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933484 - sys-kernel/gentoo-kernel does not install as binpkg
Summary: sys-kernel/gentoo-kernel does not install as binpkg
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-03 17:48 UTC by David Carlos Manuelda
Modified: 2024-06-04 02:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2024-06-03 17:48:22 UTC
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?
Comment 1 David Carlos Manuelda 2024-06-03 18:23:53 UTC
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
Comment 2 Mike Gilbert gentoo-dev 2024-06-04 02:06:17 UTC
> quickpkg gentoo-kernel

quickpkg is a dirty hack that should not be used except in emergencies.

Please use emerge --buildpkg instead.