Page 1 of 1

ZoneMinder 1.34.26 RPMs for EL7?

Posted: Sun Oct 31, 2021 1:59 am
by jonthewise
Looks like RPMFusion doesn't have the RPMs for EL7 anymore... does anybody by chance know where I can find them? 1.36 is not usable in it's current state and my dumb ass didn't snapshot my VM before updating.

Re: ZoneMinder 1.34.26 RPMs for EL7?

Posted: Mon Nov 01, 2021 1:27 pm
by kitkat
I've been trying to build some but I got stuck when spectool tried to access https://github.com/ZoneMinder/crud/arch ... -zm.tar.gz which returns a 404, and for which I can't find an alternative URL.

My last attempt at running cmake, after installing various -devel packages that previous runs complained about, said this:

Code: Select all

CMake Error at CMakeLists.txt:13 (message):
  The git submodules are not available.  Please run

  git submodule update --init --recursive

-- Sendfile support: Linux/Solaris sendfile()
-- Could NOT find LibJWT (missing:  LIBJWT_INCLUDE_DIR LIBJWT_LIBRARY)
-- Detected web server user: apache
-- Using web user: apache
-- Using web group: apache
-- checking for one of the modules 'polkit-gobject-1;polkit'
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.56.1
-- Found GLIB2: /usr/lib64/libglib-2.0.so
-- Found Polkit: /usr/lib64/libpolkit-gobject-1.so
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
Building a static library
-- Using mootools core file: mootools-core-1.6.0-compat.js
-- Using mootools more file: mootools-more-1.6.0.js
-- Optional libraries found: zlib cURL OpenSSL PCRE
-- Optional libraries not found: LIBJWT GCrypt x264 mp4v2 AVFormat AVCodec AVDevice AVUtil SWScale SWResample AVResample libVLC
-- Running ZoneMinder configuration generator
Generating '/usr/src/zoneminder-1.34.26/src/zm_config_defines.h'
Updating '/usr/src/zoneminder-1.34.26/db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring incomplete, errors occurred!
I did manage to build RPMs for 1.32.2 a couple of years ago (still got those if you want them), but it was the first and only time I've done it so I've forgotten a lot and I don't know how (or even if I needed to) get around these issues last time.

Re: ZoneMinder 1.34.26 RPMs for EL7?

Posted: Tue Nov 02, 2021 2:32 am
by jonthewise
Yeah, I may have to figure out how to build too, but I was having similar issues; I keep kicking myself - I mirror the CentOS/EPEL/RPMFusion repos locally so that I don't have to download updates for each system (overkill for a tiny home lab, but I thought it was neat when I set it up), but I unknowingly had the rsync command deleting old versions when they are no longer on the repo (done fixed that - I will manually run cleanups when my repo disk starts to fill up)

So, I guess it's either build myself some RPMs, build a fedora system since the .34 release is still out there, or hope that .36 gets through it's growing pains and becomes usable again.

Re: ZoneMinder 1.34.26 RPMs for EL7?

Posted: Tue Nov 02, 2021 5:22 pm
by knight-of-ni
These steps work for me:

Code: Select all

sudo yum install mock-rpmfusion-free
wget -c https://gist.githubusercontent.com/knight-of-ni/d9dc11f7b5d2536236f4d62401e9a53b/raw/87d27cb99df7be0d1c661d39c1b258515eee82ad/gistfile1.txt -O zoneminder.spec
spectool -g -R zoneminder.spec
rpmbuild -bs --nodeps zoneminder.spec
mock -r epel-7-x86_64-rpmfusion_free {full path to the srpm built from the previous step}
NOTES:
The build machine must be setup properly to build rpms:
https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

RPMFusion repo must be installed

Your user account should be part of the mock group

Re: ZoneMinder 1.34.26 RPMs for EL7?

Posted: Tue Nov 02, 2021 9:58 pm
by kitkat
knight-of-ni wrote: Tue Nov 02, 2021 5:22 pm These steps work for me
Outstanding. Thank you very much.

I already had the tools and environment setup from last time around so I updated those, and everything went smoothly with the new spec file.

The only difference is that I have mock-rpmfusion-free here rather than mock-rpmfusion (typo maybe?)


e2a for completeness: CentOS 7.9.2009 as the build host

Re: ZoneMinder 1.34.26 RPMs for EL7?

Posted: Wed Nov 03, 2021 1:28 pm
by knight-of-ni
yes, that was typo. I fixed it. Thanks.