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

Bug 49945

Summary: fcpci-03.11.02.ebuild (Update)
Product: Gentoo Linux Reporter: Ben <schleinzer>
Component: New packagesAssignee: Gentoo Dialup Developers <net-dialup>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: schleinzer
Priority: High    
Version: 2004.1   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: New ebuild to patch the defs.h
Patch for the defs.h to compile with kernel 2.4.26
New ebuild to compile the fcpci module

Description Ben 2004-05-04 02:00:52 UTC
Didnt compile against kernel 2.4.26. Patched the defs.h file to compile again. Finde all changed files attached.
Comment 1 Ben 2004-05-04 02:02:24 UTC
Created attachment 30682 [details]
New ebuild to patch the defs.h
Comment 2 Ben 2004-05-04 02:03:10 UTC
Created attachment 30683 [details, diff]
Patch for the defs.h to compile with kernel 2.4.26
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2004-05-05 04:06:19 UTC
The patch works for me. (Without it doesn't compile.)
I changed the ebuild to use:

inherit eutils flag-o-matic kernel-mod

and

epatch ${FILESDIR}/defs.h.patch
Comment 4 Ben 2004-05-05 06:24:15 UTC
Created attachment 30773 [details, diff]
New ebuild to compile the fcpci module

Bevor it might compile but the module wont load. This should be fixed now.
Comment 5 Ben 2004-05-05 06:26:05 UTC
Comment on attachment 30773 [details, diff]
New ebuild to compile the fcpci module

Added a line to actually make things work. Bevor it might compile but the
module wont load. Thx to tove
Comment 6 Torsten Veller (RETIRED) gentoo-dev 2004-05-05 07:03:12 UTC
Benjamin,

i hope i didn't confuse you. 

1)
"inherit" should be in nearly all cases the first line in an ebuild. You should have read my comment as: substitute in line 4 "inherit flag-o-matic kernel-mod" with "inherit eutils flag-o-matic kernel-mod".

2)
The src_unpack function looks like this in my ebuild (i only replaced your "patch -p1 <${FILESDIR}/defs.h.patch" with "epatch ${FILESDIR}/defs.h.patch".

|        unpack ${A}
|        cd ${S}
|        epatch ${FILESDIR}/defs.h.patch
|        sed -i -e "s/\`uname -r\`/${KV_VERSION_FULL}/" \

Maybe a dev wants to tell me that this is not necessary at all?

3)
You write "Added a line to actually make things work. Bevor it might compile but the module wont load." 
Your first ebuild works for me and the fcpci.o does load.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2004-09-27 03:08:22 UTC
Will be fixed in bug 50716

*** This bug has been marked as a duplicate of 50716 ***
Comment 8 Torsten Veller (RETIRED) gentoo-dev 2004-10-21 23:44:13 UTC
please reopen -- as #29667 says fcpci in the tree is broken.