[Bug 287738] ports-mgmt/pkg: pkg-static upgrade -f segmentation fault

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 16 Sep 2025 13:36:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287738

--- Comment #21 from Lukas Engelhardt <lukas.engelhardt@gmx.de> ---
I finally have been able to got it working.

I created another vm using the FreeBSD 15.0-ALPHA1 disc.iso, installed
poudriere and build pkg, tmux, vim and htop using poudriere.

I then configured that host as the pkg repository using a new repo "poudriere".

I updated the packages by running `env ABI=FreeBSD:15:amd64 pkg update -r
poudriere` and `env ABI=FreeBSD:15:amd64 pkg upgrade -r poudriere`:

Installed packages to be UPGRADED:
        gettext-runtime: 0.22.5 -> 0.23.1 [poudriere]
        htop: 3.3.0_4 -> 3.4.0 [poudriere]
        indexinfo: 0.3.1 -> 0.3.1_1 [poudriere]
        libffi: 3.4.6 -> 3.5.1 [poudriere]
        mpdecimal: 4.0.0 -> 4.0.1 [poudriere]
        readline: 8.2.13 -> 8.2.13_2 [poudriere]
        tmux: 3.3a_3 -> 3.5a_1 [poudriere]
        vim: 9.1.0708 -> 9.1.1744 [poudriere]
        xxd: 9.1.0708 -> 9.1.1744 [poudriere]

Installed packages to be REINSTALLED:
        libevent-2.1.12 [poudriere] (ABI changed: 'FreeBSD:14:amd64' ->
'FreeBSD:15:amd64')
        pkg-2.3.1 [poudriere] (ABI changed: 'FreeBSD:14:amd64' ->
'FreeBSD:15:amd64')

Installed packages to be REMOVED:
        desktop-file-utils: 0.27
        glib: 2.80.5,2
        py39-packaging: 24.1
        python39: 3.9.20


I then tried upgrading all other FreeBSD-base packages by running:
`env ABI=FreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base`
which endet with the error:

[44/379] Deinstalling FreeBSD-clang-14.3p2...
[44/379] Deleting files for FreeBSD-clang-14.3p2:  83%
pkg-static: compat-libraries-20250916171917 conflicts with
compat-libraries-20250916171917 (installs files into the same place). 
Problematic file: /usr/local/lib/compat/pkg/libclang_rt.asan-x86_64.so
[44/379] Deleting files for FreeBSD-clang-14.3p2: 100%
[45/379] Upgrading FreeBSD-libcompiler_rt-dev from 14.3p2 to
15.0.a2.20250916101338...
pkg-static: sqlite error while executing BEGIN IMMEDIATE TRANSACTION  in file
pkgdb.c:1206: cannot start a transaction within a transaction


i tried again
env ABI=FreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base

this time it worked:

uname -apKU
FreeBSD pkgbase 15.0-ALPHA2 FreeBSD 15.0-ALPHA2 stable/15-n280148-c2427a67c7af
GENERIC amd64 amd64 1500064 1500064

I will go ahead and try that again, because i tried some other things in
between trying to debug this behaviour.

I don't think this is the expected Way to upgrade from 14 to 15, but maybe i
have to wait until 15-RELEASE is released and port-packages are officially
built.
But i would like to demo the upgrade from 14 to 15 at the EuroBSDCon in two
weeks so it would be cool to get it consitently working.

-- 
You are receiving this mail because:
You are the assignee for the bug.