distfile downloads failing on https

2018-02-21 Thread Jan Stary
Recently, I have tweaked textproc/lowdown https://github.com/macports/macports-ports/pull/1245 to download the distfile from a http master site, not a https one, because the https server rejects the weak ssl of some older MacOS systems, which could not download the distfile then. That worked for a

Re: distfile downloads failing on https

2018-02-21 Thread Jan Stary
On Feb 21 12:43:28, h...@stare.cz wrote: > To be sure: when downloading a distfile, does MP always use the system's > native curl(1)? Or does it try the port's curl(1), if installed? > Or does it try the port's curl(1) _first_? Apparently not: the base /usr/bin/curl reports an "Unknown SSL error",

Re: distfile downloads failing on https

2018-02-21 Thread Jan Stary
On Feb 21 12:43:28, h...@stare.cz wrote: > A more general proposed solution was to bunlde a newer curl with MP, > in partcular one built against a newer SSL/TLS library: > https://trac.macports.org/ticket/51516 It was also suggested there to recompile MP using its own already installed curl port.

Re: distfile downloads failing on https

2018-02-21 Thread Jan Stary
On Feb 21 13:18:47, h...@stare.cz wrote: > On Feb 21 12:43:28, h...@stare.cz wrote: > > A more general proposed solution was to bunlde a newer curl with MP, > > in partcular one built against a newer SSL/TLS library: > > https://trac.macports.org/ticket/51516 > > It was also suggested there to rec

Re: distfile downloads failing on https

2018-02-21 Thread Ken Cunningham
see https://trac.macports.org/ticket/51516#comment:19 for a workaround that works quite well on Tiger up until this gets fixed K > On Feb 21, 2018, at 04:26, Jan Stary wrote: > >> On Feb 21 13:18:47, h...@stare.cz wrote: >>> On Feb 21 12:43:28, h...@stare.cz wrote: >>> A more general proposed

Re: distfile downloads failing on https

2018-02-21 Thread Ken Cunningham
I should have been more descriptive about the /opt/bootstrap part of the post below. Like you, I didn't like the circular dependency. If you "sudo port uninstall active", you're hooped. So here's what I actually do on all systems 10.4 to 10.7 using Macports from this page

Re: distfile downloads failing on https

2018-02-21 Thread Jan Stary
On Feb 21 08:11:26, ken.cunningham.web...@gmail.com wrote: > I should have been more descriptive about the /opt/bootstrap part of the post > below. > > Like you, I didn't like the circular dependency. If you "sudo port uninstall > active", you're hooped. So here's what I actually do on all sys

Re: distfile downloads failing on https

2018-02-21 Thread Clemens Lang
Hi Jan, On Wed, Feb 21, 2018 at 08:14:13PM +0100, Jan Stary wrote: > If I am reading > https://guide.macports.org/chunked/reference.phases.html right, there > is are no "fetch dependencies". Would it make sense to introduce fetch > dependencies just like we have build dependencies and run > depend

Re: distfile downloads failing on https

2018-02-22 Thread Rainer Müller
On 2018-02-21 20:14, Jan Stary wrote: > If I am reading https://guide.macports.org/chunked/reference.phases.html > right, there is are no "fetch dependencies". Would it make sense > to introduce fetch dependencies just like we have build dependencies > and run dependencies, so that the affected por

Re: distfile downloads failing on https

2018-02-22 Thread Jan Stary
On Feb 22 17:09:22, rai...@macports.org wrote: > On 2018-02-21 20:14, Jan Stary wrote: > > If I am reading https://guide.macports.org/chunked/reference.phases.html > > right, there is are no "fetch dependencies". Would it make sense > > to introduce fetch dependencies just like we have build depend

Re: distfile downloads failing on https

2018-02-22 Thread Jan Stary
On Feb 22 19:04:41, h...@stare.cz wrote: > > depends_fetch exists, but apparently is not documented in the guide. > > Thanks for the insight. Currently, nothing is using it, > except: these explicitly clear it (why?) Is there a default nonempty value for depends_fetch that makes these ports want

Re: distfile downloads failing on https

2018-02-22 Thread Ryan Schmidt
On Feb 21, 2018, at 13:14, Jan Stary wrote: > > Would it make sense > to introduce fetch dependencies just like we have build dependencies > and run dependencies, so that the affected ports could specify e.g. curl, > and MP vuld use _that_ for those ports? As was mentioned, depends_fetch exists.

Re: distfile downloads failing on https

2018-02-22 Thread Ken Cunningham
On 2018-02-21, at 11:14 AM, Jan Stary wrote: >> You are done. No more circular dependency. > > Yes. One installation of MP depends on another installation. > That's not circular. CIrcular is when an installation of MacPorts depends on itself, and is therefore fragile. The installation of libc

Re: distfile downloads failing on https

2018-02-22 Thread Ryan Schmidt
On Feb 22, 2018, at 20:04, Ken Cunningham wrote: > or until we bundle in libcurl. Note that bundling libcurl is insufficient to fix the issue; we would have to bundle an ssl library too, and there was an objection that we don't want to be in the business of needing to quickly release a new ver

Re: distfile downloads failing on https

2018-02-23 Thread Jan Stary
On Feb 22 18:04:23, ken.cunningham.web...@gmail.com wrote: > >> You are done. No more circular dependency. > > Yes. One installation of MP depends on another installation. > > > > That's not circular. Circular is when an installation of MacPorts depends on > itself, > and is therefore fragile. T

Re: distfile downloads failing on https

2018-02-23 Thread Ken Cunningham
> On Feb 23, 2018, at 01:49, Jan Stary wrote: > > On Feb 22 18:04:23, ken.cunningham.web...@gmail.com wrote: You are done. No more circular dependency. >>> Yes. One installation of MP depends on another installation. >>> >> >> That's not circular. Circular is when an installation of MacP

Re: distfile downloads failing on https

2018-02-25 Thread Jan Stary
On Feb 22 19:04:41, h...@stare.cz wrote: > On Feb 22 17:09:22, rai...@macports.org wrote: > > On 2018-02-21 20:14, Jan Stary wrote: > > > If I am reading https://guide.macports.org/chunked/reference.phases.html > > > right, there is are no "fetch dependencies". Would it make sense > > > to introduc

Re: distfile downloads failing on https

2018-02-27 Thread Ryan Schmidt
On Feb 26, 2018, at 00:57, Jan Stary wrote: > On Feb 22 19:04:41, Jan Stary wrote: >> On Feb 22 17:09:22, Rainer Mueller wrote: >>> On 2018-02-21 20:14, Jan Stary wrote: If I am reading https://guide.macports.org/chunked/reference.phases.html right, there is are no "fetch dependencies".

Re: distfile downloads failing on https

2018-02-27 Thread Jan Stary
> If I am reading https://guide.macports.org/chunked/reference.phases.html > right, there is are no "fetch dependencies". Would it make sense > to introduce fetch dependencies just like we have build dependencies > and run dependencies, so that the affected ports could specify e

Re: distfile downloads failing on https

2018-02-28 Thread Ryan Schmidt
On Feb 28, 2018, at 01:12, Jan Stary wrote: > Back to the original problem: using depends_fetch is not a solution > to downloads of tar.gz failing on some https sites, right? Because > whatever the port adds to depends_fetch, the https fetching will > still be done with the (lib)curl macports was