Any current zoneminder 1.37 builds for fedora?
Any current zoneminder 1.37 builds for fedora?
When I look at https://zmrepo.zoneminder.com, the most recent fedora build is from 8/2024 for fedora 39. But fedora 39 is EOL and there have been 2 releases since then.
I upgraded to zoneminder 1.37 about a year ago on my fedora server, and now I'm on fedora 40. I am limping along with an old fedora 39 zoneminder package on this system (had to downgrade my gsoap packages to satisfy dependencies). I'm afraid I won't be able to upgrade to current fedora 41 with the old zoneminder package, so I am in search of a better path forward.
I upgraded to zoneminder 1.37 about a year ago on my fedora server, and now I'm on fedora 40. I am limping along with an old fedora 39 zoneminder package on this system (had to downgrade my gsoap packages to satisfy dependencies). I'm afraid I won't be able to upgrade to current fedora 41 with the old zoneminder package, so I am in search of a better path forward.
Re: Any current zoneminder 1.37 builds for fedora?
I did build my own fedora 40 and fedora 41 rpms for 1.37.65.
Took some updating of the RPM spec file that hasn't been maintained, and also jwt-cpp which tries to install (apparently) unnecessary stuff that rpmbuild objects to.
I could make diffs but there seems to be no interest here...
Took some updating of the RPM spec file that hasn't been maintained, and also jwt-cpp which tries to install (apparently) unnecessary stuff that rpmbuild objects to.
I could make diffs but there seems to be no interest here...
Re: Any current zoneminder 1.37 builds for fedora?
I'm sure lots of people would appreciate builds for newer fedora. Patches are definitely welcome.
Re: Any current zoneminder 1.37 builds for fedora?
Ok, here it is:
I took out the CAMBOZOLA config option default that is no longer an option in 1.37, and removed ZM_OPT_CONTROL as well since the default was already set as desired.
I also added the new 1.37 files to be included in the rpm.
Patch to jwt removes the development files from the installation (which were triggering rpmbuild errors).
I took out the CAMBOZOLA config option default that is no longer an option in 1.37, and removed ZM_OPT_CONTROL as well since the default was already set as desired.
I also added the new 1.37 files to be included in the rpm.
Patch to jwt removes the development files from the installation (which were triggering rpmbuild errors).
- Attachments
-
- jwt-patch.txt
- (1.6 KiB) Downloaded 200 times
-
- spec-patch.txt
- (918 Bytes) Downloaded 199 times
Re: Any current zoneminder 1.37 builds for fedora?
Thanks I'll try to merge them this weekend.
Re: Any current zoneminder 1.37 builds for fedora?
Any luck with this? Yes, updates of 1.37 would be very much appreciated on the Fedoras and RHELs too. Is ZMRepo no longer building anything?
Regards,
Mark
Regards,
Mark
Re: Any current zoneminder 1.37 builds for fedora?
why is testing gone from rpmfusion?
Re: Any current zoneminder 1.37 builds for fedora?
I don't know. Our redhat maintainer has gone awol
Re: Any current zoneminder 1.37 builds for fedora?
I'm trying to build on F39. Downloaded zoneminder.spec. Version is 1.37.65, but when it trys to fetch the source there is no file:
warning: Downloading https://github.com/ZoneMinder/ZoneMinde ... .65.tar.gz to /home/zoneminder/rpmbuild/SOURCES/zoneminder-1.37.65.tar.gz
curl: (22) The requested URL returned error: 404
error: Couldn't download https://github.com/ZoneMinder/ZoneMinde ... .65.tar.gz
If I set the version to master, it downloads zoneminder-master.tar.gz just fine and builds the rpms just fine. Of course they all have master in the names.
What am I doing wrong?
Regards,
Mark
warning: Downloading https://github.com/ZoneMinder/ZoneMinde ... .65.tar.gz to /home/zoneminder/rpmbuild/SOURCES/zoneminder-1.37.65.tar.gz
curl: (22) The requested URL returned error: 404
error: Couldn't download https://github.com/ZoneMinder/ZoneMinde ... .65.tar.gz
If I set the version to master, it downloads zoneminder-master.tar.gz just fine and builds the rpms just fine. Of course they all have master in the names.
What am I doing wrong?
Regards,
Mark
Re: Any current zoneminder 1.37 builds for fedora?
I have master built and sort of running but many web pages have no information below the headers. Log page is blank, montage, montage review, events pages for each monitor, etc. The only errors I can see is in the php log:
Uncaught Error: Undefined constant "ANALYSING_NONE" in /usr/share/zoneminder/www/skins/classic/js/skin.js.php:111
The top of the page still says the old revision 1.37.63 instead of 1.37.65
Note, it did not complain during the build but I needed to install gsoap-devel to have get rid of errors running onvif. Maybe there is something else missing. I also had to add libVNC and mosquitto development libs to clear up the optional libraries not found, but that didn't improve things.
Regards,
Mark
Uncaught Error: Undefined constant "ANALYSING_NONE" in /usr/share/zoneminder/www/skins/classic/js/skin.js.php:111
The top of the page still says the old revision 1.37.63 instead of 1.37.65
Note, it did not complain during the build but I needed to install gsoap-devel to have get rid of errors running onvif. Maybe there is something else missing. I also had to add libVNC and mosquitto development libs to clear up the optional libraries not found, but that didn't improve things.
Regards,
Mark
Re: Any current zoneminder 1.37 builds for fedora?
There is a common problem in debian land where the web server config doesn't have an alias for /cache. We use a cache busting strategy so that when new files are put in place the browser will use them instead of the old cached version. So failure to load css and javascript generally breaks the ui as you describe.
check web server error logs.
check web server error logs.
Re: Any current zoneminder 1.37 builds for fedora?
The only errors are ones like these:
[28-Jan-2025 10:27:06 America/Phoenix] PHP Fatal error: Uncaught Error: Undefined constant "ANALYSING_NONE" in /usr/share/zoneminder/www/skins/classic/js/skin.js.php:111
and I see that file has not been updated since August:
root@zoneminder:~# ls -althr /usr/share/zoneminder/www/skins/classic/js/skin.js.php
-rw-r--r--. 1 root root 5.9K Aug 15 17:00 /usr/share/zoneminder/www/skins/classic/js/skin.js.php
[28-Jan-2025 10:27:06 America/Phoenix] PHP Fatal error: Uncaught Error: Undefined constant "ANALYSING_NONE" in /usr/share/zoneminder/www/skins/classic/js/skin.js.php:111
and I see that file has not been updated since August:
root@zoneminder:~# ls -althr /usr/share/zoneminder/www/skins/classic/js/skin.js.php
-rw-r--r--. 1 root root 5.9K Aug 15 17:00 /usr/share/zoneminder/www/skins/classic/js/skin.js.php
Re: Any current zoneminder 1.37 builds for fedora?
I have been looking at this page:
https://zoneminder.readthedocs.io/en/la ... -from-srpm
but did not completely follow it. Is it really necessary to create an SRPM and then use mock to build the rpms if it is built on the computer that is will be used on?
I am doing this:
# switch to non root
su zoneminder
#fetch the repo
cd /home/zoneminder/git
git clone https://github.com/ZoneMinder/zoneminder.git
#create an archive with the current version (master)
cd zoneminder
git archive --prefix=zoneminder-1.37.65/ -o /home/zoneminder/rpmbuild/SOURCES/zoneminder-1.37.65.tar.gz HEAD
#I already got the other sources
ls /home/zoneminder/rpmbuild/SOURCES -althr
total 20M
drwxr-xr-x. 7 zoneminder zoneminder 4.0K Jan 26 11:51 ..
-rw-r--r--. 1 zoneminder zoneminder 72K Jan 26 11:51 crud-3.2.0.tar.gz
-rw-r--r--. 1 zoneminder zoneminder 3.5K Jan 26 11:51 cakephp-enum-behavior-1.0-zm.tar.gz
-rw-r--r--. 1 zoneminder zoneminder 1.4M Jan 26 11:51 RtspServer-055d81fe1293429e496b19104a9ed3360755a440.tar.gz
drwxr-xr-x. 2 zoneminder zoneminder 4.0K Jan 28 18:08 .
-rw-r--r--. 1 zoneminder zoneminder 19M Jan 28 18:08 zoneminder-1.37.65.tar.gz
#build
rpmbuild -ba distros/redhat/zoneminder.spec
#back to root
exit
#install the rpms and update the database, then start zoneminder. It was already set up and running as 1.37.63
dnf update /home/zoneminder/rpmbuild/RPMS/x86_64/zoneminder-common-1.37.65-1.fc39.x86_64.rpm /home/zoneminder/rpmbuild/RPMS/x86_64/zoneminder-httpd-1.37.65-1.fc39.x86_64.rpm /home/zoneminder/rpmbuild/RPMS/x86_64/zoneminder-1.37.65-1.fc39.x86_64.rpm
zmupdate.pl
systemctl start zoneminder
https://zoneminder.readthedocs.io/en/la ... -from-srpm
but did not completely follow it. Is it really necessary to create an SRPM and then use mock to build the rpms if it is built on the computer that is will be used on?
I am doing this:
# switch to non root
su zoneminder
#fetch the repo
cd /home/zoneminder/git
git clone https://github.com/ZoneMinder/zoneminder.git
#create an archive with the current version (master)
cd zoneminder
git archive --prefix=zoneminder-1.37.65/ -o /home/zoneminder/rpmbuild/SOURCES/zoneminder-1.37.65.tar.gz HEAD
#I already got the other sources
ls /home/zoneminder/rpmbuild/SOURCES -althr
total 20M
drwxr-xr-x. 7 zoneminder zoneminder 4.0K Jan 26 11:51 ..
-rw-r--r--. 1 zoneminder zoneminder 72K Jan 26 11:51 crud-3.2.0.tar.gz
-rw-r--r--. 1 zoneminder zoneminder 3.5K Jan 26 11:51 cakephp-enum-behavior-1.0-zm.tar.gz
-rw-r--r--. 1 zoneminder zoneminder 1.4M Jan 26 11:51 RtspServer-055d81fe1293429e496b19104a9ed3360755a440.tar.gz
drwxr-xr-x. 2 zoneminder zoneminder 4.0K Jan 28 18:08 .
-rw-r--r--. 1 zoneminder zoneminder 19M Jan 28 18:08 zoneminder-1.37.65.tar.gz
#build
rpmbuild -ba distros/redhat/zoneminder.spec
#back to root
exit
#install the rpms and update the database, then start zoneminder. It was already set up and running as 1.37.63
dnf update /home/zoneminder/rpmbuild/RPMS/x86_64/zoneminder-common-1.37.65-1.fc39.x86_64.rpm /home/zoneminder/rpmbuild/RPMS/x86_64/zoneminder-httpd-1.37.65-1.fc39.x86_64.rpm /home/zoneminder/rpmbuild/RPMS/x86_64/zoneminder-1.37.65-1.fc39.x86_64.rpm
zmupdate.pl
systemctl start zoneminder