> Am 18.02.2026 um 21:49 schrieb Paul Eggert <[email protected]>:
> 
> If you can't build from git, 

Hello Paul!

I think I should learn how to update tar 1.35.90 via git in future. Could be 
three lines in Portfile will make MacPorts get the code via git… but I do need 
an address and such. For GNU Emacs' tree-sitter the three lines are:

        PortGroup           github 1.0
        
        github.setup        tree-sitter tree-sitter 0.25.2 v
        github.tarball_from archive

And maybe a fourth line:

        dist_subdir         ${name}/${version}_${revision}

that is filled in partially from the github.setup line and this one

        revision            0

A test, or some of them when trying to minimise the number of git complaints, 
will show, and if it fails, the archive file and patches will work together.

The documentation mentions, for the general case, a fetch.type git, a git.url 
starting with git:// or https:// and a git.branch, either some (hex) number or 
a pathname particle, "origin/next" given as example. (The doc states: fetching 
via Git may cause non-reproducible builds, so it is strongly discouraged.)

Working examples of git fetch I remember are GNU Emacs development releases and 
the XOrg Server. From these I surely can learn a lot!

--

Greetings

  Pete

The wise man said: "Never argue with an idiot. They bring you down to their 
level and beat you with experience."



Reply via email to