Apply built-in lens correction for Nikon 24-70 F4 S

I cannot point RT to lensfun if it is installed in /usr/local when lensfun is built from source code. Something in RT cmake configs insists on having lensfun-devel package to be installed. Otherwise I have this error:

– Checking for module ‘lensfun>=0.2’
– Package ‘lensfun’, required by ‘virtual:world’, not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:457 (message):
A required package was not found

But the official lensfun-devel package is not the latest and does not have the lensfun-update-data command. So I have to have another lensfun installation, this time built from source code.

Then I can run /usr/local/bin/lensfun-update-data which updates data files in my home directory:

Successfully updated the database in /home/andrew/.local/share/lensfun/updates/version_1.
Successfully updated the database in /home/andrew/.local/share/lensfun/updates/version_2.

Then in RT I can manually select Nikon Z6 and 24-70 f/4 S and corrections are applied.

Phew! That’s a long process and now I have 2 installations of lensfun, but it seems it works. Maybe I need to talk to lensfun maintainers for Fedora and ask why the command to update the database is not included in the official package.