Setting:
Mixing both as such works as advertised, but I'm not sure how to keep it up to date in a safe manner so that the vital compile time options remain set on those ports that need it.
I know I can prevent
But that also means that
Question is hence simple:
How do I set it up so that:
E.g. of a package I need to make from source: nginx ...
- FreeBSD 11.0 RELEASE
- I have binary packages installed using
pkg
. Works great and fine in itself. - I have installed from source some ports as the options used in the binary version was not what I needed. Works great and fine in itself.
Mixing both as such works as advertised, but I'm not sure how to keep it up to date in a safe manner so that the vital compile time options remain set on those ports that need it.
I know I can prevent
pkg upgrade
from upgrading an installed from source package to a binary one by locking it with pkg lock <name>
. That works fine.But that also means that
portmaster <name>
doesn't want to update it either anymore, giving a long error message. I can go in the appropriate /usr/ports/... directory and do a manual make reinstall
, which does work, but then the lock seems to be gone all of a sudden, risking that pkg upgrade
would start to put its binary version out there.Question is hence simple:
How do I set it up so that:
- The binary installed packages keep getting binary upgrades
- The packages compiled from source with a different set of options can be upgraded with a simple command that doesn't require a truckload of additional software to be installed
- Keep that going forward so that the compile time option I need are never going to be overwritten by a binary version that has other options.
E.g. of a package I need to make from source: nginx ...