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

Bug 76188

Summary: Loading bttv with modprobe gives a syntax error
Product: Gentoo Linux Reporter: Markus Baertschi <markus>
Component: Current packagesAssignee: Television related Applications in Gentoo's Portage <media-tv>
Status: RESOLVED INVALID    
Severity: normal CC: stian
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markus Baertschi 2004-12-30 17:00:37 UTC
gentoo root # modprobe bttv
sh: -c: line 1: syntax error near unexpected token `;;'
sh: -c: line 1: `{ modprobe -k tuner;; } ; /sbin/modprobe --first-time --ignore-install bttv'
FATAL: Error running install command for bttv

I'm running gentoo-dev-sources-2.6.9-r13

Reproducible: Always
Steps to Reproduce:
gentoo root # modprobe bttv
sh: -c: line 1: syntax error near unexpected token `;;'
sh: -c: line 1: `{ modprobe -k tuner;; } ; /sbin/modprobe --first-time --ignore-install bttv'
FATAL: Error running install command for bttv
Actual Results:  
The bttv drive can not load with the broken modprobe.conf file

Expected Results:  
Loaded the bttv driver :-)

It looks like the /etc/modules.d/bttv file is broken. 

The line:
  pre-install bttv modprobe -k tuner; #modprobe -k msp3400 debug=1 simple=0x20
should read:
  pre-install bttv modprobe -k tuner #modprobe -k msp3400 debug=1 simple=0x20

(note the removed semicolon)

After this modification and running modules-update the bttv module loads just fine.
Comment 1 Sven Wegener gentoo-dev 2004-12-30 17:58:48 UTC
Which packages does install that file?
Comment 2 Stian Skjelstad 2004-12-31 13:50:05 UTC
I believed that was a file the user has to create on his own.
Comment 3 Andreas Korinek 2005-01-01 01:27:57 UTC
I don't even have that file and can use bttv ;-)
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2005-01-01 12:39:19 UTC
As far as I know that's a user created file. Nothing in portage creates that file. Unless the user can give us a qpkg -f /etc/modules.d/bttv that proves otherwise this is an INVALID bug.

User needs to delete said file and try again. Or if the user created this file then the user needs to fix the syntax.