lensfun problem

Hello,
I just change from Ubuntu 22.04 to Linux Mint 21.1
I installed darktable manually by adding the repository.
Now lensfun 3.2.6 was installed and it is shown in Synaptic as the latest version.
On Ubuntu there was lensfun 3.3.1 installed.
How can I do an update of lensfun on Linux Mint?
I tried this link, also the command sudo lensfun-update-data, but nothing worked.
Thanks for help.
Thomas

Hi, @bildbaendiger. Lensfun isn’t part of Darktable per se, but rather an independent library used by many different software packages. It could be that 3.6.2 is the latest version that’s currently available from your distro’s repo (have you checked?); if it is, you could always build the latest version using the Github source code: GitHub - lensfun/lensfun: The Lensfun project Git repository

Thank you Mart for your answer.
I thought Synaptic shows me the current available version. How do I check if the distro’s repro has a newer one?
I tried to build the latest version with the source code, but I struggle with the cmake error: “No CMAKE_CXX_COMPILER could be found.”
Is there no .deb package available for download?

Mint is based on the LTS (long-term support) version of Ubuntu, and it will often have older packages. Trying to use it with the latest open-source tools can be problematic.
The Mint package search tools I found online don’t seem to be working (sorry, I no longer run Mint, for the reason given above; I’m back on Ubuntu):

http://extra.linuxmint.com/

You may try installing packages from 3rd-party repositories, like https://build.opensuse.org/

Does that mean an OBS repo?

ähm, yes? I used the ppa:
/repositories/graphics:/darktable:/stable/xUbuntu_22.04 - openSUSE Download /
for Ubuntu, because Mint 21.1 is build with Ubuntu 22.4

yes, I found a lot of lensfun packages there, but all for Open Suse. How can I use such a package for Mint?

And, if Mint 21.1 is based on Ubuntu 22.04, could I use any Ubuntu 22.4 package?

I find now a solution for me:
I download the latest sourcecode from Github and just copy the database data in the existing folder of version 3.2.6 /usr/share/lensfun/version_1
Now I have access in darktable to the new lenses and camera data.

The trouble with overwriting a file owned by the package is that once the package is updated, it’ll overwrite your modification.
I think /usr/local/share/lensfun/version_1 may be a better place to put your file.

The latest source code has version 2 of the profiles, while your version still uses v1, so it probably isn’t going to work.

What’s the error with the lensfun update command?

I see.
But strange, after changing the database data, the sudo lensfun-update-data runs without error.
So I should have now the latest data (in Version 1).
Thanks for your answers