macports localinstall github tries to download from macports

macports at parvis.nl macports at parvis.nl
Wed Apr 29 13:12:50 UTC 2020


> On 2020-04-29, at 13:11, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
> 
> 
> On Apr 28, 2020, at 06:58, macports at parvis.nl wrote:
> 
>> Ryan Schmidt said:
>> 
>>> You want:
>>> 
>>> github.setup        snabb downtimed 1.0 version-
>>> github.tarball_from archive
>> 
>> but that results in https://github.com/snabb/downtimed/archive/version-1.0/downtimed-1.0.tar.gz (the version number in 2 places).
> 
> That's correct. It works. Use it.
> 
> 
>> i tried some variants of distname and tried
>> 
>> github.setup        snabb downtimed 1.0
>> distname            version-${version}
>> master_sites        ${homepage}/archive
>> 
>> and that works. it this acceptable?
> 
> Don't do that. Use the values that the github portgroup sets for you.

indeed it works,but can you explain why it works?

we want:
https://github.com/snabb/downtimed/archive/version-1.0.tar.gz

port distfiles says:
https://github.com/snabb/downtimed/archive/version-1.0/downtimed-1.0.tar.gz

port fetch says:
Attempting to fetch downtimed-1.0.tar.gz from htps://github.com/snabb/downtimed/archive/version-1.0

--->  Fetching distfiles for downtimed
--->  downtimed-1.0.tar.gz does not exist in /opt/local/var/macports/distfiles/downtimed
--->  Attempting to fetch downtimed-1.0.tar.gz from https://distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch downtimed-1.0.tar.gz from http://lil.fr.distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch downtimed-1.0.tar.gz from http://nue.de.distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch downtimed-1.0.tar.gz from http://cph.dk.distfiles.macports.org/downtimed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch downtimed-1.0.tar.gz from https://github.com/snabb/downtimed/archive/version-1.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   128  100   128    0     0    156      0 --:--:-- --:--:-- --:--:--   156
100 72033    0 72033    0     0  31214      0 --:--:--  0:00:02 --:--:--  105k



More information about the macports-dev mailing list