[SM-Discuss] g++ 4.3.0

Ismael Luceno ismael.luceno at gmail.com
Wed Apr 9 22:57:28 EDT 2008


El Wed, 9 Apr 2008 13:49:20 -0700
Eric K Sandall <eric at sandall.us> escribió:

> On Wednesday 09 April 2008 11:14:55 Remko van der Vossen wrote:
> > On Wed, Apr 09, 2008 at 10:21:52AM -0700, Eric K Sandall wrote:
> > > gcc/DEPENDS has the following:
> > > if  [[ "$(installed_version mpfr|sed 's:\.::g')" < 230 ]]
> > > then
> > >   force_depends  mpfr
> > > fi  &&
> > >
> > > Which *should* pull in mpfr if it has not already been updated to
> > > 2.3.1.
> >
> > uhmn.. (x < 230 or x >= 2.3.1) does not seem to be a tautology...
> >
> > Remko
> 
> Worked here, feel free to fix it if it's broken. Note that all
> versions after 2.3.1 will be > 2.3.0 with the above code, which
> removes the "." characters. So if mpfr 2.3.1 (or newer) is not
> installed, gcc will force mpfr to be compiled before itself.
> 
> -sandalle
> 

There should be a function to compare versions, something like:

sver() {
	echo $(( `sed -e 's/\./ * 2048 + /g'` ))
}

I guess 11bit padding is enough...

-- 
Ismael Luceno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/sm-discuss/attachments/20080409/a6b4a667/attachment.bin 


More information about the SM-Discuss mailing list