I feel like I can't develop a complete scenario of updating my system. I have read mans for pkg-upgrade, portmaster and portupgrade, but I still don't understand it.
First of all, I chose to mix ports and binary pkgs with due respect to:
- pkg's repo URL matches ports tree branch (FreeBSD 12.1, repo /quarterly, ports 2020Q2 from github)
- I always use the default config (make -DBATCH) when building ports
As I understand, the rules above are enough for making ports and pkgs 100% compatible.
( I've read this: https://forums.freebsd.org/threads/mixing-ports-and-packages-question.64444/ )
OK, lets suppose this is correct.
How do I upgrade now? What tools are responsible for rebuilding port sources (which I git pulled) and what
tools is for upgrading binary packages? How do they detect which ports are built from source and which are
installed with pkg? Why did I get a different outputs from different tools (below)?
pkg(8) says:
portmaster(8) detects only groff(1):
First of all, I chose to mix ports and binary pkgs with due respect to:
- pkg's repo URL matches ports tree branch (FreeBSD 12.1, repo /quarterly, ports 2020Q2 from github)
- I always use the default config (make -DBATCH) when building ports
As I understand, the rules above are enough for making ports and pkgs 100% compatible.
( I've read this: https://forums.freebsd.org/threads/mixing-ports-and-packages-question.64444/ )
OK, lets suppose this is correct.
How do I upgrade now? What tools are responsible for rebuilding port sources (which I git pulled) and what
tools is for upgrading binary packages? How do they detect which ports are built from source and which are
installed with pkg? Why did I get a different outputs from different tools (below)?
pkg(8) says:
Code:
root@host:/usr/ports/textproc/groff # pkg upgrade -F
...
Installed packages to be REINSTALLED:
gcc9-9.3.0 (provided shared library changed)
groff-1.22.4_3 (needed shared library changed)
gstreamer1-plugins-gl-1.16.2 (needed shared library changed)
qt5-buildtools-5.13.2_1 (needed shared library changed)
...
portmaster(8) detects only groff(1):
Code:
root@host:/usr/ports/textproc/groff # portmaster -n
===>>> Currently installed version: groff-1.22.4_3
===>>> Port directory: /usr/ports/textproc/groff
===>>> Gathering dependency list for textproc/groff from ports
===>>> Initial dependency check complete for textproc/groff
===>>> Starting build for textproc/groff <<<===
===>>> All dependencies are up to date
portupgrade -arR
just upgraded gdb(1) which was not in both previous outputs (it's actually updated to new version in ports tree pulled from git).