I’m using my 100-500 with the 1.4x extender sometimes and while I have a custom xml with the data, auto detection actually never works and depending on the name I put manually selecting the lens in the list either works or load without any corrections applied. Lensfun-update-data changes what is written in the list in darktable so loading the xml seems to work. I also tried putting a name in the exivrc file but to no avail.
Just a wild guess (being no lensfun expert at all):
you have two different lens model strings in your database, that probably are used depending on your system language.
If lensfun (or darktable?) evaluates the generic Exif.Photo.* entry from the CR3 file (“RF100-500mm F4.5-7.1 L IS USM + EXTENDER RF1.4x”) and not the Canon-specific entry, and if you have English as your system language, it would only find “Canon RF 100-500mm F4.5-7.1 L IS USM + RF1.4x” in the database and the comparison obviously would fail.
Does darktable or lensfun read the database? I assume it’s lensfun.
As I read its code, it returns the string matching the defined locale, or the one with “en” if no other locale is found. The generic one "RF100 … " is never returned - it would be returned only if not even an entry for “en” would be defined.
I would just delete the “en” entry from your custom database and try again. Or set the “en” entry to “RF100 …” too.
When you look at the lens name in dt’s metadata panel, that name needs to match the name you put in lensfun. You can use an exiv2 config file to make the names match.
So it’s a mismatch between what darktable reads, RF100-500mm F4.5-7.1 L IS USM + EXTENDER RF1.4x in this case and what the metadata panel shows which is Canon RF100-500mm F4.5-7.1 L IS USM + EXTENDER RF1.4x. But as I understand the issue this is nothing that can be remedied with the exiv2rc file.
darktable retrieves “Canon RF 100-500mm F4.5-7.1 L IS USM + EXTENDER RF1.4x” as a lens name, but you do not have this in your database.
You have “RF100-500mm F4.5-7.1 L IS USM + EXTENDER RF1.4x” and
“Canon RF 100-500mm F4.5-7.1 L IS USM + RF1.4x”, none of which fits to what darktable retrieves.