Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Oct 2009 21:42:44 +0000
From:      "b. f." <bf1783@googlemail.com>
To:        yuri@rawbw.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Why Linux executable googleearth can't find proper libstdc++.so.6 ?
Message-ID:  <d873d5be0910171442g11596fe6t24a0757e555ead2a@mail.gmail.com>
In-Reply-To: <4ADA2901.2020901@rawbw.com>
References:  <d873d5be0910170618s70e4703ag7a934608d0bcadd0@mail.gmail.com> <4AD9E780.5070604@rawbw.com> <d873d5be0910170919od61f08aw71a0ba72e8fddea1@mail.gmail.com> <4ADA2901.2020901@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/17/09, Yuri <yuri@rawbw.com> wrote:
> b. f. wrote:
>>
>> That entry also says that Fedora 8 can be used,  which was the latest
>> Linux base port at the time the entry was made, and the skype port
>> Makefile says Fedora Core 6 __or later__ can be used.  So presumably
>> later Linux base ports will also work: try the most recent Linux base
>> emulation port that is available for your platform.
>>
>
> With those lines in /etc/make.conf:
> OVERRIDE_LINUX_BASE_PORT=f10
> OVERRIDE_LINUX_NONBASE_PORTS=f10
> everything works. But with f8 there were still problems.

Yes, I only said that Fedora 8 probably worked for Skype, not that it
had the necessary symbols for the new google-earth.  :)

>
> How would people know that they should set f10?
>

The port maintainer for google-earth should put the necessary
statements into the Makefile for that port in order to ensure that a
sufficiently new Linux base port is used.  Email him and suggest that
he do so.  If he doesn't respond, file a PR.

> Ideally this should be done my portupgrade.

Well, not by portupgrade itself, but by the ports infrastructure, so
other ports management tools work as well.

> Or, at the very least, there should be a corresponding record in
> /usr/pots/UPGRADING.
> Record 20090831 mentions f10 in connection with some other port, but not
> as a general recommendation.
>

If you look at /usr/ports/Mk/bsd.port.mk, you will see that Fedora 10
is now the default emulation port on new releases of FreeBSD (I don't
know why it isn't on earlier versions: you can ask bsam@ why he chose
800076 as the cutoff, and not some other value.  There may have been
some feature missing from earlier versions of FreeBSD that was
necessary to make emulation work well with the newer Linux software.):

# Allow the user to specify another linux_base version.
.       if defined(OVERRIDE_LINUX_BASE_PORT)
.               if ${USE_LINUX:L} == yes
USE_LINUX=      ${OVERRIDE_LINUX_BASE_PORT}
.               endif
.       endif

# NOTE: when you update the default linux_base version (case "yes"),
# don't forget to update the Handbook!

.       if exists(${PORTSDIR}/emulators/linux_base-${USE_LINUX})
LINUX_BASE_PORT=
${LINUXBASE}/bin/sh:${PORTSDIR}/emulators/linux_base-${USE_LINUX}
.       else
.               if ${USE_LINUX:L} == "yes"
.                       if ${OSVERSION} < 800076
LINUX_BASE_PORT=
${LINUXBASE}/etc/fedora-release:${PORTSDIR}/emulators/linux_base-fc4
.                       else
LINUX_BASE_PORT=
${LINUXBASE}/etc/fedora-release:${PORTSDIR}/emulators/linux_base-f10
.                       endif
.               else
IGNORE=         cannot be built: there is no
emulators/linux_base-${USE_LINUX}, perhaps wrong use of USE_LINUX or
OVERRIDE_LINUX_BASE_PORT
.               endif
.       endif


So most people will automatically avoid this problem on FreeBSD 8.x,
and port maintainers should place additional safeguards in their port
Makefiles to ensure that users on earlier supported versions of
FreeBSD know what Linux base ports are acceptable.

In general, when you read entries in /usr/ports/UPDATING, especially
older entries, you should consider if anything has changed since those
entries were made that may affect the advice they offer, because
committers don't always revise older entries, and they may become
stale.

b.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d873d5be0910171442g11596fe6t24a0757e555ead2a>