Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113027

Summary: module-rebuild populate doesnt add net-fs/shfs
Product: Gentoo Linux Reporter: Federico Galassi <federico>
Component: [OLD] Core systemAssignee: John Mylchreest (RETIRED) <johnm>
Status: RESOLVED CANTFIX    
Severity: normal CC: net-fs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 78387    
Bug Blocks:    

Description Federico Galassi 2005-11-19 12:56:57 UTC
Afaic, latest 0.35-r1 and previous ebuilds don't use linux-mod
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2005-11-22 14:31:55 UTC
linux-mod wouldnt be an issue with "populate" as populate looks for portage
owned files in /lib/modules/`uname -r`/.

Can you attach the outoput of equery f shfs
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2005-11-22 14:53:21 UTC
This ebuild, if still maintained needs to be migrated to linux-mod. If you would
like me to do it on your behalf, please let me know.
Comment 3 Federico Galassi 2005-11-23 18:51:53 UTC
(In reply to comment #1)
> linux-mod wouldnt be an issue with "populate" as populate looks for portage
> owned files in /lib/modules/`uname -r`/.
> 
> Can you attach the outoput of equery f shfs

Yes, you're right, i've dug a little bit into module-rebuild and the problem is
not related specifically to shfs (yet shfs should be ported to linux-mod so this
bug is valid). The problem is i forgot to re-emerge shfs after last kernel
update so the module was not in /lib/modules/<last kernel>.
I wonder, is it right behavior for module-rebuild's populate ? i mean, even if i
did not re-emerge the package lately,
it's still letting in a broken package which was emerged at some point.
what do you think about making it search through /lib/modules/.*\.k?o
and deal with modules which are there but not under /lib/modules/`uname -r`:
a) issuing a warning
b) adding them if a certain param is used (also recompile modules not in use)
c) adding them (since i guess param given at b) should be suggested by docs as
default anyway)
The problem with b) and c) would be if some package installs modules not needed
and afaik only xorg does, so it could be masked either hard or by config.
I can help you with the patch if time is lacking
Comment 4 Federico Galassi 2005-11-23 18:58:08 UTC
> what do you think about making it search through /lib/modules/.*\.k?o
> and deal with modules which are there but not under /lib/modules/`uname -r`:
> a) issuing a warning
> b) adding them if a certain param is used (also recompile modules not in use)
> c) adding them (since i guess param given at b) should be suggested by docs as
> default anyway)

Correction:

what do you think about making it search through /var/db/pkg/*/*/CONTENTS for
/lib/modules/.*\.k?o and deal with modules which are there but not under
/lib/modules/`uname -r`:
a) issuing a warning "package may need to be re-emerged"
b) adding package to be rebuilt if a certain param is used ("also recompile
modules not in use")
c) adding package to be rebuilt (since i guess param given at b) should be
suggested by docs as default anyway)


Comment 5 John Mylchreest (RETIRED) gentoo-dev 2005-12-03 11:52:15 UTC
not sure if this will answer all the questions re: populate you had, but
populate is designed to populate the database from what is currently installed
on the system. This is almost invalid for any user who has merged any modules
recently (linux-mod) but has remained because of its ease of use.#

In the future module-rebuild will give you the option to also execute scripts
pre and post merge. I've not touched this in a little while though.
Comment 6 John Mylchreest (RETIRED) gentoo-dev 2006-01-19 07:26:08 UTC
the sooner -r2 comes to stable the better. Looking at this the actual bug itself is a cantfix, since we wont be backporting this change to stable.

Will make good note of the other part of this bug however.