Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30656 - Replacing package defined CFLAGS with custom CFLAGS in app-sci/ncbi-tools
Summary: Replacing package defined CFLAGS with custom CFLAGS in app-sci/ncbi-tools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-08 05:41 UTC by Peter Gnodde
Modified: 2004-10-01 12:36 UTC (History)
0 users

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


Attachments
ncbi-tools-sdk-doc.tar.bz2 - SDK documentation (ncbi-tools-sdk-doc.tar.bz2,257.39 KB, application/octet-stream)
2004-10-01 12:33 UTC, Olivier Fisette (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gnodde 2003-10-08 05:41:18 UTC
The patch below will update the ncbi-tools ebuild to use the CFLAGS defined in
make.conf, instead of the default '-O2'.

--- ncbi-tools-04222003-r1.ebuild       2003-09-10 02:10:25.000000000 +0000
+++ ncbi-tools-04222003-r2.ebuild       2003-10-08 13:57:38.000000000 +0000
@@ -29,6 +29,10 @@
        # graphical tools.  But for right now you get everything if you have
        # X installed

+       cp ncbi/platform/linux.ncbi.mk ncbi/platform/linux.ncbi.mk.old
+       sed -e "s/-O2/${CFLAGS}/" \
+               ncbi/platform/linux.ncbi.mk.old > ncbi/platform/linux.ncbi.mk
+
        ./ncbi/make/makedis.csh 2>&1 | tee out.makedis.txt

 }


Reproducible: Always
Steps to Reproduce:
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-08 15:08:17 UTC
I confirm that it seems to work
A better patch is:
sed -e "s/-O2/${CFLAGS}/" -i ncbi/platform/linux.ncbi.mk 

applied in CVS.
Comment 2 Olivier Fisette (RETIRED) gentoo-dev 2004-10-01 12:33:50 UTC
Created attachment 40886 [details]
ncbi-tools-sdk-doc.tar.bz2 - SDK documentation
Comment 3 Olivier Fisette (RETIRED) gentoo-dev 2004-10-01 12:36:24 UTC
Please ignore attachment. Wrong bug.