Page MenuHomeFreeBSD

New master site: sourcehut
Needs ReviewPublic

Authored by on Apr 3 2020, 10:25 PM.


Group Reviewers
O5: Ports Framework(Owns No Changed Paths)

sourcehut is already a viable alternative to GitHub, with a valid business model and it's entirely open source.
It focuses on power users and tries to simplify workflows for develoepers as much as possible.

It's not unthinkable that more and more projects start using either or a self-hosted instance as upstream.

This patch intends to add support for USES_SOURCEHUT and, from my limited testing, it works quite well for custom ports.

Test Plan

Started working on ports with upstream on, make makesum works nicely.

Diff Detail

rP FreeBSD ports repository
No Linters Available
No Unit Test Coverage
Build Status
Buildable 30284
Build 28060: arc lint + arc unit

Event Timeline

We already have some ports that should be converted to this:

  • x11/wshowkeys
  • x11/wofi (commented out for now but note hg instead of git site. I guess SRHT_SITE= would be fine, an additional variable for just the git or hg of the URL would be ridiculous)
  • multimedia/wlrobs (same)
  • x11/wev
  • textproc/scdoc
  • mail/aerc

It somehow didn't cross my mind to check for ports already using

Anyway, I have an idea, how about a USES_SOURCEHUT_HG variable?

  • It could be used *instead of* USES_SOURCEHUT for mercurial support
  • If it is defined, we default SRHT_SITE to, otherwise everything else is the same as in the proposed patch

And followup question: should porting those ports to using this be a different diff?

Addeed support for USES_SOURCEHUT_HG.

It behaves the same as USES_SOURCEHUT and uses the same variables,
the only change is the default value for SRHT_SITE.

This is ATM partially blocked by a bug in
If someone is interested in helping fix that, feel free to ping me :-).