| Summary: | net-misc/l7-filter - emerge l7-filter not working after switching kernel-source | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | cilly <cilly> |
| Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
cilly
2007-03-04 13:59:25 UTC
emerge module-rebuild if you want this 'automated'; emerge -u won't upgrade something where there's nothing to upgrade. http://www.gentoo.org/doc/en/kernel-upgrade.xml I did not compile l7-filter as a module, it is compiled into the kernel. I am not sure, if you got it right, Jakub: At the moment, the only way to patch new kernel sources is to use emerge -aC l7-filter while the symlink points to the current kernel. Then changing the symlink and re-emerging l7-filter works. But then the previous kernel sources are unusable, since l7-filter has been removed. If you try to re-emerge l7-filter after changing the symlink to the kernel sources, the install of l7-filter fails. (In reply to comment #2) > If you try to re-emerge l7-filter after changing the symlink to the kernel > sources, the install of l7-filter fails. How does it fail? You need to post some errors if you claim that something fails. If you upgrade your kernel, you need to re-emerge *all* kernel modules, period. Read the howto. After changing the symlink to the new kernel sources you will have to re-emerge l7-filter, I agree. I do that while using: emerge l7-filter Since portage thinks l7-filter is still installed, it runs autoclean after emerging l7-filter again, this results in a corrupted patch. There are 2 workarounds: - unemerge l7-filter before switching to a new kernel-source: emerge -aC l7-filter, but then the current source is broken. - delete: /var/db/pkg/net-misc/l7-filter-* and then emerge thinks, l7-filter hasn't been installed and an emerge l7-filter works again. (In reply to comment #4) > Since portage thinks l7-filter is still installed, it runs autoclean after > emerging l7-filter again, this results in a corrupted patch. Uhm no, it doesn't result in any corrupted patch; it unpatches the kernel it's been installed *against* previously, not the *current* one. So what exactly are you requesting here? well, that's how it should work, at least it didn't work for me. If I switch to new kernel-sources, I do not want to unapply the patch of the older sources. But it never worked for me, since l7-filter ebuild always used /usr/src/linux. So it uninstalled itself after installing. I do not have a testing system right now, but I will give further infos on next kernel-update. I found a solution which works perfectly for me: rm -rf /var/db/pkg/net-misc/l7-filter-* |