how to test for linux base version? (googleearth)

View: New views
8 Messages — Rating Filter:   Alert me  

how to test for linux base version? (googleearth)

by Juergen Lock-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just got reminded to add a linux base version check to astro/google-earth
(It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
is in f9 or f10, you can do
        objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX'
to check) - and was wondering how to best check for that in a port.
This is what I came up with so far:

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile 24 Sep 2009 21:01:36 -0000 1.35
+++ Makefile 17 Oct 2009 15:32:22 -0000
@@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL
 USE_LINUX_APPS+= dri
 .endif
 
+.if (${OSVERSION} < 800076 && \
+ !defined(OVERRIDE_LINUX_BASE_PORT)) || \
+ (defined(OVERRIDE_LINUX_BASE_PORT) && \
+ !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \
+   ${OVERRIDE_LINUX_BASE_PORT} == f9)
+IGNORE= needs at least f9 Linux base
+.endif
+
 do-extract:
  @${MKDIR} ${WRKSRC}
  @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC}

 Anyone have a better idea? :)

 Thanx,
        Juergen
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

Re: how to test for linux base version? (googleearth)

by Boris Samorodov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Juergen Lock <nox@...> writes:

> I just got reminded to add a linux base version check to astro/google-earth
> (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
> is in f9 or f10, you can do

First of, I'd recommend leaving f9 alone (I'm going to deprecate all
linux base ports except fc4 and f10 soon).

> objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX'
> to check) - and was wondering how to best check for that in a port.
> This is what I came up with so far:
>
> Index: Makefile
> ===================================================================
> RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v
> retrieving revision 1.35
> diff -u -p -r1.35 Makefile
> --- Makefile 24 Sep 2009 21:01:36 -0000 1.35
> +++ Makefile 17 Oct 2009 15:32:22 -0000
> @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL
>  USE_LINUX_APPS+= dri
>  .endif
>  
> +.if (${OSVERSION} < 800076 && \
> + !defined(OVERRIDE_LINUX_BASE_PORT)) || \
> + (defined(OVERRIDE_LINUX_BASE_PORT) && \
> + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \
> +   ${OVERRIDE_LINUX_BASE_PORT} == f9)
> +IGNORE= needs at least f9 Linux base
> +.endif
> +
>  do-extract:
>   @${MKDIR} ${WRKSRC}
>   @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC}
>
>  Anyone have a better idea? :)

I'm not sure if it's better but just an other idea:
-----
.if ${OSVERSION}<7000XX  /*** XX should be find out ***/
IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x.
.elif ${OSVERSION}<800076 && \
        ! defined (OVERRIDE_LINUX_NONBASE_PORTS) ||
        ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10)
IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10)
.endif
-----

This check is not strict either. The thing is that both BASE and NONBASE
variables should be defined and have f10 value for OSVERSION<800076.

I have an item at my TODO list to switch to using USE_LINUX=f10[+] or
similar but it's not the highest priority and ENOTIME now...

--
WBR, bsam
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

Re: how to test for linux base version? (googleearth)

by Juergen Lock-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote:
> Juergen Lock <nox@...> writes:
>
> > I just got reminded to add a linux base version check to astro/google-earth
> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
> > is in f9 or f10, you can do
>
> First of, I'd recommend leaving f9 alone (I'm going to deprecate all
> linux base ports except fc4 and f10 soon).
>
Ah Ok.  (Does f10 work well enough on 7.x yet?)

> > objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX'
> > to check) - and was wondering how to best check for that in a port.
> > This is what I came up with so far:
> >
> > Index: Makefile
> > ===================================================================
> > RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v
> > retrieving revision 1.35
> > diff -u -p -r1.35 Makefile
> > --- Makefile 24 Sep 2009 21:01:36 -0000 1.35
> > +++ Makefile 17 Oct 2009 15:32:22 -0000
> > @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL
> >  USE_LINUX_APPS+= dri
> >  .endif
> >  
> > +.if (${OSVERSION} < 800076 && \
> > + !defined(OVERRIDE_LINUX_BASE_PORT)) || \
> > + (defined(OVERRIDE_LINUX_BASE_PORT) && \
> > + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \
> > +   ${OVERRIDE_LINUX_BASE_PORT} == f9)
> > +IGNORE= needs at least f9 Linux base
> > +.endif
> > +
> >  do-extract:
> >   @${MKDIR} ${WRKSRC}
> >   @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC}
> >
> >  Anyone have a better idea? :)
>
> I'm not sure if it's better but just an other idea:
> -----
> .if ${OSVERSION}<7000XX  /*** XX should be find out ***/
> IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x.
> .elif ${OSVERSION}<800076 && \
>         ! defined (OVERRIDE_LINUX_NONBASE_PORTS) ||
>         ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10)
> IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10)
> .endif
> -----

 In the meantime I found emulators/linux-systemsimcell does something
similar, and it uses ${OSVERSION}<700055 for the first check.  Does
that look alright?  (seems to be the last OSVERSION before 7.0-R from
looking at
        http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#FREEBSD-VERSIONS
)

>
> This check is not strict either. The thing is that both BASE and NONBASE
> variables should be defined and have f10 value for OSVERSION<800076.
>
 Ok.

> I have an item at my TODO list to switch to using USE_LINUX=f10[+] or
> similar but it's not the highest priority and ENOTIME now...

 Heh yeah I guess that'd be useful here...

 Anyway, thanx, :)
        Juergen
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

Re: how to test for linux base version? (googleearth)

by Kevin Oberman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: Juergen Lock <nox@...>
> Date: Sun, 18 Oct 2009 19:41:57 +0200
> Sender: owner-freebsd-emulation@...
>
> On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote:
> > Juergen Lock <nox@...> writes:
> >
> > > I just got reminded to add a linux base version check to astro/google-earth
> > > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
> > > is in f9 or f10, you can do
> >
> > First of, I'd recommend leaving f9 alone (I'm going to deprecate all
> > linux base ports except fc4 and f10 soon).
> >
> Ah Ok.  (Does f10 work well enough on 7.x yet?)

It works pretty well with 7.2. I have heard that it might not with 7.1,
but I don't have any 7.1 systems, so that is hear-say. My 7.2 system
does Flash and Skype fine. I think it might do RealPlayer, but I'm not
completely sure on that. (It works on 8.0, though.)
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@... Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

Re: how to test for linux base version? (googleearth)

by Boris Samorodov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Juergen Lock <nox@...> writes:

> On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote:
>> Juergen Lock <nox@...> writes:
>>
>> > I just got reminded to add a linux base version check to astro/google-earth
>> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
>> > is in f9 or f10, you can do
>>
>> First of, I'd recommend leaving f9 alone (I'm going to deprecate all
>> linux base ports except fc4 and f10 soon).
>>
> Ah Ok.  (Does f10 work well enough on 7.x yet?)

Well, there is no choice anyway. We do have fc4 and f10 infractructure
ports. I think it's wise to use apropriate base ports. I don't think
there is any difference between f9 and f10 linux base ports.

If someone shows a difference (i.e. possibility to use f9 but not
f10 linux base port under 7.x I may change my mind).

>> > objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX'
>> > to check) - and was wondering how to best check for that in a port.
>> > This is what I came up with so far:
>> >
>> > Index: Makefile
>> > ===================================================================
>> > RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v
>> > retrieving revision 1.35
>> > diff -u -p -r1.35 Makefile
>> > --- Makefile 24 Sep 2009 21:01:36 -0000 1.35
>> > +++ Makefile 17 Oct 2009 15:32:22 -0000
>> > @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL
>> >  USE_LINUX_APPS+= dri
>> >  .endif
>> >  
>> > +.if (${OSVERSION} < 800076 && \
>> > + !defined(OVERRIDE_LINUX_BASE_PORT)) || \
>> > + (defined(OVERRIDE_LINUX_BASE_PORT) && \
>> > + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \
>> > +   ${OVERRIDE_LINUX_BASE_PORT} == f9)
>> > +IGNORE= needs at least f9 Linux base
>> > +.endif
>> > +
>> >  do-extract:
>> >   @${MKDIR} ${WRKSRC}
>> >   @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC}
>> >
>> >  Anyone have a better idea? :)
>>
>> I'm not sure if it's better but just an other idea:
>> -----
>> .if ${OSVERSION}<7000XX  /*** XX should be find out ***/
>> IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x.
>> .elif ${OSVERSION}<800076 && \
>>         ! defined (OVERRIDE_LINUX_NONBASE_PORTS) ||
>>         ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10)
>> IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10)
>> .endif
>> -----
>
>  In the meantime I found emulators/linux-systemsimcell does something
> similar, and it uses ${OSVERSION}<700055 for the first check.  Does
> that look alright?  (seems to be the last OSVERSION before 7.0-R from
> looking at
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#FREEBSD-VERSIONS
> )

We discussed those checks with the maintainer and his checks were good
(for his software). I can't say more than that, sorry.

--
WBR, bsam
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

Re: how to test for linux base version? (googleearth)

by Juergen Lock-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 12:13:20AM +0400, Boris Samorodov wrote:

> Juergen Lock <nox@...> writes:
> > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote:
> >> Juergen Lock <nox@...> writes:
> >>
> >> > I just got reminded to add a linux base version check to astro/google-earth
> >> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
> >> > is in f9 or f10, you can do
> >>
> >> First of, I'd recommend leaving f9 alone (I'm going to deprecate all
> >> linux base ports except fc4 and f10 soon).
> >>
> > Ah Ok.  (Does f10 work well enough on 7.x yet?)
>
> Well, there is no choice anyway. We do have fc4 and f10 infractructure
> ports. I think it's wise to use apropriate base ports. I don't think
> there is any difference between f9 and f10 linux base ports.
>
Oh I was more thinking of f8 since we have nonbase ports for that too...

> If someone shows a difference (i.e. possibility to use f9 but not
> f10 linux base port under 7.x I may change my mind).
>
 Ok so `someone' would need to test this...

> >> > objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX'
> >> > to check) - and was wondering how to best check for that in a port.
> >> > This is what I came up with so far:
> >> >
> >> > Index: Makefile
> >> > ===================================================================
> >> > RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v
> >> > retrieving revision 1.35
> >> > diff -u -p -r1.35 Makefile
> >> > --- Makefile 24 Sep 2009 21:01:36 -0000 1.35
> >> > +++ Makefile 17 Oct 2009 15:32:22 -0000
> >> > @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL
> >> >  USE_LINUX_APPS+= dri
> >> >  .endif
> >> >  
> >> > +.if (${OSVERSION} < 800076 && \
> >> > + !defined(OVERRIDE_LINUX_BASE_PORT)) || \
> >> > + (defined(OVERRIDE_LINUX_BASE_PORT) && \
> >> > + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \
> >> > +   ${OVERRIDE_LINUX_BASE_PORT} == f9)
> >> > +IGNORE= needs at least f9 Linux base
> >> > +.endif
> >> > +
> >> >  do-extract:
> >> >   @${MKDIR} ${WRKSRC}
> >> >   @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC}
> >> >
> >> >  Anyone have a better idea? :)
> >>
> >> I'm not sure if it's better but just an other idea:
> >> -----
> >> .if ${OSVERSION}<7000XX  /*** XX should be find out ***/
> >> IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x.
> >> .elif ${OSVERSION}<800076 && \
> >>         ! defined (OVERRIDE_LINUX_NONBASE_PORTS) ||
> >>         ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10)
> >> IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10)
> >> .endif
> >> -----
> >
> >  In the meantime I found emulators/linux-systemsimcell does something
> > similar, and it uses ${OSVERSION}<700055 for the first check.  Does
> > that look alright?  (seems to be the last OSVERSION before 7.0-R from
> > looking at
> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#FREEBSD-VERSIONS
> > )
>
> We discussed those checks with the maintainer and his checks were good
> (for his software). I can't say more than that, sorry.

 Ok.  Maybe I should just commit it like that, I guess it's kinda
unlikely someone who's running a FreeBSD _desktop_ still uses something
as old as 7.0 anyway.

 Thanx,
        Juergen
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

Re: how to test for linux base version? (googleearth)

by Boris Samorodov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Juergen Lock <nox@...> writes:

> On Mon, Oct 19, 2009 at 12:13:20AM +0400, Boris Samorodov wrote:
>> Juergen Lock <nox@...> writes:
>> > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote:
>> >> Juergen Lock <nox@...> writes:
>> >>
>> >> > I just got reminded to add a linux base version check to astro/google-earth
>> >> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
>> >> > is in f9 or f10, you can do
>> >>
>> >> First of, I'd recommend leaving f9 alone (I'm going to deprecate all
>> >> linux base ports except fc4 and f10 soon).
>> >>
>> > Ah Ok.  (Does f10 work well enough on 7.x yet?)
>>
>> Well, there is no choice anyway. We do have fc4 and f10 infractructure
>> ports. I think it's wise to use apropriate base ports. I don't think
>> there is any difference between f9 and f10 linux base ports.
>>
> Oh I was more thinking of f8 since we have nonbase ports for that too...

Hm, but it were you who said that only f9 and f10 base ports had
libstdc++.so.6 with apropriate symbols. ;-)

About f8 ports. Almost all current linux ports play well with f10
ports at 7.2, 8.0 and 9-CURRENT. Only one exception I'm aware is
acroread9 (a linux syscall should be implemented). If those ports
(f8) are usefull for 7.0 and 7.1 (6.x doesn't have apropriate
kernel sources) then they should stay until 7.0 and 7.1 are EOLed.

--
WBR, bsam
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

Re: how to test for linux base version? (googleearth)

by Juergen Lock-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 12:47:19AM +0400, Boris Samorodov wrote:

> Juergen Lock <nox@...> writes:
> > On Mon, Oct 19, 2009 at 12:13:20AM +0400, Boris Samorodov wrote:
> >> Juergen Lock <nox@...> writes:
> >> > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote:
> >> >> Juergen Lock <nox@...> writes:
> >> >>
> >> >> > I just got reminded to add a linux base version check to astro/google-earth
> >> >> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only
> >> >> > is in f9 or f10, you can do
> >> >>
> >> >> First of, I'd recommend leaving f9 alone (I'm going to deprecate all
> >> >> linux base ports except fc4 and f10 soon).
> >> >>
> >> > Ah Ok.  (Does f10 work well enough on 7.x yet?)
> >>
> >> Well, there is no choice anyway. We do have fc4 and f10 infractructure
> >> ports. I think it's wise to use apropriate base ports. I don't think
> >> there is any difference between f9 and f10 linux base ports.
> >>
> > Oh I was more thinking of f8 since we have nonbase ports for that too...
>
> Hm, but it were you who said that only f9 and f10 base ports had
> libstdc++.so.6 with apropriate symbols. ;-)
>
Oh yeah, that comment was meant more in general, not for this
specific port.

> About f8 ports. Almost all current linux ports play well with f10
> ports at 7.2, 8.0 and 9-CURRENT. Only one exception I'm aware is
> acroread9 (a linux syscall should be implemented). If those ports
> (f8) are usefull for 7.0 and 7.1 (6.x doesn't have apropriate
> kernel sources) then they should stay until 7.0 and 7.1 are EOLed.

 Ok.

 Cheers,
        Juergen
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."