| View previous topic :: View next topic |
| Author |
Message |
Btoo n00b

Joined: 24 Sep 2008 Posts: 27 Location: An isolated island
|
Posted: Sat May 21, 2011 3:40 pm Post subject: |
|
|
| Using the overlay "zugaina" I was able to install ZoneMinder 1.24.3. After doing so I deleted the overlay as Zoneminder was the only package needed. I have not configured it yet. Version 1.24.2 was a bit of a pain in terms of correcting php deprecated functions. Hopefully this version is updated. |
|
| Back to top |
|
 |
dblaci n00b

Joined: 05 Oct 2004 Posts: 25
|
Posted: Thu May 26, 2011 1:35 pm Post subject: |
|
|
| +1 it installed fine. It should be great to have this in the official portage tree. |
|
| Back to top |
|
 |
comprookie2000 Developer


Joined: 25 Jul 2004 Posts: 857 Location: Pompano Beach, Florida
|
Posted: Wed Sep 07, 2011 8:07 pm Post subject: zoneminder-1.25.0 |
|
|
Here is the patch for 1.25.0
| Code: |
--- a/ZoneMinder-1.25.0/Makefile.am 2011-05-20 05:39:37.000000000 -0400
+++ b/ZoneMinder-1.25.0/Makefile.am 2011-09-07 15:11:09.000000000 -0400
@@ -21,7 +21,7 @@
# Yes, you are correct. This is a HACK!
install-data-hook:
( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
- ( if ! test -e $(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR); fi )
+ ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR); fi )
( if ! test -e $(ZM_TMPDIR); then mkdir -m 700 -p $(ZM_TMPDIR); fi; if test "$(ZM_TMPDIR)" != "/tmp"; then chown $(webuser):$(webgroup) $(ZM_TMPDIR); chmod u+w $(ZM_TMPDIR); fi )
( if ! test -e $(ZM_LOGDIR); then mkdir -p $(ZM_LOGDIR); fi; if test "$(ZM_LOGDIR)" != "/var/log"; then chown $(webuser):$(webgroup) $(ZM_LOGDIR); chmod u+w $(ZM_LOGDIR); fi )
@@ -29,4 +29,4 @@
@-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
@-( if test "$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(ZM_RUNDIR); fi )
@-( if test "$(ZM_TMPDIR)" != "/tmp"; then rm -rf $(ZM_TMPDIR); fi )
- @-( if test "$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(ZM_LOGDIR); fi )
+ @-( if test "$(DESTDIR)$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(DESTDIR)$(ZM_LOGDIR); fi )
|
here is the ebuild
| Code: |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit eutils autotools depend.php depend.apache multilib flag-o-matic
MY_PN="ZoneMinder"
DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system."
HOMEPAGE="http://www.zoneminder.com/"
SRC_URI="http://www.zoneminder.com/downloads/${MY_PN}-${PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="x86"
IUSE="debug ffmpeg"
#IUSE="debug ffmpeg mmap"
SLOT="0"
DEPEND="app-admin/sudo
dev-libs/libpcre
net-libs/gnutls
dev-lang/perl
dev-lang/php[mysql,sockets,apache2]
dev-perl/Archive-Zip
dev-perl/DateManip
dev-perl/DBD-mysql
dev-perl/DBI
dev-perl/Device-SerialPort
dev-perl/libwww-perl
dev-perl/MIME-Lite
dev-perl/MIME-tools
dev-perl/PHP-Serialization
virtual/jpeg
virtual/perl-Archive-Tar
virtual/perl-Getopt-Long
virtual/perl-libnet
virtual/perl-Module-Load
virtual/perl-Sys-Syslog
virtual/perl-Time-HiRes"
RDEPEND="
dev-perl/DBD-mysql
ffmpeg? ( >=media-video/ffmpeg-0.5-r1 )
media-libs/netpbm"
# 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}
src_prepare() {
epatch "${FILESDIR}"/${P}-ZM_RUNDIR.patch
einfo "Regenerating autotools files..."
eautoreconf
}
src_configure() {
local myconf
# To enable mmap support we need a dependancy of Sys::Mmap
# It installs fine via g-cpan, but there's no ebuild currently in portage.
# if use mmap; then
# myconf="${myconf} --enable-mmap=yes"
# else
# myconf="${myconf} --enable-mmap=no"
# fi
append-flags "-D__STDC_CONSTANT_MACROS"
if use debug; then
myconf="${myconf} --enable-debug=yes --enable-crashtrace=yes"
else
myconf="${myconf} --enable-debug=no --enable-crashtrace=no"
fi
econf --with-libarch=$(get_libdir) \
--with-mysql=/usr \
$(use_with ffmpeg) \
--with-webdir="${ROOT}var/www/zoneminder/htdocs" \
--with-cgidir="${ROOT}var/www/zoneminder/cgi-bin" \
--with-webuser=apache \
--with-webgroup=apache \
--disable-mmap \
--with-webhost=zm.localdomain \
${myconf}
einfo "${PN} does not parallel build... using forcing make -j1..."
emake -j1 || die "emake failed"
}
src_install() {
dodir /var/run/zm
keepdir /var/run/zm
fowners apache:apache /var/run/zm
fperms 0755 /var/run/zm
emake -j1 DESTDIR="${D}" install || die "emake install failed"
fperms 0640 /etc/zm.conf
keepdir /var/log/${PN}
fowners apache:apache /var/log/${PN}
fperms 0770 /var/log/${PN}
newinitd "${FILESDIR}"/init.d zoneminder
newconfd "${FILESDIR}"/conf.d zoneminder
dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
insinto /usr/share/${PN}/db
doins db/zm_u* db/zm_create.sql
insinto /etc/apache2/vhosts.d
doins "${FILESDIR}"/10_zoneminder.conf
for DIR in events images sound; do
dodir "${ROOT}"/var/www/zoneminder/htdocs/${DIR}
done
}
pkg_postinst() {
elog ""
elog "0. If this is a new installation, you will need to create a MySQL database"
elog " for ${PN} to use. (see http://www.gentoo.org/doc/en/mysql-howto.xml)."
elog " Once you completed that you should execute the following:"
elog ""
elog " cd /usr/share/${PN}"
elog " mysql -u <my_database_user> -p<my_database_pass> <my_zoneminder_db> < db/zm_create.sql"
elog ""
elog "1. Set your database settings in /etc/zm.conf"
elog ""
elog "2. Start the ${PN} daemon:"
elog ""
elog " /etc/init.d/${PN} start"
elog ""
elog "3. Finally point your browser to http://localhost/${PN}"
elog ""
elog ""
elog "If you are upgrading, you will need to run the zmupdate.pl script:"
elog ""
elog " /usr/bin/zmupdate.pl version=<from version> [--user=<my_database_user> --pass=<my_database_pass>]"
elog ""
}
|
You can download everything here;
http://linuxcrazy.com/downloads/zoneminder-1.25.0.tar.bz2
It installed fine here on x86, I have not had time to do anymore testing. I wanted to get a camera and try it out when I have some free time. _________________ http://dev.gentoo.org/~dabbott/ |
|
| Back to top |
|
 |
baaann Guru

Joined: 23 Jan 2006 Posts: 466 Location: uk
|
Posted: Thu Sep 08, 2011 7:30 am Post subject: |
|
|
@comprookie2000
Just a heads up in case you were not aware, dilfridge has started work on a version bump in his overlay
http://gpo.zugaina.org/www-misc/zoneminder
| Quote: | ChangeLog
# ChangeLog for www-misc/zoneminder
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/Attic/ChangeLog,v 1.41 2011/04/04 12:11:35 scarabeus Exp $
*zoneminder-1.25.0 (01 Sep 2011)
01 Sep 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+files/1.25.0/Makefile.am.patch, -zoneminder-1.24.2.ebuild,
+zoneminder-1.25.0.ebuild:
Started working on version bump
---------------------------------------------------------------------------
Copied from CVS attic to dilfridge overlay
--------------------------------------------------------------------------- |
Maybe worth combining resources if you are not already? |
|
| Back to top |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 230
|
Posted: Tue Mar 20, 2012 2:45 pm Post subject: |
|
|
| I was having trouble emerging from the overlay so I'm trying the ebuild posted above instead. One thing I already noticed is the ebuild above requires php to have sockets while the one by dilfridge does not. I'll report back once I re-emerge php to see if this one works, since the one by dilfridge was making errors about a missing epatch source or something similar. |
|
| Back to top |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 230
|
Posted: Tue Mar 20, 2012 6:58 pm Post subject: |
|
|
I'm getting the same error again. I'm sure this is something very simple so I'm sorry for posting it but if someone could help me make this ebuild work I would appreciate it.
| Code: | * Messages for package www-misc/zoneminder-1.25.0:
* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch
* ( zoneminder-1.25.0-ZM_RUNDIR.patch )
* ERROR: www-misc/zoneminder-1.25.0 failed (prepare phase):
* Cannot find $EPATCH_SOURCE!
*
* Call stack:
* ebuild.sh, line 85: Called src_prepare
* environment, line 3498: Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
* environment, line 1524: Called die
* The specific snippet of code:
* die "Cannot find \$EPATCH_SOURCE!";
*
* If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.25.0',
* the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
* S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0' |
|
|
| Back to top |
|
 |
comprookie2000 Developer


Joined: 25 Jul 2004 Posts: 857 Location: Pompano Beach, Florida
|
Posted: Tue Mar 20, 2012 7:28 pm Post subject: |
|
|
Did you add the patch?
environment, line 3498: Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
ls /usr/local/portage/www-misc/zoneminder/files/ _________________ http://dev.gentoo.org/~dabbott/ |
|
| Back to top |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 230
|
Posted: Tue Mar 20, 2012 7:39 pm Post subject: |
|
|
I just noticed I missed that part. I downloaded and copied the text from your post into that file.
| Code: | # ls -lah /usr/local/portage/www-misc/zoneminder/files/
total 12K
drwxr-xr-x 2 root root 4.0K Mar 20 15:26 .
drwxr-xr-x 3 root root 4.0K Mar 20 15:28 ..
-rw-r--r-- 1 root root 1.5K Mar 20 15:26 zoneminder-1.25.0-ZM_RUNDIR.patch
# cat /usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch
--- a/ZoneMinder-1.25.0/Makefile.am 2011-05-20 05:39:37.000000000 -0400
+++ b/ZoneMinder-1.25.0/Makefile.am 2011-09-07 15:11:09.000000000 -0400
@@ -21,7 +21,7 @@
# Yes, you are correct. This is a HACK!
install-data-hook:
( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
- ( if ! test -e $(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR); fi )
+ ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR); fi )
( if ! test -e $(ZM_TMPDIR); then mkdir -m 700 -p $(ZM_TMPDIR); fi; if test "$(ZM_TMPDIR)" != "/tmp"; then chown $(webuser):$(webgroup) $(ZM_TMPDIR); chmod u+w $(ZM_TMPDIR); fi )
( if ! test -e $(ZM_LOGDIR); then mkdir -p $(ZM_LOGDIR); fi; if test "$(ZM_LOGDIR)" != "/var/log"; then chown $(webuser):$(webgroup) $(ZM_LOGDIR); chmod u+w $(ZM_LOGDIR); fi )
@@ -29,4 +29,4 @@
@-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
@-( if test "$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(ZM_RUNDIR); fi )
@-( if test "$(ZM_TMPDIR)" != "/tmp"; then rm -rf $(ZM_TMPDIR); fi )
- @-( if test "$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(ZM_LOGDIR); fi )
+ @-( if test "$(DESTDIR)$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(DESTDIR)$(ZM_LOGDIR); fi )
|
But when I try to emerge it again I get a different error now:
| Code: | # emerge zoneminder
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) www-misc/zoneminder-1.25.0 from x-portage
* ZoneMinder-1.25.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking ZoneMinder-1.25.0.tar.gz to /var/tmp/portage/www-misc/zoneminder-1.25.0/work
>>> Source unpacked in /var/tmp/portage/www-misc/zoneminder-1.25.0/work
>>> Preparing source in /var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0 ...
* Applying zoneminder-1.25.0-ZM_RUNDIR.patch ...
* Failed Patch: zoneminder-1.25.0-ZM_RUNDIR.patch !
* ( /usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/www-misc/zoneminder-1.25.0/temp/zoneminder-1.25.0-ZM_RUNDIR.patch.out
* ERROR: www-misc/zoneminder-1.25.0 failed (prepare phase):
* Failed Patch: zoneminder-1.25.0-ZM_RUNDIR.patch!
*
* Call stack:
* ebuild.sh, line 85: Called src_prepare
* environment, line 3498: Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
* environment, line 1657: 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.25.0',
* the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
* S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0' |
| Code: | cat /var/tmp/portage/www-misc/zoneminder-1.25.0/temp/zoneminder-1.25.0-ZM_RUNDIR.patch.out
***** zoneminder-1.25.0-ZM_RUNDIR.patch *****
PWD: /var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0
=============================================
PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am 2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am 2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
patch program exited with status 1
=============================================
PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am 2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am 2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
patch program exited with status 1
=============================================
PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
=============================================
patching file Makefile.am
Hunk #1 FAILED at 21.
Hunk #2 FAILED at 29.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.am.rej
patch program exited with status 1
=============================================
PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am 2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am 2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
patch program exited with status 1
=============================================
PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am 2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am 2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
patch program exited with status 1 |
|
|
| Back to top |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 230
|
Posted: Tue Mar 20, 2012 8:07 pm Post subject: |
|
|
| Actually I take that back, I downloaded your entire archive instead and that seems to have worked. I don't think I had any typos or code missing from copying and pasting it, but I guess something I did was incorrect. Thank you for uploading it. |
|
| Back to top |
|
 |
comprookie2000 Developer


Joined: 25 Jul 2004 Posts: 857 Location: Pompano Beach, Florida
|
Posted: Tue Mar 20, 2012 8:54 pm Post subject: |
|
|
Maybe the tarball changed. You can try to get it installed without the patch or download the tarball and make your own patch. I tried the ones from the overlay "zugaina" both the 1.25 and the live 9999 ebuild and they both failed here so I gave up. _________________ http://dev.gentoo.org/~dabbott/ |
|
| Back to top |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 230
|
Posted: Tue Mar 20, 2012 8:59 pm Post subject: |
|
|
Actually I got another weird error while trying to emerge it, this time sandbox access violations?
| Code: | make install-data-hook
make[3]: Entering directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
( cd /var/tmp/portage/www-misc/zoneminder-1.25.0/image//etc; chown apache:apache zm.conf; chmod 600 zm.conf )
( if ! test -e /var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm; then mkdir -p /var/run/zm; fi; if test "/var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm" != "/var/run"; then chown apache:apache /var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm; chmod u+w /var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm; fi )
( if ! test -e /tmp/zm; then mkdir -m 700 -p /tmp/zm; fi; if test "/tmp/zm" != "/tmp"; then chown apache:apache /tmp/zm; chmod u+w /tmp/zm; fi )
( if ! test -e /var/log/zm; then mkdir -p /var/log/zm; fi; if test "/var/log/zm" != "/var/log"; then chown apache:apache /var/log/zm; chmod u+w /var/log/zm; fi )
ACCESS DENIED fchownat: /var/log/zm
chown: changing ownership of `/var/log/zm': Permission denied
ACCESS DENIED fchmodat: /var/log/zm
chmod: changing permissions of `/var/log/zm': Permission denied
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make: *** [install-recursive] Error 1
emake failed
* ERROR: www-misc/zoneminder-1.25.0 failed (install phase):
* emake install failed
*
* Call stack:
* ebuild.sh, line 85: Called src_install
* environment, line 3485: Called die
* The specific snippet of code:
* emake -j1 DESTDIR="${D}" install || die "emake install failed";
*
* If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.25.0',
* the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
* S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-24541.log"
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line
F: fchownat
S: deny
P: /var/log/zm
A: /var/log/zm
R: /var/log/zm
C: chown apache:apache /var/log/zm
F: fchmodat
S: deny
P: /var/log/zm
A: /var/log/zm
R: /var/log/zm
C: chmod u+w /var/log/zm
-------------------------------------------------------------------------------- |
I tried making sure the permissions were correct for the zm folder, just like they're listed above. But it would keep returning that same error, so I emerged it with FEATURES="-sandbox" and it worked. |
|
| Back to top |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 230
|
Posted: Wed Mar 21, 2012 5:50 am Post subject: |
|
|
| I understand completely why nobody wants to maintain this ebuild. This has been the worst package I've ever had to install in Gentoo. I think even compiling ooffice, chrome, and firefox all together is still more pain free than troubleshooting zoneminder nonstop. Now I'm stuck with an awesome warning about "mootools" not being installed? I can't even find out any info about this and whether it's even available on gentoo. |
|
| Back to top |
|
 |
lyallp Veteran


Joined: 15 Jul 2004 Posts: 1197 Location: Adelaide/Australia
|
Posted: Thu Mar 22, 2012 9:50 am Post subject: |
|
|
I don't know what you are talking about.
The Ebuild in zugaina overlay works fine
(check layman -L) _________________ ...Lyall |
|
| Back to top |
|
 |
gkmac Guru


Joined: 19 Jan 2003 Posts: 309 Location: West Sussex, UK
|
Posted: Sun Apr 15, 2012 11:12 am Post subject: |
|
|
| lyallp wrote: | The Ebuild in zugaina overlay works fine  |
Hmmm... it doesn't seem to work for me. | Code: | x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -Ino/include -Wall -Wno-sign-compare -fno-inline -Ino/include -march=athlon64 -O2 -pipe -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In static member function ‘static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)’:
zm_local_camera.cpp:774:22: error: ‘PATH_MAX’ was not declared in this scope
zm_local_camera.cpp:779:21: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:781:22: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:782:29: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:799:67: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:801:54: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:811:92: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:936:91: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:961:82: error: ‘queryDevice’ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make: *** [all] Error 2
emake failed
* ERROR: www-misc/zoneminder-1.25.0 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 3603: Called die
* The specific snippet of code:
* MAKEOPTS="-j1" emake || die "emake failed"
*
* If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.25.0',
* the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
* This ebuild is from an overlay named 'gkmac': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
* S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0' |
Between this forum thread and zugaina's overlay browser there appear to be four different ebuilds to choose from...- zugaina overlay (which fails as above)
- dilfridge's overlay
- sabayon overlay
- comprookie2000's tarball (posted above)
Any success stories from any of those ebuilds above? If so, which one? _________________ If ~x86 ebuilds are cutting edge, then svn-9999 ebuilds are chainsaws.
"Not everyone can ride a unicycle, does that mean we should put another wheel on it?" - Lokheed |
|
| Back to top |
|
 |
braindead0 Tux's lil' helper


Joined: 29 Apr 2003 Posts: 144 Location: Ohio
|
Posted: Fri May 11, 2012 8:28 pm Post subject: |
|
|
I didn't have any trouble building ZM from the zugaina overlay...
What I did notice is that you need to manually run zmupdate.pl to update your database. Once that's done, /etc/init.d/zoneminder start and I was off an running. My existing config from 1.24.3 was converted fine it seems. _________________ Poxart |
|
| Back to top |
|
 |
lyallp Veteran


Joined: 15 Jul 2004 Posts: 1197 Location: Adelaide/Australia
|
|
| Back to top |
|
 |
gkmac Guru


Joined: 19 Jan 2003 Posts: 309 Location: West Sussex, UK
|
Posted: Tue May 15, 2012 9:46 am Post subject: |
|
|
Last updated 14 May 2007, still mentions that ebuilds are available in the portage tree...
I thought it was CXXFLAGS not CPPFLAGS. Anyway, let me remind you of the first line of my log... | Code: | | x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -Ino/include -Wall -Wno-sign-compare -fno-inline -Ino/include -march=athlon64 -O2 -pipe -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF | ...you'll see that -D__STDC_CONSTANT_MACROS is already in there since the zugaina ebuild fixes this bug.
I tried manually putting both CXXFLAGS and CPPFLAGS before the emerge command anyway, but it's still failing with "‘PATH_MAX’ was not declared in this scope".
EDIT: Don't know if emerge --info will help here... | Code: | Portage 2.2.0_alpha100 (default/linux/amd64/10.0/server, gcc-4.5.3, glibc-2.14.1-r3, 2.6.32-openvz-feoktistov.1 x86_64)
=================================================================
System uname: Linux-2.6.32-openvz-feoktistov.1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.3
Timestamp of tree: Tue, 15 May 2012 08:45:01 +0000
app-shells/bash: 4.2_p20
dev-lang/python: 2.7.2-r3, 3.2.2
dev-util/cmake: 2.8.7-r5
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo gkmac
Installed sets:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://www.mirror.ac.uk/mirror/www.ibiblio.org/ http://gentoo.oregonstate.edu/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.uk.gentoo.org/gentoo-portage"
USE="amd64 apache2 caps cli crypt cxx dri gdbm iconv jpeg maildir mmx modules mudflap multilib ncurses nls nptl openmp pcre png pppd readline session snmp spf sse sse2 ssl tcpd threads truetype unicode urandom xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON |
_________________ If ~x86 ebuilds are cutting edge, then svn-9999 ebuilds are chainsaws.
"Not everyone can ride a unicycle, does that mean we should put another wheel on it?" - Lokheed |
|
| Back to top |
|
 |
reisio Tux's lil' helper


Joined: 12 Jul 2004 Posts: 113
|
Posted: Tue May 22, 2012 6:03 am Post subject: |
|
|
| gkmac wrote: | Hmmm... it doesn't seem to work for me. | Code: | x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -Ino/include -Wall -Wno-sign-compare -fno-inline -Ino/include -march=athlon64 -O2 -pipe -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In static member function ‘static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)’:
zm_local_camera.cpp:774:22: error: ‘PATH_MAX’ was not declared in this scope
zm_local_camera.cpp:779:21: error: ‘queryDevice’ was not declared in this scope |
|
I've been told enabling the ffmpeg USE flag resolves this. |
|
| Back to top |
|
 |
|