Page MenuHomeFreeBSD

Adding dependencies when crates are detected
AbandonedPublic

Authored by pizzamig on Sep 23 2019, 9:10 AM.
Tags
None
Referenced Files
F135605556: D21764.id62454.diff
Tue, Nov 11, 6:00 AM
Unknown Object (File)
Fri, Oct 24, 4:28 AM
Unknown Object (File)
Aug 29 2025, 3:19 PM
Unknown Object (File)
Aug 29 2025, 5:55 AM
Unknown Object (File)
Aug 21 2025, 7:22 AM
Unknown Object (File)
Aug 12 2025, 7:09 PM
Unknown Object (File)
Aug 4 2025, 3:39 PM
Unknown Object (File)
Jul 27 2025, 2:07 AM
Subscribers
None

Details

Reviewers
tobik
Group Reviewers
rust
Summary

Currently, cargo.mk automatically detects crates that needs further configuration and/or dependencies.
However, same crates injects their dependencies, while other are only providing CARGO_ENV configuration.

This patch has the goal to uniform the situation, always injecting the needed dependencies.

While here, adding llvm as dependency for bindgen

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 26640
Build 25014: arc lint + arc unit

Event Timeline

pizzamig added reviewers: rust, tobik.
tobik requested changes to this revision.Sep 23 2019, 9:17 AM

No, all of this is wrong for the reasons given in the commit message of rP499149.

This revision now requires changes to proceed.Sep 23 2019, 9:17 AM
Mk/Uses/cargo.mk
175–180

Ports cannot depend on meta ports per rP496150. I also think it is a bad idea to add this for bingen per the reason given in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240725.

  • Use LLVM_DEFAULT to specify llvm dependency

OK, I was unsure which direction was the right one, but I've seen the inconsistency and I tried to address it.

I'll abandon this patch and I just push the new dependency to the port, where it belongs