diff --git a/Documentation/Doxyfile.in b/Documentation/Doxyfile.in
index 88dfcddaebf6..e87bb2b42c5e 100644
--- a/Documentation/Doxyfile.in
+++ b/Documentation/Doxyfile.in
@@ -51,7 +51,9 @@ EXCLUDE_PATTERNS       = @TOP_BUILDDIR@/include/libcamera/ipa/*_serializer.h \
                          @TOP_BUILDDIR@/include/libcamera/ipa/ipu3_*.h \
                          @TOP_BUILDDIR@/include/libcamera/ipa/raspberrypi_*.h \
                          @TOP_BUILDDIR@/include/libcamera/ipa/rkisp1_*.h \
-                         @TOP_BUILDDIR@/include/libcamera/ipa/vimc_*.h
+                         @TOP_BUILDDIR@/include/libcamera/ipa/vimc_*.h \
+                         @TOP_BUILDDIR@/src/libcamera/libcamera.so* \
+                         @TOP_BUILDDIR@/src/libcamera/base/libcamera-base.so*
 
 EXCLUDE_SYMBOLS        = libcamera::BoundMethodArgs \
                          libcamera::BoundMethodBase \
diff --git a/meson.build b/meson.build
index 2c6173b4f97e..3e2bcc0de2c3 100644
--- a/meson.build
+++ b/meson.build
@@ -26,6 +26,29 @@ endif
 
 libcamera_version = libcamera_git_version.split('+')[0]
 
+# A shallow clone, or a clone without a reachable tag equivalent to the
+# meson.project_version() could leave the project in a mis-described state.
+# Produce a warning in this event, and fix to a best effort.
+if libcamera_version != meson.project_version()
+    warning('The sources disagree about the version: '
+            + libcamera_version + ' != ' + meson.project_version())
+
+    libcamera_version = meson.project_version()
+    libcamera_git_version = libcamera_version + '+' + libcamera_git_version.split('+')[1]
+    summary({'Source version override': true}, section : 'Versions')
+endif
+
+# Until we make ABI compatible releases, the full libcamera version is used as
+# the soname.
+libcamera_soversion = libcamera_version
+
+summary({
+            'project': meson.project_version(),
+            'sources': libcamera_git_version,
+            'soname': libcamera_soversion,
+        },
+        section : 'Versions')
+
 # This script generates the .tarball-version file on a 'meson dist' command.
 meson.add_dist_script('utils/run-dist.sh')
 
diff --git a/src/libcamera/base/meson.build b/src/libcamera/base/meson.build
index 7a75914ab2a8..7a7fd7e4ca87 100644
--- a/src/libcamera/base/meson.build
+++ b/src/libcamera/base/meson.build
@@ -51,6 +51,7 @@ libcamera_base_args = [ '-DLIBCAMERA_BASE_PRIVATE' ]
 libcamera_base_lib = shared_library('libcamera-base',
                                     [libcamera_base_sources, libcamera_base_headers],
                                     version : libcamera_version,
+                                    soversion : libcamera_soversion,
                                     name_prefix : '',
                                     install : true,
                                     cpp_args : libcamera_base_args,
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 7fcbb2ddc9e7..5f39d2e2c60a 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -161,6 +161,7 @@ libcamera_deps = [
 libcamera = shared_library('libcamera',
                            libcamera_sources,
                            version : libcamera_version,
+                           soversion : libcamera_soversion,
                            name_prefix : '',
                            install : true,
                            include_directories : includes,
