Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574006 - www-misc/zoneminder-1.30 version bump
Summary: www-misc/zoneminder-1.30 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL: https://github.com/ZoneMinder/ZoneMin...
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2016-02-06 15:33 UTC by Rajil Saraswat
Modified: 2016-12-10 20:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
zoneminder-1.29.0.ebuild (zoneminder-1.29.0.ebuild,3.99 KB, text/plain)
2016-03-29 16:46 UTC, Russell Knighton
Details
zoneminder-1.29.0.ebuild (zoneminder-1.29.0.ebuild,4.04 KB, text/plain)
2016-04-10 01:51 UTC, Jason Oliveira
Details
mysql patch as required by ebuild (zoneminder-1.28.1-mysql_include_path.patch,775 bytes, patch)
2016-04-10 01:53 UTC, Jason Oliveira
Details | Diff
zoneminder-1.30.0.ebuild (zoneminder-1.30.0.ebuild,4.03 KB, text/plain)
2016-08-11 19:29 UTC, Russell Knighton
Details
zoneminder-1.30.0.ebuild (zoneminder-1.30.0.ebuild,4.25 KB, text/plain)
2016-09-13 09:55 UTC, Russell Knighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rajil Saraswat 2016-02-06 15:33:13 UTC
Zoneminder 1.29 stable release is now out. Bump.
Comment 1 Russell Knighton 2016-03-29 16:46:06 UTC
Created attachment 429242 [details]
zoneminder-1.29.0.ebuild

Attempted ebuild for zoneminder 1.29.0 - tested and working, for me at least.

For anyone trying it out, this references my previous patch from bug #564278

I've had to swap this ebuild to use the git sources via the git eclass as this version seems to need a new sub-module, which is checked for by the cmake build process; if it's not there, the build will fail. That's fine, but the release tarball of the source doesn't contain the .git folder, and additionally I couldn't find a way to extract the tarball sources, and then easily get the sub-module code in there (using git eclass at least). If anyone can find an easy/clean way to fetch and use the tarball sources and then add the sub-module code, then that would probably be preferred.

Additional changes are:
 - Added additional use flags for "logrotate" and "ffmpeg" support
 - Added dependency dev-lang/php[gd] as this is apparently required as per the changelog
 - A little clarification on how the postinst update message (i.e. how to actually do an update).
Comment 2 Rajil Saraswat 2016-03-31 21:30:02 UTC
The mysql patch failed to apply for me. FOllowing is the partial ebuild log :

git update-ref --no-deref refs/git-r3/www-misc/zoneminder/0/web/api/app/Plugin/Crud/__main__ c3976f1478c681b0bbc132ec3a3e82c3984eeed5
 * Checking out https://github.com/ZoneMinder/ZoneMinder.git to /var/tmp/portage/www-misc/zoneminder-1.29.0/work/zoneminder-1.29.0 ...
git checkout --quiet refs/tags/v1.29.0
GIT NEW branch -->
   repository:               https://github.com/ZoneMinder/ZoneMinder.git
   at the commit:            6de2ab504c71217fa3797b9d041199795c3ca804
 * Checking out https://github.com/FriendsOfCake/crud.git to /var/tmp/portage/www-misc/zoneminder-1.29.0/work/zoneminder-1.29.0/web/api/app/Plugin/Crud ...
git checkout --quiet c3976f1478c681b0bbc132ec3a3e82c3984eeed5
GIT NEW branch -->
   repository:               https://github.com/FriendsOfCake/crud.git
   at the commit:            c3976f1478c681b0bbc132ec3a3e82c3984eeed5
>>> Source unpacked in /var/tmp/portage/www-misc/zoneminder-1.29.0/work
>>> Preparing source in /var/tmp/portage/www-misc/zoneminder-1.29.0/work/zoneminder-1.29.0 ...
 * Applying zoneminder-1.26.5-automagic.patch ...                                                                                                                                                                          [ ok ]
 * Applying zoneminder-1.28.1-mysql_include_path.patch ...

 * Failed Patch: zoneminder-1.28.1-mysql_include_path.patch !
 *  ( /usr/local/portage/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/www-misc/zoneminder-1.29.0/temp/zoneminder-1.28.1-mysql_include_path.patch.out

 * ERROR: www-misc/zoneminder-1.29.0::x-portage failed (prepare phase):
 *   Failed Patch: zoneminder-1.28.1-mysql_include_path.patch!
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_prepare
 *   environment, line 4437:  Called cmake-utils_src_prepare
 *   environment, line 1243:  Called _cmake_execute_optionally 'src_prepare'
 *   environment, line  358:  Called enable_cmake-utils_src_prepare
 *   environment, line 1644:  Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch' '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch'
 *   environment, line 1702:  Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch'
 *   environment, line 1880:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=www-misc/zoneminder-1.29.0::x-portage'`,
 * the complete build log and the output of `emerge -pqv '=www-misc/zoneminder-1.29.0::x-portage'`.
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.29.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.29.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-misc/zoneminder-1.29.0/work/zoneminder-1.29.0'
 * S: '/var/tmp/portage/www-misc/zoneminder-1.29.0/work/zoneminder-1.29.0'

>>> Failed to emerge www-misc/zoneminder-1.29.0, Log file:

>>>  '/var/tmp/portage/www-misc/zoneminder-1.29.0/temp/build.log'
Comment 3 Jason Oliveira 2016-04-10 01:51:45 UTC
Created attachment 430028 [details]
zoneminder-1.29.0.ebuild

Updated ebuild to allow for building with libressl as well as openssl, according to the guidelines on the wiki. Builds without issue here.
Comment 4 Jason Oliveira 2016-04-10 01:53:06 UTC
Created attachment 430030 [details, diff]
mysql patch as required by ebuild
Comment 5 Russell Knighton 2016-08-11 19:29:50 UTC
Created attachment 443088 [details]
zoneminder-1.30.0.ebuild

New version realised - 1.30.0.

New ebuild for it, incorporating the libressl from Jason Oliveira (except changing from defaulting libressl on).
Comment 6 Russell Knighton 2016-09-13 09:55:21 UTC
Created attachment 445596 [details]
zoneminder-1.30.0.ebuild

Yet another version of the zoneminder 1.30.0 ebuild.

This time, I've included a bunch of additional perl module dependencies, as needed to properly support the newer ONVIF support as well as for zmaudit perl script.

One of the additional dependancies is dev-perl/IO-Socket-Multicast, which isn't currently in portage - instead got it from the overlay "srcshelton" (found here: https://gpo.zugaina.org/dev-perl/IO-Socket-Multicast). This will need adding to portage too before the release can be bumped in portage.

I've also had to add a new writeable "tmp" folder for the API, which is needed to have a working API.

Difference are as follows:

-	dev-perl/Data-UUID
+	dev-perl/Class-Std-Fast
+	dev-perl/Data-Dump
 	dev-perl/Date-Manip
+	dev-perl/Data-UUID
 	dev-perl/DBD-mysql
 	dev-perl/DBI
+	dev-perl/IO-Socket-Multicast
+	dev-perl/SOAP-WSDL
+	dev-perl/Sys-CPU
+	dev-perl/Sys-MemInfo

-	keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events
+	keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events /var/lib/zoneminder/api_tmp
 	fperms -R 0775 /var/lib/zoneminder
 	fowners -R apache:apache /var/lib/zoneminder
 	dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images
 	dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events
+	dosym /var/lib/zoneminder/api_tmp ${MY_ZM_WEBDIR}/api/app/tmp
Comment 7 Ronny Bull 2016-10-21 00:17:44 UTC
(In reply to Russell Knighton from comment #6)

You can install 'dev-perl/IO-Socket-Multicast' from g-cpan.  I successfully installed zoneminder-1.30.0 by doing the following:

# g-cpan -i IO-Socket-Multicast

Then modified Russell's zoneminder-1.30.0.ebuild with the following change:

-    dev-perl/IO-Socket-Multicast
+    perl-gcpan/IO-Socket-Multicast

This way no additional overlays are required to use the ebuild.
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2016-12-01 20:45:13 UTC
I put this in my dev overlay for the moment. Thanks a lot for all the work. 

Unfortunately the ebuild needs a lot of QA cleanup before it can go into the main tree again. Also the git problem needs to be solved (using git-r3.eclass is only allowed for unkeyworded ebuilds).
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2016-12-10 20:44:32 UTC
Thanks a lot. This is part of the ZM 1.30.0 ebuild now in the main tree. Enjoy!