Using lensfun-update-data to, well, update the data, downloads a new set of xml files where e.g. in slr-sigma.xml the attribute real-focal of the tag distortion moved to a new tag named real-focal-length. lensfun seems to not understand this change and stops reading this file at this entry (Sigma 18-200mm f/3.5-6.3 DC). All entries prior to this point in the file are available e.g. in darktable for correction. All entries including the one where it is changed will not be available. Later files will still be read.
Files containing this change:
actioncams.xml
compact-panasonic.xml
compact-sony.xml
mil-samyang.xml
mil-sony.xml
slr-nikon.xml
slr-sigma.xml
slr-tamron.xml
I am using lensfun-git package in Arch Linux which uses master branch of git://git.code.sf.net/p/lensfun/code and updating the package manually to the latest master did not solve this problem.
At the time of writing I was using commit
385aa1. I now updated to latest master0ec0c3. This also includes the latest version of the xml files in/usr/share/lensfun/version_1. They do not contain the above change.Using
lensfun-update-datawill of course not download anything as there is no newer file on the server. I still had aversion_1.tar.bz2file (downloaded an hour ago) lying around and unpacked it to/var/lib/lensfun-updates/version_1manually but they seem to be ignored (timestamp?) or do no longer cause this issue.I do not fully understand what's going on, but lensfun-update-data does contain code that is supposed to install the correct version number for the Lensfun installed. Possibly, your lensfun-update-data belongs to a newer Lensfun version than the library file?
OK, I try to clarify:
When filing this bug I was using a lensfun version based on git
masterbranch commit385aa1that I installed a couple of days ago. This installed the included xml files to/usr/share/lensfun/version_1/<files>When running
lensfun-update-datathis morning it correctly recognized version 1 and downloadedhttp://lensfun.sourceforge.net/db/version_1.tar.bz2. This file was then extracted to/var/lib/lensfun-updates/version_1/<files>In these updated files in
/var/lib/...attributereal-focalwas moved to its own tagreal-focal-lengthwhich seems to not be understood by lensfunmasterbranch (a change that belongs to another version maybe?).Next, to verify that my version of lensfun is not too old, I updated my lensfun to latest
masterbranch commit385aa1. Again included xml files where installed to/usr/share/lensfun/version_1/<files>which lets me assume that version 1 is still the latest for
master. These files in/usr/share/...have still the "old" format wherereal-focalis still an attribute of tagdistortion.My assumption now is that the DB files at
http://lensfun.sourceforge.net/db/version_1.tar.bz2are created wrongly and contain changes that are not supposed to be in version 1.I attached an excerpt from the file
slr-sigma.xmlcontained inhttp://lensfun.sourceforge.net/db/version_1.tar.bz2downloaded around 0930 CEST.I found the bug (I think) in the build system on master: I still says version 1. I corrected that. Thank you for the report, and reopen it if it does not fix the problem!
Oh, funny. So what I assumed "old" was actually "new" and vice versa. :-D
Updated to latest
mastercommit and now files are installed toversion_2. Downloading the latestversion_2.tar.bz2now also matches what is in the git repo (structurally).Thanks!