On Fri, Oct 03, 2014 at 12:34:20PM +0100, Jonathan Perkin wrote:
* On 2014-10-03 at 12:14 BST, Patrick Welche wrote:
I'm still confused by gcc version selection - how is it meant to work?
On NetBSD 5/i386 (i.e., a system with gcc 4.1.3):
# cd /usr/pkgsrc/graphics/openexr
# make show-var VARNAME=GCC_REQD
4.3 2.8.0
# make show-depends
{gcc49,gcc49-libs}>=4.9:../../lang/gcc49-libs
ilmbase>=2.2.0nb1:../../graphics/ilmbase
#
So, how did we get from 4.3 to 4.9?
Likely because pkgsrc has no GCC 4.3, and the current logic is that if
none of the patterns match we use the latest, i.e. 4.9.
Actually, as rules go, that doesn't seem like a bad one. The only problem
is that -current has 4.8, so I saw trouble in ImageMagick that doesn't seem
to be happy being compiled with 4.9 (still to be looked at)
Yes, we should probably fix this.
1) teach mk/compiler/gcc.mk to use 4.4 for 4.3?
2) change GCC_REQD in Makefiles from 4.3 to 4.4?
3) something else?