[MacPorts] #47951: tmux: moved from SF to Github
#47951: tmux: moved from SF to Github -------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: tmux -------------------------+------------------------ Repo: https://github.com/tmux/tmux Homepage: http://tmux.github.io/ -- Ticket URL: <https://trac.macports.org/ticket/47951> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Changes (by mf2k@…): * keywords: => haspatch * version: 2.3.3 => -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by tessarek@…): Thank you, and thanks for the patch. I am aware of the situation, but: '''Please don't apply the patch just yet.''' There are a few things I want to clarify and change first: * change the commit point of devel version to a newer one * Nicholas, the owner of tmux and the repo, has a rather strange approach to store the release tarballs (in its own repository). I want to get in contact with him and talk about it. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by chunyang@…): I added "revision 1" but now I am not sure if it's necessary. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by tessarek@…): No, as far as I know it's not necessary unless you really change the version or add a patch to the sw. But I was wondering something else right now. With github, you can actually retrieve commit points w/o using git at all. e.g.: {{{ https://github.com/tmux/tmux/archive/<hash>.zip }}} This has 2 advantages: no dependency on git, and you can use checksums for the devel subport. This also means I could use the same mechanism for the main port, or use the .tar.gz files. Let me think about this a bit. Maybe ryandesign@macports.org has some input on this. P.S.: Is there a way to 'mention' a person with @username in this ticket system, so that this person gets an email as well? -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Changes (by cal@…): * cc: ryandesign@… (added) Comment: Replying to [comment:4 tessarek@…]:
But I was wondering something else right now. With github, you can actually retrieve commit points w/o using git at all. e.g.: {{{ https://github.com/tmux/tmux/archive/<hash>.zip }}}
This has 2 advantages: no dependency on git, and you can use checksums for the devel subport. This also means I could use the same mechanism for the main port, or use the .tar.gz files. Let me think about this a bit. Maybe ryandesign@macports.org has some input on this.
The github PortGroup does this automatically unless you stop it from doing so. You can check by running `port distfiles tmux-devel` -- which should give you a HTTP URL.
P.S.: Is there a way to 'mention' a person with @username in this ticket system, so that this person gets an email as well?
No. I've Cc'd Ryan for you. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by ryandesign@…): Yes, github tarballs should be used if possible. Yes, that is the default behavior of the github portgroup. The `git.url` line should be removed because the value it's been set to is the default value. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by tessarek@…): Now I'm a bit confused. In the documentation https://guide.macports.org/#reference.phases.fetch.git there's no default value for `git.url`. Also, there is nowhere any info to be found on `github.tarball_from` or `github.setup`. Can you please make this documentation available so that I actually know what I'm doing?
Yes, github tarballs should be used if possible. Yes, that is the default behavior of the github portgroup.
For the main port or the subport? What do you mean by github tarball? In the example below 2.0.tar.gz or tmux-2.0.tar.gz? Why was `depends_lib` removed in the patch? tmux still depends on these 2 packages. There are 3 ways to get a release: 1. https://github.com/tmux/tmux/releases/download/2.0/tmux-2.0.tar.gz (real tarball) 1. https://github.com/tmux/tmux/archive/2.0.tar.gz (snapshot at time of commit - autogen.sh/autoreconf necessary) 1. https://github.com/tmux/tmux/archive/7536d690fdb8859193cdfdd2f68752711425bdd... (snapshot at time of commit - autogen.sh/autoreconf necessary) There are 2 ways to get git versions: 1. https://github.com/tmux/tmux/archive/7536d690fdb8859193cdfdd2f68752711425bdd... (snapshot at time of commit - autogen.sh/autoreconf necessary) 1. git clone / using: fetch.type git, git.branch, ... (snapshot at time of commit - autogen.sh/autoreconf necessary) I'm sorry for my many questions, but there are so many different ways to get this done. Without proper documentation and guides I can't know what I should do. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by chunyang@…): Replying to [comment:7 tessarek@…]:
Now I'm a bit confused. In the documentation https://guide.macports.org/#reference.phases.fetch.git there's no default value for `git.url`.
Also, there is nowhere any info to be found on `github.tarball_from` or `github.setup`. Can you please make this documentation available so that I actually know what I'm doing?
They are specified by github PortGroup[https://guide.macports.org/#reference.portgroup], its usage is documented in the comments of github-1.0.tcl[https://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/gith...] (see also /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl)
Yes, github tarballs should be used if possible. Yes, that is the default behavior of the github portgroup.
For the main port or the subport? What do you mean by github tarball? In the example below 2.0.tar.gz or tmux-2.0.tar.gz? Why was `depends_lib` removed in the patch? tmux still depends on these 2 packages.
It was not removed actually, It's a kind of limitation of viewing diff file from trac. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by larryv@…): Replying to [comment:7 tessarek@…]:
Now I'm a bit confused. In the documentation https://guide.macports.org/#reference.phases.fetch.git there's no default value for `git.url`.
Also, there is nowhere any info to be found on `github.tarball_from` or `github.setup`. Can you please make this documentation available so that I actually know what I'm doing?
Sorry, many of our portgroups are not well-documented. There are many, many examples of use in other ports. You’ll want to look at the [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506|github-1.0 portgroup]]. - There’s a brief usage note at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L33|line 33]]. - The default value for `git.url` is set at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L160|line 160]]. - `github.tarball_from` is set up at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L122|line 122]]. - `github.setup` is defined at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L146|line 146]].
For the main port or the subport?
Depends on where `github.setup` is called. We’ll actually have to handle this a bit carefully to get it right. The `github-1.0` portgroup is not one of our good ones.
What do you mean by github tarball?
A tarball containing a particular Git tree.
Why was `depends_lib` removed in the patch? tmux still depends on these 2 packages.
It wasn’t removed; look at the diff more carefully.
There are 3 ways to get a release:
1. https://github.com/tmux/tmux/releases/download/2.0/tmux-2.0.tar.gz (real tarball) 1. https://github.com/tmux/tmux/archive/2.0.tar.gz (snapshot at time of commit - autogen.sh/autoreconf necessary) 1. https://github.com/tmux/tmux/archive/7536d690fdb8859193cdfdd2f68752711425bdd... (snapshot at time of commit - autogen.sh/autoreconf necessary)
For `tmux`, we want the first option, to avoid needing Autotools.
There are 2 ways to get git versions:
1. https://github.com/tmux/tmux/archive/7536d690fdb8859193cdfdd2f68752711425bdd... (snapshot at time of commit - autogen.sh/autoreconf necessary) 1. git clone / using: fetch.type git, git.branch, ... (snapshot at time of commit - autogen.sh/autoreconf necessary)
For `tmux-devel`, we’ll want the first option, to avoid doing an actual Git clone. We cannot mirror or cache Git clones. I’ve just attached [[attachment:tmux.patch|a patch]] that makes the necessary changes. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by ryandesign@…): Replying to [comment:9 larryv@…]:
Depends on where `github.setup` is called. We’ll actually have to handle this a bit carefully to get it right. The `github-1.0` portgroup is not one of our good ones.
I consider the github portgroup quite good. It's thoroughly documented in the comments in the portgroup file, and it works great, as far as I know. If you have problems with it let me know. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by tessarek@…): Thank you all for the detailed explanations. Larry, I took your patch, but changed the commit point for tmux-devel to the latest one (and version and checksums) [attachment:Portfile- tmux.patch]. I've tested it and everthing looks fine. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: tmux | --------------------------+------------------------ Changes (by larryv@…): * status: new => closed * resolution: => fixed Comment: Great, thanks. r137096, r137097 -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts