tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc-3.x requirement and DragonFly



Greg Troxel wrote:

> Hasso Tepper <hasso%estpak.ee@localhost> writes:
> 
> > There are some notable packages which have problems compiling with 
> > gcc-4.x, but compile and work fine with gcc-3.x. audio/festival and 
> > emulators/qemu are such examples.
> >
> > DragonFly has two compilers in the base. Default is gcc-4.1.2, but 
> > gcc-3.4.6 is there as well. Compilers are switchable with environment 
> > variable CCVER:
> >
> > $ gcc -v 2>&1 | grep version
> > gcc version 4.1.2 (DragonFly)
> > $ export CCVER=gcc34
> > $ gcc -v 2>&1 | grep version
> > gcc version 3.4.6 [DragonFly] (propolice, visibility)
> > $
> >
> > The problem is that I have no idea how to support it in pkgsrc. Of course 
> > I can do whatever locally, but I'd like to get pbulk builds to work as 
> > well, so this switch should be automatic. Any ideas, pointers etc?
> 
> IMHO ideally pkgsrc would be able to build/install various gcc versions
> as well, with different paths, and could switch them [...]

This is possible at the moment.

> [...] and extend that
> switching to select among both DragonFly base system compilers.

And this is what we need to do.

What would solve this? Adding builtin to gcc packages?
(And this triggered by ONLY_FOR_COMPILER, NOT_FOR_COMPILER ?)

--
Adam


Home | Main Index | Thread Index | Old Index