Could you give us a little bit more details about your setup? Which SDK version are you using? Are you using Docker or VirtualBox build engine? It would also help if you could give us access to the sources for your project so we could try building it ourselves.
I should have read your problem description properly before starting to ask silly questions, but nevertheless I verified that I can build your package with that exact SDK/build engine/target combination without issues. Those error messages hint that the rpm database in your build target has been somehow corrupted. I think the easiest solution for you is probably upgrade to install the target again. Well, you can’t exactly easily reinstall it as it was installed as part of the SDK, but you can install the EA target, which at the moment happens to be the same version.
The easiest way to install the EA target is with command sfdk install SailfishOS-3.3.0.16EA-armv7hl
Or you can just reinstall the SDK. Or upgrade it, but as we have an annoying bug (SDK 3.2: linker failure (regression)) in the latest released SDK, I can’t really recommend upgrading at the moment.
This apparent corruption of arbitrary data within the VM led me to the suspicion of Windows 10 2004 being involved. For those who develop on Windows 10, please avoid enabling the Virtual Machine Platform feature, which in turn is required when enabling WSL2. It’ll break VirtualBox virtualization.
to me it seems it appeared when i was working without wifi on a beach a week ago.
i went to home/…/sailfishos/bin and run there ./sfdk install but get unrecognized cmd