Hi All,

On 11/4/25 05:23PM, Tatsuki Makino wrote:
Hello.

On 2025/11/04 23:59, Jan Henrik Sylvester wrote:
That /usr/local/lib/compat/pkg was missing seems to be a bug in portmaster, which was used to upgrade pkg-2.3.1_1 to pkg-2.4.1, because when I do 'pkg delete -f pkg' and 'make -C /usr/ports/ports-mgmt/pkg install clean' the directory is created correctly. I guess I should learn that portmaster really is an outdated method to upgrade.
When the port is installed using make, ${LOCALBASE}/lib/compat/pkg may be removed by /usr/ports/Templates/BSD.local.dist if the directory is empty. portmaster is merely one of the entities through which that operation is carried out.

Also, just a quick FYI, I tested the upgrade of pkg-2.3.1_1 to pkg-2.4.1 today using portmaster on both FreeBSD-14.3-R-p5 and FreeBSD-15.0-STABLE (latest 15-n281026-e2a87c08171a) and I didn't have any issues or errors at all. The "pkg" command continued to work as expected afterwards.

I haven't tried copying any "pkg" packages to another system to test, but everything seems to be in order for the way portmaster is building and installing the port.

Regards,
Janky Jay, III


Reply via email to