Page MenuHomeFreeBSD

New master site: sourcehut
Needs ReviewPublic

Authored by github_evilham.com on Apr 3 2020, 10:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 30, 2:02 PM
Unknown Object (File)
Dec 20 2023, 5:13 AM
Unknown Object (File)
Dec 13 2023, 2:49 AM
Unknown Object (File)
Nov 15 2023, 5:58 PM
Unknown Object (File)
Nov 8 2023, 5:21 AM
Unknown Object (File)
Nov 7 2023, 6:49 PM
Unknown Object (File)
Nov 6 2023, 5:47 PM
Unknown Object (File)
Nov 4 2023, 11:55 PM

Details

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

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 sr.ht 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 sr.ht, make makesum works nicely.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No 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=https://hg.sr.ht would be fine, an additional variable for just the git or hg of the .sr.ht 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 sr.ht.

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 hg.sr.ht, 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 hg.sr.ht: https://todo.sr.ht/~sircmpwn/hg.sr.ht/33
If someone is interested in helping fix that, feel free to ping me :-).