Package Details: icinga2 2.14.5-2

Git Clone URL: https://aur.archlinux.org/icinga2.git (read-only, click to copy)
Package Base: icinga2
Description: An open source host, service and network monitoring program
Upstream URL: https://icinga.com/
Licenses: GPL
Replaces: icinga2-common
Submitter: bebehei
Maintainer: julianbrost
Last Packager: julianbrost
Votes: 40
Popularity: 0.21
First Submitted: 2014-06-23 01:10 (UTC)
Last Updated: 2025-05-06 19:12 (UTC)

Latest Comments

1 2 3 4 5 6 .. 15 Next › Last »

fvalenduc commented on 2025-05-06 19:24 (UTC)

Maybe that worked with boost 1.87, but meanwhile boost is at 1.88 in archlinux.

fvalenduc commented on 2025-05-06 19:22 (UTC)

Still problems:

/usr/src/icinga2-arch/src/icinga2-2.14.5/lib/base/tcpsocket.hpp: In function ‘void icinga::Connect(Socket&, const String&, const String&, boost::asio::yield_context)’: /usr/src/icinga2-arch/src/icinga2-2.14.5/lib/base/tcpsocket.hpp:75:24: error: ‘query’ is not a member of ‘boost::asio::ip::tcp::resolver’ {aka ‘boost::asio::ip::basic_resolver<boost::asio::ip::tcp>’} [-Wtemplate-body] 75 | tcp::resolver::query query (node, service); | ^ /usr/src/icinga2-arch/src/icinga2-2.14.5/lib/base/tcpsocket.hpp:76:45: error: ‘query’ was not declared in this scope [-Wtemplate-body] 76 | auto result (resolver.async_resolve(query, yc));

fvalenduc commented on 2025-05-05 11:59 (UTC)

@sbraz: That does not work:

/usr/src/icinga2-arch/src /usr/src/icinga2-arch/src/icinga2-2.14.5 /usr/src/icinga2-arch/src can't find file to patch at input line 21 Perhaps you used the wrong -p or --strip option? The text leading up to this was:


|From 5ca648dbf4d18be35f9dba610421b200ea7d543a Mon Sep 17 00:00:00 2001 |From: Florian Smeets flo@FreeBSD.org |Date: Sun, 16 Feb 2025 22:47:15 +0100 |Subject: net-mgmt/icinga2: Update to 2.14.5 | |Unbreak with boost >= 1.87 | |Obtained from: https://github.com/Icinga/icinga2/pull/10278 |--- | net-mgmt/icinga2/Makefile | 5 +- | net-mgmt/icinga2/distinfo | 6 +- | net-mgmt/icinga2/files/patch-boost-1.87.diff | 341 +++++++++++++++++++++++++++ | net-mgmt/icinga2/pkg-plist | 4 +- | 4 files changed, 347 insertions(+), 9 deletions(-) | create mode 100644 net-mgmt/icinga2/files/patch-boost-1.87.diff | |diff --git a/net-mgmt/icinga2/Makefile b/net-mgmt/icinga2/Makefile |index b30568b3a1c0..ce14bb592e9f 100644 |--- a/net-mgmt/icinga2/Makefile |+++ b/net-mgmt/icinga2/Makefile


File to patch:

fvalenduc commented on 2025-05-04 04:52 (UTC)

cmake configuration fail right away with this now: 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.

bortzmeyer commented on 2025-03-11 10:09 (UTC)

@sbraz Your patch works fine for me, thanks.

sbraz commented on 2025-03-10 00:02 (UTC)

To fix the build with boost 1.87, we need patches from https://github.com/Icinga/icinga2/pull/10278. I took FreeBSD's patch from https://github.com/freebsd/freebsd-ports/commit/5ca648dbf4d18be35f9dba610421b200ea7d543a.

Here's my hacky but working PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index d90b064..950478c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,11 +9,11 @@ pkgdesc="An open source host, service and network monitoring program"
 license=('GPL')
 arch=('i686' 'x86_64')
 url="https://icinga.com/"
-depends=('boost1.86-libs' 'libedit' 'libsystemd' 'openssl')
+depends=('boost-libs' 'libedit' 'libsystemd' 'openssl')
 optdepends=('monitoring-plugins: plugins needed for icinga checks'
             'libmariadbclient: for MySQL support'
             'postgresql-libs: for PostgreSQL support')
-makedepends=('boost1.86' 'cmake' 'libmariadbclient' 'postgresql-libs' 'systemd')
+makedepends=('boost' 'cmake' 'libmariadbclient' 'postgresql-libs' 'systemd')
 replaces=('icinga2-common')
 backup=(etc/default/icinga2
         etc/icinga2/features-available/api.conf
@@ -46,12 +46,18 @@ install='icinga2.install'
 changelog="icinga2.changelog"
 source=("https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz"
         "$pkgname.tmpfiles"
+        "boost187.patch::https://raw.githubusercontent.com/freebsd/freebsd-ports/5ca648dbf4d18be35f9dba610421b200ea7d543a/net-mgmt/icinga2/files/patch-boost-1.87.diff"
         "$pkgname.sysusers")
 sha256sums=('9ab744de272ce17a871298116bd8029400a08563664f07ad1e52d2fa73d6929f'
             '1302b333f49ead14f8808a379535971501d3a0c1ba02a7bf7b4406b7d27c754c'
+            'a7aa0b24e0ade0536de6bb91169da9aa07272452abaaa831869c9f283a4da256'
             '2f946a33ea50a3c4400a81acd778e6411ffe5e2257a98004288b84a64f382810')

 build() {
+  pwd
+  pushd "$srcdir/$pkgname-$pkgver/"
+  patch -p0 -i ../../boost187.patch
+  popd
   mkdir -p "$srcdir/$pkgname-$pkgver/build"
   cd "$srcdir/$pkgname-$pkgver/build"

crequill commented on 2025-02-18 16:43 (UTC)

icinga2 doesn't support php 8.4.3, so icinga2 needs php-legacy

freaknils commented on 2023-01-24 18:34 (UTC) (edited on 2023-01-24 19:01 (UTC) by freaknils)

Currently Icinga2 does not work/build with current boost version 1.81 See https://github.com/Icinga/icinga2/issues/9618

There are some patches on Github: https://github.com/Icinga/icinga2/pull/9624/commits

This PKGBUILD patch worked for me:

diff --git a/PKGBUILD b/PKGBUILD
index df7c765..5fa259f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -46,11 +46,20 @@ install='icinga2.install'
 changelog="icinga2.changelog"
 source=("https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz"
         "$pkgname.tmpfiles"
-        "$pkgname.sysusers")
+        "$pkgname.sysusers"
+        "https://github.com/Icinga/icinga2/commit/99c2d69dc85dfcd044e4a83d4894aa52eedfe09d.diff"
+        "https://github.com/Icinga/icinga2/commit/5bcbc96e221bb3aafc370449941bfbd70939915c.diff")
 sha256sums=('11ea79d4d5c9840cfed19e459f2c9c0bd674add67b0ed9160fb3d7ad3e74fbc2'
             '1302b333f49ead14f8808a379535971501d3a0c1ba02a7bf7b4406b7d27c754c'
-            '2f946a33ea50a3c4400a81acd778e6411ffe5e2257a98004288b84a64f382810')
+            '2f946a33ea50a3c4400a81acd778e6411ffe5e2257a98004288b84a64f382810'
+            'c212301670eb406cff42a5c08641330a2cd37015789fab3fada9757b02415a90'
+            '3bae27d94e0fe781096a2bdcc83acffe4cd413c092acc45b138ea2b530ae6c47')

+prepare() {
+    cd "$pkgname-$pkgver"
+    patch --forward --strip=1 --input="${srcdir}/5bcbc96e221bb3aafc370449941bfbd70939915c.diff"
+    patch --forward --strip=1 --input="${srcdir}/99c2d69dc85dfcd044e4a83d4894aa52eedfe09d.diff"
+}
 build() {
   mkdir -p "$srcdir/$pkgname-$pkgver/build"
   cd "$srcdir/$pkgname-$pkgver/build"

bortzmeyer commented on 2023-01-02 12:50 (UTC)

Oooops, you were right, there was an old /usr/local/include/openssl from a previous experiment. Deleted, it now works, thanks.

bortzmeyer commented on 2023-01-02 12:06 (UTC)

@julianbrost I check and only OpenSSLS 3 seems installed:

% pacman -Q | grep openssl
openssl 3.0.7-4
perl-crypt-openssl-bignum 0.09-8
perl-crypt-openssl-dsa 0.20-4
perl-crypt-openssl-random 0.15-9
perl-crypt-openssl-rsa 0.33-2
python-pyopenssl 22.1.0-1
% pacman -Qo /usr/include/openssl/ssl.h
/usr/include/openssl/ssl.h is owned by openssl 3.0.7-4

PS: the #define you mention is conditional.