devel/scons causes segfault in pkg on downgrade
When downgrading from FreeBSD ports main to an earlier quarter, e.g. 2020Q4 with devel/scons installed (called scons-py38) and running the downgrade, I get the following behaviour:
root@repropkg:~ # pkg upgrade -f
Updating FreeBSD repository catalogue...
pkg: http://repropkg-build/packages/13x64-old/packagesite.pkg: Not Found
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (9 candidates): 11%
(null) has no direct installation candidates, change it to scons-py37? [Y/n]: y
Child process pid=1151 terminated abnormally: Segmentation fault
The steps to reproduce are:
(1) Build with poudriere from poudriere ports -c -p main -m git+https -B main
(2) pkg install -g 'scons*' from the main branch
(3) Build with poudriere from poudriere ports -c -p old -m git+https -B 2020Q4
(4) pkg upgrade -f when the repository is set to install from the old ports tree (2020Q4).
The only port that needs to be built is devel/scons. I have been able to reproduce this both on 13.0-RELEASE and 14-CURRENT.
The commit of main this was tested on is 77fa61df485e30e5fa5f10dff5bac906a89d303b
Similar behavior here
# pkg upg -f
Updating myrepo repository catalogue...
myrepo repository is up to date.
All repositories are up to date.
Checking for upgrades (185 candidates): 71%
(null) has no direct installation candidates, change it to libnghttp2? [Y/n]:
Child process pid=63127 terminated abnormally: Segmentation fault
Haven't switched repos, have switched libcrypto to a newer version