sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Ismael Luceno <ismael.luceno AT gmail.com>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] g++ 4.3.0
- Date: Thu, 10 Apr 2008 00:34:57 -0300
El Wed, 9 Apr 2008 23:57:28 -0300
Ismael Luceno <ismael.luceno AT gmail.com> escribió:
> 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...
>
Ouch, that's wrong. A friend suggested this:
echo $((sed -e ':loop;s/\([^.-]*\)[.-]/(\1) * 2048 + /;tloop' ))
Still, it has some problems:
- it should not be sensible to changes like 1.9.2 to 1.9.2.1
- it should support letters in the version
--
Ismael Luceno
Attachment:
signature.asc
Description: PGP signature
-
[SM-Discuss] g++ 4.3.0,
Ladislav Hagara, 04/09/2008
- Re: [SM-Discuss] g++ 4.3.0, Ladislav Hagara, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Eric Sandall, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Ladislav Hagara, 04/09/2008
- Re: [SM-Discuss] g++ 4.3.0, Eric Sandall, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Ladislav Hagara, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Jaka Kranjc, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Eric K Sandall, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Remko van der Vossen, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Eric K Sandall, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Ismael Luceno, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Ismael Luceno, 04/09/2008
- Re: [SM-Discuss] g++ 4.3.0, Jaka Kranjc, 04/10/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Ismael Luceno, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Remko van der Vossen, 04/10/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Jaka Kranjc, 04/10/2008
- Re: [SM-Discuss] g++ 4.3.0, Remko van der Vossen, 04/10/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Jaka Kranjc, 04/10/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Ismael Luceno, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Eric K Sandall, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Remko van der Vossen, 04/09/2008
-
Re: [SM-Discuss] g++ 4.3.0,
Eric K Sandall, 04/09/2008
Archive powered by MHonArc 2.6.24.