On Wed, 05 Nov 2025 10:10:20 +0100, Stefan Esser wrote:
> 
> Am 05.11.25 um 03:01 schrieb Janky Jay, III:
> > 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.
> 
> I cannot reproduce the issue, and do not understand why the package
> creation may have failed for the OP.

I am using portmaster and /usr/local/lib/compat/pkg does not exist on
any of my systems. It's only created when I run 'make reinstall' in
ports-mgmt/pkg:

# cd /usr/ports/ports-mgmt/pkg
# make clean
# ls -l /usr/local/lib/compat
total 0
# make reinstall clean
[...]
pkg-static: unlinkat(usr/local/lib/compat/pkg/): No such file or directory
[...]
# ls -l /usr/local/lib/compat
total 4
drwxr-xr-x  2 root wheel 512 Nov  5 10:52 pkg
# portmaster pkg-
#  ls -l /usr/local/lib/compat/
total 0
# pkg create pkg
Creating package for pkg-2.3.1_1
pkg: lstat(/usr/local/lib/compat/pkg): No such file or directory


Reply via email to