Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169284 - net-misc/l7-filter - emerge l7-filter not working after switching kernel-source
Summary: net-misc/l7-filter - emerge l7-filter not working after switching kernel-source
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-04 13:59 UTC by cilly
Modified: 2007-03-04 19:57 UTC (History)
0 users

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 cilly 2007-03-04 13:59:25 UTC
I do not know how to describe better, than using an example:

1.) emerge "sys-kernel/vanilla-sources-2.6.19.5"
2.) emerge l7-filter
3.) USE="symlink" emerge "sys-kernel/vanilla-sources-2.6.19.7"
4.) emerge -pvuDN l7-filter

updating l7-filter after switching kernel sources does not work. The l7-filter package sees itself installed and so it is cleaned after installing. The ebuild should check the kernel-sources, if the patch has been applied.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-04 14:01:18 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
Comment 2 cilly 2007-03-04 18:47:52 UTC
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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-04 18:57:17 UTC
(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.
Comment 4 cilly 2007-03-04 19:37:05 UTC
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.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-03-04 19:42:24 UTC
(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?


Comment 6 cilly 2007-03-04 19:57:09 UTC
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-*