Page MenuHomeFreeBSD

Allow usage of rust for rubygems
ClosedPublic

Authored by mfechner on Jan 3 2024, 9:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 31, 1:37 PM
Unknown Object (File)
Thu, Jan 15, 10:08 PM
Unknown Object (File)
Dec 20 2025, 11:34 PM
Unknown Object (File)
Dec 18 2025, 9:05 AM
Unknown Object (File)
Dec 14 2025, 1:08 PM
Unknown Object (File)
Dec 14 2025, 1:08 PM
Unknown Object (File)
Dec 14 2025, 1:08 PM
Unknown Object (File)
Dec 14 2025, 1:08 PM
Subscribers

Details

Summary

Make it possible to use rust/cargo together with rubygems.
The commits are also hosted here:
https://gitlab.fechner.net/mfechner/Gitlab/-/commits/rust-prometheus-client-mmap

The patch is designed in a way that it should not have any impact to any existing rubygens port.

The port that requires cargo support from ports need to set some additional configurations, see also commit message included in patch file

Test Plan

I tested all ports used by gitlab-ce to be buildable.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mfechner created this revision.
arrowd added inline comments.
Mk/Uses/gem.mk
86

This is not needed anymore, I guess? Uses/cabal.mk appends to _USES_<target> unconditionally.

Mk/Uses/gem.mk
86

I have added it to not change the logic. Not sure if any rubygem port overwrite the do-extract target.
At least the command does not find anything:

rg  -g '**/rubygem**/Makefile' do-extract

I prefer to keep it, as it enables the maintainer to overwrite it, if necessary.

I removed now the if condition around the do-extract target, it is not used.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 6 2024, 8:18 AM
This revision was automatically updated to reflect the committed changes.