Page MenuHomeFreeBSD

bsd.sites.mk: Add GH_CHERRYPICK variable
Needs ReviewPublic

Authored by zirias on Jul 12 2022, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 1, 7:09 AM
Unknown Object (File)
Dec 21 2024, 1:27 AM
Unknown Object (File)
Nov 6 2024, 10:43 PM
Unknown Object (File)
Oct 30 2024, 11:53 AM
Unknown Object (File)
Oct 28 2024, 1:56 AM
Unknown Object (File)
Oct 2 2024, 1:58 PM
Unknown Object (File)
Sep 30 2024, 10:19 PM
Unknown Object (File)
Sep 30 2024, 10:36 AM

Details

Reviewers
None
Group Reviewers
portmgr
Summary

If set to a list of commit hashes, dist patches are automatically
configured for fetching and applying from Github.

While here, add 'main' to disallowed values for GH_TAGNAME.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 46379
Build 43268: arc lint + arc unit

Event Timeline

Rationale: it happened to me a few times that I had to patch upstream source for FreeBSD, and my patch was later accepted and merged. For github projects, this would add a simple way to apply the patch from upstream as long as it's still missing from the latest release.

Sure, but isn't "same repo" the common case? I'd argue it simplifies that case, you get rid of hand-crafted PATCH_SITES, PATCHFILES and PATCH_DIST_STRIP (or extra arg for the files)... and if GitHub ever changed how to access patches for individual commits, it could be handled in a central place.

Ok, this was already discussed a few times, something called GH_PATCH I think.

The way to go is to put the patches in the files directory in the port, and git add them.

In D35782#812003, @mat wrote:

Ok, this was already discussed a few times, something called GH_PATCH I think.

The way to go is to put the patches in the files directory in the port, and git add them.

I can't find GH_PATCH in my mail archive or from google search. Would you like to share what has been discussed and the rationale of this conclusion? It is nice to be recorded and will help the future us.

In D35782#812003, @mat wrote:

The way to go is to put the patches in the files directory in the port, and git add them.

Is this common agreement? I often found the opinion that local patches should be the last resort. Pulling patches from GitHub seems to be common practice (and well, if it's a dist site and the ports framework offers dist patches, this makes sense to me).

In D35782#812003, @mat wrote:

Ok, this was already discussed a few times, something called GH_PATCH I think.

The way to go is to put the patches in the files directory in the port, and git add them.

I can't find GH_PATCH in my mail archive or from google search. Would you like to share what has been discussed and the rationale of this conclusion? It is nice to be recorded and will help the future us.

The rationale is building stuff is faster if the patch is already there, rather than having to fetch a few kilobytes of text.

In D35782#812011, @felix_palmen-it.de wrote:
In D35782#812003, @mat wrote:

The way to go is to put the patches in the files directory in the port, and git add them.

Is this common agreement? I often found the opinion that local patches should be the last resort. Pulling patches from GitHub seems to be common practice (and well, if it's a dist site and the ports framework offers dist patches, this makes sense to me).

The problem is mainly depending more and more on external sources to get to the point where something can be built. Also, it is much faster to download a few patches as a git pack than having to run fetch for each of them.