# pkg delete -f pkg
...
# ../pkg-static add pkg-2.4.1.pkg
pkg-static: pkg-2.4.1.pkg is not a valid package: no manifest found
This is on 14.3-RELEASE/amd64. pkg-2.4.1.pkg was created on a different machine using 'pkg create pkg-2.4.1' after upgrading pkg from 2.3.1_1 to 2.4.1 using portmaster. pkg-static is also copied from that machine.
I can still install pkg-2.3.1_1.pkg with the same pkg-static. I only get:
pkg: warning: database version 37 is newer than libpkg(3) version 36, but still compatible
Besides that warning, everything seems to work with pkg-2.3.1_1.
I know that portmaster is not really recommended anymore and using
pkg-static to install pkg is probably not the best way, either. Anyhow, it used to work and it should work from my understanding.
Best,
Jan Henrik
On Tue 04 Nov 15:18, Jan Henrik Sylvester wrote:
# pkg delete -f pkg
...
# ../pkg-static add pkg-2.4.1.pkg
pkg-static: pkg-2.4.1.pkg is not a valid package: no manifest found
This is on 14.3-RELEASE/amd64. pkg-2.4.1.pkg was created on a different
machine using 'pkg create pkg-2.4.1' after upgrading pkg from 2.3.1_1 to
2.4.1 using portmaster. pkg-static is also copied from that machine.
I can still install pkg-2.3.1_1.pkg with the same pkg-static. I only get:
pkg: warning: database version 37 is newer than libpkg(3) version 36, but
still compatible
Besides that warning, everything seems to work with pkg-2.3.1_1.
I know that portmaster is not really recommended anymore and using
pkg-static to install pkg is probably not the best way, either. Anyhow, it >> used to work and it should work from my understanding.
Best,
Jan Henrik
I would need more output that what you show.
How was your pkg-2.4.1.pkg created? can you host it somewhere to I can analyse.
On 11/4/25 3:23 PM, Baptiste Daroussin wrote:
On Tue 04 Nov 15:18, Jan Henrik Sylvester wrote:
# pkg delete -f pkg
...
# ../pkg-static add pkg-2.4.1.pkg
pkg-static: pkg-2.4.1.pkg is not a valid package: no manifest found
This is on 14.3-RELEASE/amd64. pkg-2.4.1.pkg was created on a different machine using 'pkg create pkg-2.4.1' after upgrading pkg from 2.3.1_1 to 2.4.1 using portmaster. pkg-static is also copied from that machine.
I can still install pkg-2.3.1_1.pkg with the same pkg-static. I only get:
pkg: warning: database version 37 is newer than libpkg(3) version 36, but still compatible
Besides that warning, everything seems to work with pkg-2.3.1_1.
I know that portmaster is not really recommended anymore and using pkg-static to install pkg is probably not the best way, either. Anyhow, it
used to work and it should work from my understanding.
Best,
Jan Henrik
I would need more output that what you show.
How was your pkg-2.4.1.pkg created? can you host it somewhere to I can analyse.
Thanks for your quick reply.
As I said, it was created on another machine using 'pkg create pkg-2.4.1', but you made me recheck the log. Previously, I failed to spot the following. Sorry.
pkg: dir '/usr/local/lib/compat/pkg' is missing
pkg: package creation failed
Hence, I could have known that the package is broken before I copied it to another machine.
I think it is simply an empty tar archive: https://janh.de/tmp/pkg-2.4.1.pkg
After creating /usr/local/lib/compat/pkg manually, I was able to recreate a working package.
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.
Hello.
On 2025/11/04 23:59, Jan Henrik Sylvester wrote:
That /usr/local/lib/compat/pkg was missing seems to be a bug inWhen the port is installed using make, ${LOCALBASE}/lib/compat/pkg may
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.
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.
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,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.
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.
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.
Creating a package for new version pkg-2.3.1_1
Package saved to yes/All
Installation of ports-mgmt/pkg (pkg-2.3.1_1) complete
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 inWhen the port is installed using make, ${LOCALBASE}/lib/compat/pkg
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.
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.
portmaster is merely one of the entities through which that operation is carried out.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 19:45:47 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
6 files (8,794K bytes) |
| Messages: | 184,914 |
| Posted today: | 1 |