Bug 251635

Summary: astro/googleearth: cannot start, tries to load wrong url
Product: Ports & Packages Reporter: tech-lists
Component: Individual Port(s)Assignee: Fernando Apesteguía <fernape>
Status: Closed Not A Bug    
Severity: Affects Some People CC: fernape, john, p.dean
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description tech-lists 2020-12-06 11:27:19 UTC
Hi,

astro/googleearth tries and fails to load at startup http://kh.google.com:80 and this failure is because that url 404s. There appears nowhere to change this within the program.

context:

ports: 557130 system: 12-stable 368361
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2020-12-09 12:16:29 UTC
(In reply to tech-lists from comment #0)

Any changes on your side?

https://support.google.com/earth/thread/38971495?hl=en
Comment 2 tech-lists 2020-12-09 17:03:45 UTC
(In reply to Fernando Apesteguía from comment #1)

No.

The port is open and the IP resolves:

[...]

% nmap -p 80 kh.google.com
Starting Nmap 7.91 ( https://nmap.org ) at 2020-12-09 16:53 GMT
Nmap scan report for kh.google.com (216.58.210.46)
Host is up (0.011s latency).
Other addresses for kh.google.com (not scanned): 2a00:1450:4009:810::200e
rDNS record for 216.58.210.46: lhr25s11-in-f46.1e100.net

PORT   STATE SERVICE
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 0.30 seconds
[...]

Viewed in lynx, this is the error:

[...]

   404. [INS: That’s an error. :INS]

   The requested URL / was not found on this server. [INS: That’s all we know. :INS]

   [Document has only hidden links. Use the 'l'ist command.]

[...]
hidden links show www.google.com

The problem appears to be on the google side if it's meant to load "/" or in the program, I guess, if there's supposed to be a string after the slash
Comment 3 tech-lists 2020-12-09 17:31:23 UTC
also 7.1.7 is ancient, there's linux versions for 7.3.3 so am not sure if this version is even fixable
Comment 4 tech-lists 2020-12-09 22:44:06 UTC
version in ports is 7.1.7.2606_1,3
Comment 5 tech-lists 2021-05-20 04:08:35 UTC
misspelled portname
Comment 6 Peter Dean 2021-10-05 05:12:14 UTC
Problem is version - 7.1.8 or later required
https://support.google.com/earth/thread/43329999/ending-support-for-earlier-versions-of-google-earth?hl=en
Comment 7 commit-hook freebsd_committer freebsd_triage 2021-10-19 12:52:38 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0fdd00b27df5ca783f0e6d87618af662c9082e9e

commit 0fdd00b27df5ca783f0e6d87618af662c9082e9e
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2021-10-19 12:28:10 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2021-10-19 12:46:28 +0000

    astro/google-earth: mark as DEPRECATED

    Google Earth needs version 7.1.8 or later required to run[1] since October 2020.

    In order to update the port we need _at least_ linux ports for:

     * libproxy
     * gstreamer
     * gstreamer-plugin-base
     * libmodman
     * orc

    But in the end it fails at runtime because our linuxolator glibc is too old
    (GLIBC_2.17 vs GLIBC_2.18).

    [1] https://support.google.com/earth/thread/43329999/ending-support-for-earlier-versions-of-google-earth?hl=en

    PR: 251635

 astro/google-earth/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 8 John Hay 2024-02-25 06:59:01 UTC
As a note in case someone wants to create a new port, google-earth-pro-7.3.6 does work on FreeBSD-14.0 if one adds the linux libraries mentioned in comment 7, ie:

* libproxy
* gstreamer
* gstreamer-plugin-base
* libmodman
* orc

I used these:
gstreamer1-1.10.4-2.el7.x86_64.rpm
gstreamer1-plugins-base-1.10.4-2.el7.x86_64.rpm
libmodman-2.0.1-8.el7.x86_64.rpm
libproxy-0.4.11-11.el7.x86_64.rpm
orc-0.4.26-1.el7.x86_64.rpm

I used the 7.3.6 Fedora/OpenSUSE 64bit rpm version from https://support.google.com/earth/answer/168344?hl=en&ref_topic=4363014#zippy=%2Cdownload-a-google-earth-pro-direct-installer

It can also be downloaded with this url: https://dl.google.com/dl/linux/direct/google-earth-pro-stable-7.3.6.x86_64.rpm