A bit of an update on the Adobe DNG converter - Lensfun LCP converter and Database Version 2 saga.
I think its not just me who thinks that finding lensfun correction profiles is not that “fun”.
Running Linux Mint 20.3 (Ubuntu 20.04) I use ART (Rawtherapee - Appimage) and Darktable latest (when it doesn’t crash on me).
To my surprise the ART appimage 1.14 had no problem finding the lens correction files for a mobile phone Huawei P30 Pro in its database but the system installed Darktable couldn’t do the same.
I thought they used the same database but apparently not. I am guessing the appimage is build with its own DB.
Checking the Lensfun folder I could only find Version_1 and in the misc.xml file there was indeed no Huawei profiles.
Finding the lensfun github I saw that there was a new data base just release a few days ago so I downloaded the ZIP. This data base is version_2 if I understand correctly.
Now the Lensfun github did show me that the Huawei P30 Pro was in there. But as I only had lensfun database version_1 I would have to get a data base version 2 and since I do not know how to do that manually or even how to build it from the github I took a shortcut (I know this is all linux but there should be a bit for windows/macs coming up). I found an older .deb for liblensfun and installed that. It got me the database version_2 on the machine and probably other system related things needed under the hub. Next thing was to update the Database to get the Huawei profiles. The lensfun update tool did nothing except look at database version_1 but (and here is where it might be useful for windows and macs who I believe doent’t have any update tool) I downloaded the latest database from the github, unzipped it and manually copy pasted the profiles I needed (The files with the profiles not the profiles) into the folder with database version_2. Now my system installed Darktable could see the Huawei profiles no problem (I am thinking seeing windows and macs also have an issue updating this should work for them as well).
In short (form) and with links
Download latest Lensfun database
Code - Zip
Check lenses in latest
and the very latest perhaps not released yet
https://wilson.bronger.org/lensfun_coverage.html
If on Linux you can install it by building it
https://github.com/lensfun/lensfun (scroll down to build), which I presume is the right way to do it.
or you can get brave and get an older version in .deb which at least is a version 2 and installs itself
liblensfun-data-v2_0.3.95-4_all.deb
https://packages.debian.org/experimental/all/liblensfun-data-v2/download
The (linux) update program lensfun-update-data is (you need to install liblensfun first) supposed to update all database folders (so both version_1 and _2) but I could only get it to look at _1 which is not updated.
https://lensfun.github.io/manual/latest/lensfun-update-data.html
Instead (and this could also be useful for windows users as mentioned by kmilos How change to the deveopment version of Lensfun) I unzipped the Lensfun.Zip and copied the files from the data folder (my Huawei is in the misc.xml) to the lensfun folder version_2 (as the updated database files are version_2). Said yes to overwrite (needed root for that).
Started up Darktable and look and behold it now found a lens correction profile for the Huawei P30 Pro.
So not a question on how to do what but perhaps helpful for others getting caught up in the fun of lensfun.
I hope it helps someone