It's possible that port X@foo wants one set of options, and X@bar wants a different set.
How is that handled?
One case I have hit, which presumably does it wrong (details follow) is www/py-autobahn
In there, it has the line:
But what actually happens for me, is that it pops up the "make config" dialog repeatedly, when building related ports. It does not seem to remember that "make config" has been done already. I am using portmaster, so I guess it's possible the problem lies there, somehow? But as I understand it, portmaster basically relies on the underlying "make config-recursive" and such.
Also, I do not see other ports using this "OPTIONS_FILE=..." trickery. I suspect it is not the right approach.
Which comes back to the original question: what *is* the right approach?
I have read this wiki page: https://wiki.freebsd.org/Ports/FlavorsAndSubPackages
and interestingly, one of the few not-yet-struck-out lines is "Figure out how OPTIONS + FLAVORS work."
Perhaps this is not supported, yet? (not that I trust old wiki pages too much, last edited in 2022)
Looking for advice, thanks.
How is that handled?
One case I have hit, which presumably does it wrong (details follow) is www/py-autobahn
In there, it has the line:
Code:
OPTIONS_FILE= ${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options
But what actually happens for me, is that it pops up the "make config" dialog repeatedly, when building related ports. It does not seem to remember that "make config" has been done already. I am using portmaster, so I guess it's possible the problem lies there, somehow? But as I understand it, portmaster basically relies on the underlying "make config-recursive" and such.
Also, I do not see other ports using this "OPTIONS_FILE=..." trickery. I suspect it is not the right approach.
Which comes back to the original question: what *is* the right approach?
I have read this wiki page: https://wiki.freebsd.org/Ports/FlavorsAndSubPackages
and interestingly, one of the few not-yet-struck-out lines is "Figure out how OPTIONS + FLAVORS work."
Perhaps this is not supported, yet? (not that I trust old wiki pages too much, last edited in 2022)
Looking for advice, thanks.