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

Bug 14929

Summary: nforce-net-1.0.0248 compile errors in gcc 2.95
Product: Gentoo Linux Reporter: Toby Dickenson <toby>
Component: New packagesAssignee: Alain Penders (RETIRED) <alain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: nforce-net-1.0.0248-r2.ebuild
nforce-net-1.0.0248-r2.ebuild

Description Toby Dickenson 2003-02-01 17:08:41 UTC
The vendor-supplied Makefile uses the -falign-functions flag which does not    
exist in gcc 2.95.3. Changing the src_unpack in the ebuild as below works for   
me under the gentoo 1.2 profile on an Asus A7N8X board.   
   
This fix should only be used when using gcc 2.x. Is there a good way to   
detect this in an ebuild?   
    
src_unpack() {    
        unpack ${A}    
        cp nforce/nvnet/Makefile{,.old}    
        sed -e "s/-falign-functions/-malign-functions/"    
nforce/nvnet/Makefile.old > nforce/nvnet/Makefile    
}
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-02 22:34:28 UTC
yes, there is -- there's an eclass (gcc.eclass I think?)
Comment 2 Toby Dickenson 2003-02-06 09:57:39 UTC
Created attachment 7975 [details]
nforce-net-1.0.0248-r2.ebuild

Updated nforce-net ebuild that fixes the compile error if (and only if) gcc 2
is used.
Comment 3 Toby Dickenson 2003-02-06 09:58:01 UTC
Created attachment 7976 [details]
nforce-net-1.0.0248-r2.ebuild

Updated nforce-net ebuild that fixes the compile error if (and only if) gcc 2
is used.
Comment 4 Alain Penders (RETIRED) gentoo-dev 2003-02-19 10:09:43 UTC
Ebuild added to repository with a few minor tweaks.