FYI, I plan to enable this support soon in both tools.
I actually see 4 different modes here. Note I made up --local-only for this discussion, I am not changing the flags in either tool. -P: Use package if available, otherwise build from source. -P --local-only: Use local package if available, otherwise build from source. -PP: Only use packages -PP --local-only: Only use local packages. I did not quite understand the use-case for it and was not convinced it was needed until recently. I will be adding a majority of the logic into the ports framework though. A lot of this logic already exists, just needs to be refined and hooked together. Ports will have a flags to enable the use cases above (only for pkgng). It will search local package dir and then remote for the package before installing. These flags will all be off by default. Portmaster/Portupgrade/Poudriere all will utilize them. Yes, poudriere has a need here for installing dependencies from local packages for interactive testing where it is more efficient to do it in the framework. One of the reasons I plan to put this logic into ports is so the same consistent (smart) logic can be used in both tools. In general I believe that all logic like this should be in ports and not in tools such as portmaster/portupgrade/poudriere/tinderbox. There is still some unrelated lingering logic in poudriere that needs to be moved to the framework in fact. One of the blockers to making this work properly is having an official repository installed out-of-the-box. I am working on getting an EN out to publish the repository and fingerprints for pkg. As a last resort we may publish this in ports as well in /Templates/repo, which pkg(8) can utilize as a last resort for this ports feature. If it comes to that I will give more details on it. This repo could be disabled in the same way as the FreeBSD one is today, by creating a file in /usr/local/etc/pkg/repos/FreeBSD.conf with contents "FreeBSD: { enabled: false }" -- Regards, Bryan Drewery
signature.asc
Description: OpenPGP digital signature