Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564278 - www-misc/zoneminder-1.28.1 mysql/mysql.h - not found build error
Summary: www-misc/zoneminder-1.28.1 mysql/mysql.h - not found build error
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:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2015-10-27 17:40 UTC by Russell Knighton
Modified: 2016-12-10 20:44 UTC (History)
0 users

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


Attachments
zoneminder-1.28.1-mysql_include_path.patch (zoneminder-1.28.1-mysql_include_path.patch,775 bytes, patch)
2015-10-27 17:47 UTC, Russell Knighton
Details | Diff
zoneminder-1.28.1-r1.ebuild (zoneminder-1.28.1-r1.ebuild,3.78 KB, text/plain)
2015-10-27 17:52 UTC, Russell Knighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Russell Knighton 2015-10-27 17:40:20 UTC
Recently, zoneminder has started to suffer from configure failures with the folowoing error:

-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - not found
CMake Error at CMakeLists.txt:266 (message):
  zm requires MySQL headers - check that MySQL development packages are installed

This is dispite all depenedencies being correctly installed.

Reproducible: Always
Comment 1 Russell Knighton 2015-10-27 17:47:46 UTC
Created attachment 415592 [details, diff]
zoneminder-1.28.1-mysql_include_path.patch

Patch to use mysql_config to determine the mysql include path
Comment 2 Russell Knighton 2015-10-27 17:52:37 UTC
Created attachment 415594 [details]
zoneminder-1.28.1-r1.ebuild

New ebuild that uses the zoneminder-1.28.1-mysql_include_path.patch file. 

Also implements suggested keepdir change from bug #546842 and removes deprecated need_php_httpd function as per bug #552840

Full diff of changes from in tree ebuild:
--- /usr/portage/www-misc/zoneminder/zoneminder-1.28.1.ebuild	2015-08-09 21:34:55.000000000 +0100
+++ www-misc/zoneminder/zoneminder-1.28.1-r1.ebuild	2015-10-27 17:46:43.026333890 +0000
@@ -56,6 +56,7 @@
 	virtual/perl-Getopt-Long
 	virtual/perl-Sys-Syslog
 	virtual/perl-Time-HiRes
+	virtual/httpd-php
 	www-servers/apache
 	curl? ( net-misc/curl )
 	gcrypt? ( dev-libs/libgcrypt )
@@ -69,12 +70,12 @@
 # we cannot use need_httpd_cgi here, since we need to setup permissions for the
 # webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
 need_apache
-need_php_httpd
 
 S=${WORKDIR}/${MY_PN}-${PV}
 
 PATCHES=(
-	"${FILESDIR}/${PN}-1.26.5"-automagic.patch
+	"${FILESDIR}/${PN}-1.26.5-automagic.patch"
+	"${FILESDIR}/${PN}-1.28.1-mysql_include_path.patch"
 )
 
 MY_ZM_WEBDIR=/usr/share/zoneminder/www
@@ -115,7 +116,7 @@
 	fowners apache:apache /var/log/zm
 
 	# now we duplicate the work of zmlinkcontent.sh
-	dodir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events
+	keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events
 	fperms -R 0775 /var/lib/zoneminder
 	fowners -R apache:apache /var/lib/zoneminder
 	dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2016-12-10 20:44:20 UTC
Thanks a lot. This is part of the ZM 1.30.0 ebuild now in the main tree. Enjoy!