macports localinstall github tries to download from macports

Ken Cunningham ken.cunningham.webuse at
Mon Apr 27 19:55:35 UTC 2020

it takes some work sometimes to make the github PortGroup obey your bidding:

you know that you want this file:

you would have thought that setting:

github.tarball_from archive

would work to get you that file, but it does not, because the github portgroup generates this url instead:

and there is nothing at that URL. Ergo your 404 error.

This can be very frustrating. Some package mangers just let you put in the whole URL you want -- that is nice :> -- but it bypasses a feature MacPorts wants to have, which is distfile mirroring, which is nice when it works.

You can see the URL the github PG generates by using

port distfiles

and then just monkey around with options until it matches a place where there is a file.

In practical terms for right now, if you remove this line:

github.tarball_from archive

and you should be OK

port distfiles will tell you.

I often paste the URL I want into the portfile as a comment, and then keep monkeying around with the GitHub PG settings until I get something.

Anybody who tells you it is very easy and you're missing something obvious just forgets what it was like before they knew how to manhandle the github PG :>


More information about the macports-users mailing list