The only evidence is from my own installation and it would be good to confirm if others also found the same issue. I have raised a bug with the snap owner so hopefully that will shed some more light.
My understanding is a snap (similar to flatpak) are a self contained linux package that should come with all dependencies etc. Evidently in my case the darktable package came missing some lensfun camera data. I’m not sure why.
Did you build the snap or install it? That command is for build time and is also dependant on if the host system has updated the lensfun profiles, which I’d guess they had not.
In that build process if there is updated lensfun data it copies updated data into the user file path DB location. That could only happen if it’s built on device?
I guess it depends on the possiblity of custom install locations. Also not sure how it works in the background!
After going through the thread, I take it you downloaded a snap and installed it, and it gave you the situation originally described. You did not build the snap from scratch… ??
If the above is the case, you got a lensfun database that was current at the time the snap integrator built the snap. The snapcraft.yaml file you reference is used to build the snap, and is not used by any “install” of the snap on a computer. @paperdigits is more familiar with this IIRC, correct me if I’m wrong…
While lensfun as a library is quite stable, as a database it is being updated very frequently, 2 hours ago ( [added Voigtlander Color Skopar 20mm F3.5 SLII As0h: #afcf1c) at this writing. The nature of such requires the user to update their local copy of the database as the only sure way to make sure all supported cameras and lenses are available in the software.
In the build process, if the build machine had the lensfun-update-data command run, then you’d get newer profiles. If not, then you get some pretty old profiles.
Yes I downloaded a snap and installed it. I didn’t build anything. (Not sure if the ubuntu software package does any building when install/upgrading a snap)
The issue was a regression in the sense that data from the darktable build of 3.8.1 was lost when upgrading to 4.0.1. That doesn’t seem like a case of missing the latest camera data.
I used Darktable without issue in 3.8.1 and only found the issue above after upgrading to 4.0.1.
I can confirm that the lensfun database is not the most recent in the Snap build (4.0.1) of darktable. On my Ubuntu 22.10 machine, my lens was not found in the Snap build, but it was correctly found in the Flatpak 4.0.1 build.
(Lens = Nikon, NIKKOR AF-S 200-500mm f/5.6E ED VR)
Seems like a bug in however the darktable snap was built.
By the way, thanks to all the darktable devs for a great product!
The flatpak build specifically pulls and builds a newer version of the lensfun profiles, then includes them. The snap doesn’t, and includes the profiles from the time of release. Its a bit behind.
Has anyone found a simple way to get a snap install to use the updated version of lensfun. I have a regular install of darktable 4.0 that finds my nikon 200-500 for lens correction but the snap version of 4.2 doesn’t find it and running the lensfun update isn’t updating the snap version?