Package Details: zoneminder-git 1.37.63.r1447.gbf4e873-1

Git Clone URL: https://aur.archlinux.org/zoneminder-git.git (read-only, click to copy)
Package Base: zoneminder-git
Description: A full-featured, open source, state-of-the-art video surveillance software system (git version)
Upstream URL: https://zoneminder.com/
Licenses: GPL-2.0-only
Conflicts: zoneminder
Submitter: Nocifer
Maintainer: Nocifer
Last Packager: Nocifer
Votes: 0
Popularity: 0.000000
First Submitted: 2024-09-29 11:53 (UTC)
Last Updated: 2025-09-10 09:58 (UTC)

Dependencies (48)

Required by (0)

Sources (9)

Latest Comments

Nocifer commented on 2025-09-10 10:01 (UTC)

Issue #4436 has apparently already received a fix upstream but it's not working properly for me, so for the time being I've explicitly included ENABLE_INSTALL=OFF in the PKGBUILD. As a side benefit, I noticed that jwt-cpp also makes a bit of a mess with its cmake source files (by default it installs them in /usr/cmake), so I've included a "fix" for that as well.

As for the RtspServer commit, I kind of figured that this is what you meant. The referenced commit in the Zoneminder repo is indeed eab3285, but there are 3 more commits after that in RtspServer's repo that add some harmless defines for when building on OpenBSD, and since they're harmless I'd opted to pull those in as well for completeness' sake. But seeing as they're not at all relevant when building on Linux anyway, I've reverted the PKGBUILD to the "proper" eab3285 commit in order to avoid such confusion in the future.

compgamer89 commented on 2025-09-06 19:36 (UTC) (edited on 2025-09-07 19:38 (UTC) by compgamer89)

@Nocifer Also note, the -DENABLE_INSTALL=OFF is actually important - CxxUrl tries to put static libs in /usr/lib64 otherwise, which (a) shouldn't be part of the zoneminder-git package (it would be in a separate cxxurl-static AUR package) and (b) causes conflicts on install (since /usr/lib64 is a symlink to /usr/lib, not a folder).

I wanted to put a comment on the line, but I'm not sure how to line-comment multi-line commands. (EDIT: made an attempt)

See https://github.com/chmike/CxxUrl/blob/eaf46c0207df24853a238d4499e7f4426d9d234c/CMakeLists.txt#L13

Cross-ref: https://github.com/ZoneMinder/zoneminder/issues/4436, in case it gets fixed upstream

compgamer89 commented on 2025-09-06 19:32 (UTC)

@Nocifer It's a different commit hash. See the PKGBUILD edit - the original PKGBUILD points to 055d81fe1293429e496b19104a9ed3360755a440, but the current commit reference in the GitHub repo is eab32851421ffe54fec0229c3efc44c642bc8d46. I just changed it to match what git submodule update --init --recursive does in a fresh clone:

Submodule 'dep/CxxUrl' (https://github.com/chmike/CxxUrl.git) registered for path 'dep/CxxUrl'
Submodule 'dep/RtspServer' (https://github.com/ZoneMinder/RtspServer) registered for path 'dep/RtspServer'
Submodule 'web/api/app/Plugin/CakePHP-Enum-Behavior' (https://github.com/ZoneMinder/CakePHP-Enum-Behavior.git) registered for path 'web/api/app/Plugin/CakePHP-Enum-Behavior'
Submodule 'web/api/app/Plugin/Crud' (https://github.com/FriendsOfCake/crud.git) registered for path 'web/api/app/Plugin/Crud'
Cloning into '/home/htung/custom-pkgs/zoneminder/dep/CxxUrl'...
Cloning into '/home/htung/custom-pkgs/zoneminder/dep/RtspServer'...
Cloning into '/home/htung/custom-pkgs/zoneminder/web/api/app/Plugin/CakePHP-Enum-Behavior'...
Cloning into '/home/htung/custom-pkgs/zoneminder/web/api/app/Plugin/Crud'...
Submodule path 'dep/CxxUrl': checked out 'eaf46c0207df24853a238d4499e7f4426d9d234c'
Submodule path 'dep/RtspServer': checked out 'eab32851421ffe54fec0229c3efc44c642bc8d46'
Submodule path 'web/api/app/Plugin/CakePHP-Enum-Behavior': checked out 'ea90c0cd7f6e24333a90885e563b5d30b793db29'
Submodule path 'web/api/app/Plugin/Crud': checked out '14292374ccf1328f2d5db20897bd06f99ba4d938'

Nocifer commented on 2025-09-05 09:43 (UTC)

Fixed. But what do you mean by "the RtspServer submodule reference doesn't seem to match the source array"?

compgamer89 commented on 2025-09-05 06:51 (UTC) (edited on 2025-09-06 19:52 (UTC) by compgamer89)

Just FYI for folks trying to install this, a new submodule was added in commit https://github.com/ZoneMinder/zoneminder/commit/1f061c966668c8c9199dd973728c2af0eedfb460, which now fails this build since it doesn't populate that submodule.

Also, the RtspServer submodule reference doesn't seem to match the source array for whatever reason.

Sample diff:

diff --git a/PKGBUILD b/PKGBUILD
index b39caa1..a7aa8af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@

 _pkgname=zoneminder
 pkgname=zoneminder-git
-pkgver=1.37.61.r521.g819812b
+pkgver=1.37.63.r1418.g652d71c
 pkgrel=1
 pkgdesc='A full-featured, open source, state-of-the-art video surveillance software system'
 arch=('any')
@@ -55,7 +55,8 @@ install=${_pkgname}.install
 source=("${pkgname}::git+https://github.com/ZoneMinder/zoneminder.git"
         'https://github.com/ZoneMinder/CakePHP-Enum-Behavior/archive/refs/tags/1.0-zm.tar.gz'
         'https://github.com/FriendsOfCake/crud/archive/refs/tags/v3.2.0.tar.gz'
-        'https://github.com/ZoneMinder/RtspServer/archive/055d81fe1293429e496b19104a9ed3360755a440.zip'
+        'https://github.com/ZoneMinder/RtspServer/archive/eab32851421ffe54fec0229c3efc44c642bc8d46.zip'
+        'https://github.com/chmike/CxxUrl/archive/eaf46c0207df24853a238d4499e7f4426d9d234c.zip'
         'zoneminder-nginx.conf'
         'zoneminder-httpd.conf'
         'zoneminder-php.ini'
@@ -63,7 +64,8 @@ source=("${pkgname}::git+https://github.com/ZoneMinder/zoneminder.git"
 sha256sums=('SKIP'
             'dbd231e97b950c698f0f501d6a53c7291c9985e766b09e3afe00cfe69a969f44'
             '55be29e1eccb44d4ad0db8b23c37cec50f5341f8e498583d472ed1f0493876e3'
-            'fad0f1646f65f1518dfde3390e6c907319bc67b61f2e04f5d5ac4144ab61131d'
+            '46ab7558203282ad3e658ffa1fca3855cd43c6bc5a56fa4842ecb156474d6f61'
+            'b257da778bb14b84ea75f691a1edbbfa33c9a6496bd023c6e1c47e1dab8b2602'
             '92803838896f045612cdb88807763ff446f38f8bb136712429daeb2e3848fa0f'
             '62a3a907f48441cc40743d5b6957c727e90a34b310c6cad4b5344c91a8971e67'
             '8e1131dd6bf3796f5bcc9422c96ef77388d7ab0d8e8fc17f6b8dd1e8acc2442a'
@@ -88,13 +90,15 @@ prepare () {
     # Move third-party plugins into place
     mv ../CakePHP-Enum-Behavior-1.0-zm/* web/api/app/Plugin/CakePHP-Enum-Behavior
     mv ../crud-3.2.0/* web/api/app/Plugin/Crud
-    mv ../RtspServer-055d81fe1293429e496b19104a9ed3360755a440/* dep/RtspServer
+    mv ../RtspServer-eab32851421ffe54fec0229c3efc44c642bc8d46/* dep/RtspServer
+    mv ../CxxUrl-eaf46c0207df24853a238d4499e7f4426d9d234c/* dep/CxxUrl
 }

 build() {
     cd ${pkgname}

     cmake -DCMAKE_INSTALL_PREFIX=/usr \
+          -DENABLE_INSTALL=OFF `# Disable CxxUrl library installation` \
           -DZM_CONFIG_DIR=/etc/${_pkgname} \
           -DZM_CONFIG_SUBDIR=/etc/${_pkgname}/conf.d \
           -DZM_RUNDIR=/run/${_pkgname} \

gameslayer commented on 2025-01-25 10:38 (UTC)

Fails to build on Arm64

[ 16%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/DigestAuthenticator.cpp.o
[ 17%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/G711ASource.cpp.o
[ 17%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/H264Parser.cpp.o
[ 18%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/H264Source.cpp.o
[ 18%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/H265Source.cpp.o
[ 19%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/MediaSession.cpp.o
[ 20%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/RtpConnection.cpp.o
[ 20%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/RtspConnection.cpp.o
[ 21%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/RtspMessage.cpp.o
[ 21%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/RtspPusher.cpp.o
[ 22%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/RtspServer.cpp.o
[ 23%] Building CXX object dep/RtspServer/CMakeFiles/RtspServer.dir/src/xop/VP8Source.cpp.o
[ 23%] Linking CXX static library libRtspServer.a
[ 23%] Built target RtspServer
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

bodonoghue commented on 2024-10-08 20:18 (UTC)

Its automatic already done - doh !

bodonoghue commented on 2024-10-08 20:14 (UTC)

Hey any chance you could bump the version to this commit ?

https://github.com/ZoneMinder/zoneminder/commit/a0398dd2d7234057bf3008c484f1cb88f9cb7266

Currently this package fails to build for me as @ 819812b