Release update issues: gvm-libs

I had successfully installed by ‘Building from Source’ on a debian bookworm.

Today I wanted to update the installation by following the instructions ‘Workflows, Updating to Newer Releases’.

It says “…follow the build and install documentation…” but at the step ‘gvm-libs’ the command…
curl -f -L https://github.com/greenbone/gvm-libs/releases/download/v$GVM_LIBS_VERSION/gvm-libs-v$GVM_LIBS_VERSION.tar.gz.asc -o $SOURCE_DIR/gvm-libs-$GVM_LIBS_VERSION.tar.gz.asc
…returns “curl: (22) The requested URL returned error: 404”
Checking
https://github.com/greenbone/gvm-libs/releases/download/v22.18.0/gvm-libs-v22.18.0.tar.gz.asc
in a browser shows a 404 page.

After I solved this (as described in my comment below), I continued with cmake:

CMake Error: The source “…/source/gvm-libs-22.18.1/CMakeLists.txt” does not match the source “…/source/gvm-libs-22.10.0/CMakeLists.txt” used to generate cache. Re-run cmake with a different source directory.

:thinking: What does that mean?

Regarding curl / …tar.gz.asc:

I have just seen on
https://github.com/greenbone/gvm-libs/releases/
that the latest release is in fact 22.18.1

With updated
export GVM_LIBS_VERSION=22.18.1
first curl command of the instructions passes without error.

However, second has a problem. As we can see…
https://github.com/greenbone/gvm-libs/releases/download/v22.18.1/gvm-libs-22.18.1.tar.gz.asc
…the file is without “v” ahead of the version number.

So second curl command should read:
curl -f -L https://github.com/greenbone/gvm-libs/releases/download/v$GVM_LIBS_VERSION/gvm-libs-$GVM_LIBS_VERSION.tar.gz.asc -o $SOURCE_DIR/gvm-libs-$GVM_LIBS_VERSION.tar.gz.asc
…which then works fine.
:slightly_smiling_face: :white_check_mark:

Regarding cmake / source directory:

Obviously it is necessary to delete the …/gvm-libs directories in the build, install, source directories first, before you start to install a new release.

After removing the gvm-libs directories, the cmake commands worked well.
:slightly_smiling_face: :white_check_mark: