This is intended to address https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193844
This results in:
~/svn/ports/sysutils/beadm # make
> License BSD2CLAUSE accepted by the user
> Found saved configuration for beadm-1.1_1
> beadm-1.1_2 depends on package: pkg>=1.3.9 - not found
> Found pkg-1.3.8_3, but you need to upgrade to pkg>=1.3.9.
- Error code 1
For raw ports, users will get the somewhat obscure message, but we can
improve it to also list the origin to use.
For portmaster:
It does the right thing by default.
It uses build-depends-list (which includes PKG_DEPENDS). So it already
finds that pkg is updated and tries to build it first. It does NOT
consider the version dependency at all, but it does at least build
pkg first if updated.
For portupgrade:
It does not update pkg first.
- It doesn't consider PKG_DEPENDS.
- It does not updates dependencies first by default. -R is needed.
I consider both of these bugs and plan to fix them soon. I don't plan to commit this change until portupgrade is also fixed.