Page MenuHomeFreeBSD

autodeps: determine dependencies automatically
Needs ReviewPublic

Authored by bapt on Jan 26 2024, 4:52 PM.
Tags
None
Referenced Files
F132799944: D43619.id136922.diff
Mon, Oct 20, 1:56 AM
F132799939: D43619.id136928.diff
Mon, Oct 20, 1:56 AM
F132799912: D43619.id136929.diff
Mon, Oct 20, 1:56 AM
F132735067: D43619.diff
Sun, Oct 19, 11:39 AM
Unknown Object (File)
Thu, Oct 16, 2:10 AM
Unknown Object (File)
Fri, Oct 10, 6:19 PM
Unknown Object (File)
Tue, Sep 23, 8:09 PM
Unknown Object (File)
Sep 15 2025, 4:07 AM
Subscribers

Details

Reviewers
mat
Group Reviewers
portmgr
Summary

The goal is to kill the translation from LIB_DEPENDS to RUN_DEPENDS
which simplifies dependencies declaration

This method can be extended to automatically catch shebangs as well

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 55648
Build 52537: arc lint + arc unit

Event Timeline

bapt requested review of this revision.Jan 26 2024, 4:52 PM
bapt created this revision.
arrowd added inline comments.
Mk/Scripts/autodeps.sh
25

In Mk/Uses/electronfix.mk I'm using the following incantation to find linux binaries:

${FIND} ${STAGEDIR}${DATADIR} -type f -exec brandelf {} ';' 2> /dev/null | grep -v "'FreeBSD' (9)"

In you case you can just reverse the check.

bapt marked an inline comment as done.
mat added a subscriber: mat.

Looks ok to me

This revision is now accepted and ready to land.Apr 12 2024, 8:07 AM

forgot STAGEDIR in this version

This revision now requires review to proceed.Apr 12 2024, 9:46 AM
Mk/Scripts/autodeps.sh
35

Debugging leftovers?

bapt marked an inline comment as done.Apr 13 2024, 1:42 PM