Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#54907 closed defect (fixed)

Mosh 1.3.2 cannot be downloaded or configured on osx 10.5

Reported by: snigel Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: neverpanic (Clemens Lang), quentinmit (Quentin Smith)
Port: Mosh

Description

OSX 10.5 Leopard Ports 2.4.1 Can't download mosh.

--->  Fetching distfiles for mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://osl.no.distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://nue.de.distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://lil.fr.distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from https://mosh.org/
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://sea.us.distfiles.macports.org/macports/distfiles/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://jog.id.distfiles.macports.org/macports/distfiles/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://jnb.za.distfiles.macports.org/distfiles/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://cjj.kr.distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://aarnet.au.distfiles.macports.org/pub/macports/distfiles/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://nou.nc.distfiles.macports.org/pub/macports/distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://kmq.jp.distfiles.macports.org/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://pek.cn.distfiles.macports.org/macports/distfiles/mosh
--->  Attempting to fetch mosh-1.3.2.tar.gz from http://her.gr.distfiles.macports.org/mosh
Error: Failed to fetch mosh: The requested URL returned error: 404

If I try to wget the package manually, it complains about certificate, so that could explain at least some of the fails.

wget https://mosh.org/mosh-1.3.2.tar.gz
--2017-09-26 23:20:51--  https://mosh.org/mosh-1.3.2.tar.gz
Resolving mosh.org... 18.181.0.46
Connecting to mosh.org|18.181.0.46|:443... connected.
ERROR: cannot verify mosh.org's certificate, issued by 'CN=COMODO RSA Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB':
  Unable to locally verify the issuer's authority.
To connect to mosh.org insecurely, use `--no-check-certificate'.

I downloaded the package manually from mosh.org, since it was in the list of sources, and placed the tarball in /opt/local/var/macports/distfiles/mosh

Trying to do a rebuild using "sudo port install mosh" then fails at the configure step. Within the log this can be found:

:info:configure configure: error: Apple Common Crypto header not found

Change History (6)

comment:1 Changed 7 years ago by neverpanic (Clemens Lang)

As you've discovered, 10.5 does not longer have current root CA certificates and will thus fail to download from a lot of websites. MacPorts will not manage root CA certificates for you, since we don't feel we're in a position to decide who you should trust.

Additionally, on 10.5 you'll see a lot of servers that no longer support the older SSL/TLS protocols supported by 10.5, which will just refuse any encrypted connection. There's little we can do about this. You should consider moving to a newer system (or run a current Linux if you're stuck on PPC).

As for the CommonCrypto requirement, you need to replace configure.args --with-crypto-library=apple-common-crypto with configure.args --with-crypto-library=openssl and add an OpenSSL dependency to depends_lib: path:lib/libssl.dylib:openssl. See [216bfe002ea78203d6ad4bfd19926147a95637d3/macports-ports] which introduced this change.

If you can submit a pull request that changes this back to OpenSSL on systems that do not have CommonCrypto, I'm willing to merge that. I will, however, not spend time on trying to solve 10.5 problems myself.

comment:2 Changed 7 years ago by neverpanic (Clemens Lang)

Cc: neverpanic quentinmit added

comment:3 Changed 7 years ago by kencu (Ken)

A very good workaround on 10.4 to 10.8 is to install one copy of MacPorts from source into /opt/bootstrap, install curl with that copy, and then install MacPorts from source as usual into /opt/local referencing the curl in /opt/bootstrap instead of the system curl. This works great and has fixed this on every older system I have. Highly recommended!

Every six months or so I update the curl in /opt/bootstrap

comment:4 Changed 7 years ago by kencu (Ken)

Clemen's suggestion work perfectly, as you can see:

$ port -v installed mosh
The following ports are currently installed:
  mosh @1.3.2_0+perl5_24 (active) platform='darwin 9' archs='ppc' date='2017-09-26T15:53:50-0700'

You can try the Portfile here <https://github.com/kencu/LeopardPorts/tree/master/net/mosh> and if it works for you as well, then we can submit it.

comment:5 Changed 7 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 5aaf07f3a5a38eeee0ad25bbf09b0e883509a91d/macports-ports:

mosh: allow build with systems < 10.7

use openssl on < 10.7, apple commoncrypto otherwise
closes: #54907

comment:6 Changed 7 years ago by snigel

Works fine for me after the change in the Portfile. Mosh builds and runs.

Note: See TracTickets for help on using tickets.