Page MenuHomeFreeBSD

autodeps: determine dependencies automatically
Needs ReviewPublic

Authored by bapt on Jan 26 2024, 4:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 4:57 PM
Unknown Object (File)
Fri, Apr 26, 3:10 AM
Unknown Object (File)
Mon, Apr 15, 3:12 PM
Unknown Object (File)
Mon, Apr 15, 2:44 PM
Unknown Object (File)
Mon, Apr 15, 1:42 PM
Unknown Object (File)
Mon, Apr 15, 1:29 PM
Unknown Object (File)
Mon, Apr 15, 1:09 PM
Unknown Object (File)
Mon, Apr 15, 12:57 PM
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

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57049
Build 53937: 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
26

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.Fri, Apr 12, 8:07 AM

forgot STAGEDIR in this version

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

Debugging leftovers?

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