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)
Dec 28 2024, 4:47 PM
Unknown Object (File)
Nov 20 2024, 11:49 PM
Unknown Object (File)
Oct 24 2024, 7:42 PM
Unknown Object (File)
Oct 22 2024, 7:51 AM
Unknown Object (File)
Sep 30 2024, 1:48 PM
Unknown Object (File)
Sep 30 2024, 12:28 AM
Unknown Object (File)
Sep 22 2024, 6:34 AM
Unknown Object (File)
Sep 21 2024, 11:09 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.