Package Details: ais-catcher 0.61-1

Git Clone URL: https://aur.archlinux.org/ais-catcher.git (read-only, click to copy)
Package Base: ais-catcher
Description: Receiver for Automatic Identifaction System of boats using an SDR device (RTL-SDR, AirSpy, HackRF, ...)
Upstream URL: https://github.com/jvde-github/AIS-catcher
Licenses: GPL-3.0-or-later
Submitter: Raimar
Maintainer: Raimar
Last Packager: Raimar
Votes: 0
Popularity: 0.000000
First Submitted: 2024-02-09 19:43 (UTC)
Last Updated: 2025-04-17 21:22 (UTC)

Dependencies (10)

Required by (0)

Sources (1)

Latest Comments

dreieck commented on 2025-04-23 20:04 (UTC)

Ahoj,

this issue has been fixed upstream can be fixed in the release version (before upstream crafts a new release) by applying this patch from upstream.

Diff to the PKGBUILD:

--- PKGBUILD.orig   2025-04-23 13:10:44.922992277 +0200
+++ PKGBUILD    2025-04-23 22:02:51.236976681 +0200
@@ -5,3 +5,3 @@
 _commit=bd9aec9
-pkgrel=1
+pkgrel=2
 pkgdesc='Receiver for Automatic Identifaction System of boats using an SDR device (RTL-SDR, AirSpy, HackRF, ...)'
@@ -24,4 +24,17 @@
 )
-source=("$pkgname::git+$url.git#commit=$_commit")
-sha256sums=('SKIP')
+source=(
+   "$pkgname::git+$url.git#commit=$_commit"
+   "ais-catcher_cmake-4.0-compat.patch::https://github.com/jvde-github/AIS-catcher/commit/5a36a2f6a1a08b6760b41174d6de75660f532126.patch"
+)
+sha256sums=(
+   'SKIP'
+   '41b703f60a9f90a5f61423df08bfc49db031eaab8653854849db5378a820dde9'
+)
+
+prepare() {
+   cd "$pkgname"
+   printf '%s\n' "   > Applying patch 'ais-catcher_cmake-4.0-compat.patch' ..."
+   patch -Np1 --follow-symlinks -i "${srcdir}/ais-catcher_cmake-4.0-compat.patch"
+}
+
 build() {

Regards!

dreieck commented on 2025-04-23 11:11 (UTC) (edited on 2025-04-23 11:15 (UTC) by dreieck)

Ahoj,

add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the cmake options to workaround a breaking change in cmake version 4 that upstream has not adapted to yet:

==> Starting build()...
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!

diff to the PKGBUILD:

--- PKGBUILD.orig   2025-04-23 13:10:44.922992277 +0200
+++ PKGBUILD    2025-04-23 13:12:00.632990385 +0200
@@ -28,3 +28,3 @@
    cd "$pkgname"
-   cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
+   cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .
    cd build

↗ Upstream issue report.

Regards and thanks for the package!