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)
Tue, Jun 25, 9:29 AM
Unknown Object (File)
Apr 10 2024, 4:34 AM
Unknown Object (File)
Mar 15 2024, 2:17 AM
Unknown Object (File)
Mar 2 2024, 4:41 PM
Unknown Object (File)
Feb 19 2024, 10:40 PM
Unknown Object (File)
Feb 19 2024, 10:12 PM
Unknown Object (File)
Feb 13 2024, 1:48 AM
Unknown Object (File)
Jan 18 2024, 3:24 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.