Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pg stub: cleanup: remove platforms; add installs_libs no; comments
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ef9ce94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this portgroup is always going to set
supported_archs noarch
andinstalls_libs no
, it needs to be made very clear that it cannot be used for stubs that stand in for a library dependency. That is, if instead of app A depending directly on library B, you instead have A -> stub -> B. This is because ports need to depend directly on what they use directly, and if they don't, several things including arch checking and license checking break. In the example, A will end up linked to B despite only depending on stub. This can still work, but only if arch and license checking reach B transitively, which is exactly what these options prevent.ef9ce94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point, we should provide an option for each in the pg. I'll also review the ports I changed, to see if there are any cases where this applies. (There may indeed be one or two, but can't say for sure just yet )
Regardless, I'll tackle this all first thing tomorrow. Thanks for the heads-up!
ef9ce94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated pg
stub
to support this case, via optionstub.lib_dep
. Also updated portmsgpack
, since it falls into this category.ef9ce94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And let me know if there's anything else we can do to improve this pg!