Re: New pkg 2.1.1 used wrong version of pkg/libpkg/pkg_abi.c

From: Matthias Fechner <mfechner_at_freebsd.org>
Date: Thu, 24 Apr 2025 04:49:30 UTC
Am 24.04.2025 um 01:22 schrieb Mark Millard:
> pkg 2.1.1 generates .pkg files with incorrect content.
> (That is what can later lead to the recursive
> addition-start sequence.)
>
> So you likely will want to regenerate any .pkg file that
> pkg 2.1.1 generated.

I can confirm this.
I was able to fix the problem (maybe that help someone else).
I use poudriere to build my packages.

Go to you repository like:
cd /usr/local/poudriere/ports/default

Revert the pkg 2.1.1 commit and remove it from git index:
git revert -n 2bb7e518317c68231c43d382180239be809e2928
git reset
git revert --abort

Next we need to remove all already build package, I did this by just 
deleting all files modified in the last 24 hours:
cd /usr/local/poudriere/data/packages
find . -mtime 1 -name "*.pkg" -path "*All*" -delete

Just start poudriere again and all should work fine.

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook