Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14929 - nforce-net-1.0.0248 compile errors in gcc 2.95
Summary: nforce-net-1.0.0248 compile errors in gcc 2.95
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alain Penders (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-01 17:08 UTC by Toby Dickenson
Modified: 2003-02-19 10:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
nforce-net-1.0.0248-r2.ebuild (nforce-net-1.0.0248-r2.ebuild,1.94 KB, text/plain)
2003-02-06 09:57 UTC, Toby Dickenson
Details
nforce-net-1.0.0248-r2.ebuild (nforce-net-1.0.0248-r2.ebuild,1.94 KB, text/plain)
2003-02-06 09:58 UTC, Toby Dickenson
Details

Note You need to log in before you can comment on or make changes to this bug.
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.