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

Bug 297276

Summary: dev-lang/python no longer needs NDEBUG and OPT is bogus as we need -fwrapv
Product: Gentoo Linux Reporter: Alan Hourihane <alanh>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: 2.4.6, 2.5.4-r4, 2.6.4-r1, 3.1.1-r1
Package list:
Runtime testing required: ---

Description Alan Hourihane 2009-12-17 10:00:34 UTC
NDEBUG has been removed from Python. So we no longer need to do this...

sed -e "s:^OPT=.*:OPT=-DNDEBUG:" -i "${D}usr/$(get_libdir)/python${PYVER}/config/Makefile"

and it should change to this...

sed -e "s:^OPT=.*:OPT=:" -i "${D}usr/$(get_libdir)/python${PYVER}/config/Makefile"
Comment 1 Alan Hourihane 2009-12-18 10:51:26 UTC
Oh, additionally as we define OPT, we miss a check in configure that requires the use of -fwrapv with GCC 4.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-14 18:01:35 UTC
Fixed in 2.4.6, 2.5.4-r4, 2.6.4-r1 and 3.1.1-r1.