Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324457 - net-analyzer/cacti please bump
Summary: net-analyzer/cacti please bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL: http://www.cacti.net/release_notes_0_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 13:56 UTC by Luca Lesinigo
Modified: 2010-11-25 11:12 UTC (History)
7 users (show)

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


Attachments
Working ebuild (cacti-0.8.7g.ebuild,2.07 KB, text/plain)
2010-10-03 11:33 UTC, Nikolay S. Rybaloff
Details
Working ebuild (cacti-spine-0.8.7g.ebuild,1.72 KB, text/plain)
2010-10-03 11:33 UTC, Nikolay S. Rybaloff
Details
Cacti-Ebuild 0.8.7g with plugins-patch (cacti-0.8.7g-r1.ebuild,2.18 KB, text/plain)
2010-10-05 15:21 UTC, Jens Ott
Details
Cacti-Plugins-Patch, modified to be applyable in Gentoo-Ebuild (cacti-plugin-0.8.7g-PA-v2.8.diff,195.10 KB, patch)
2010-10-05 15:22 UTC, Jens Ott
Details | Diff
cacti-spine-0.8.7g-r1.ebuild (cacti-spine-0.8.7g-r1.ebuild,1.78 KB, text/plain)
2010-10-13 20:07 UTC, Jens Ott
Details
cacti-spine-0.8.7g-r1.ebuild with fixed permissions (cacti-spine-0.8.7g-r1.ebuild,1.82 KB, text/plain)
2010-10-14 21:37 UTC, Jens Ott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Lesinigo 2010-06-17 13:56:06 UTC
cacti-0.8.7f was release may 26th, please bump ebuild in portage

it fixes a lot of bugs, probably also the ones reported here against 0.8.7e (bug #317615 and #324031)
Comment 1 Dan Coats 2010-07-12 19:47:51 UTC
Please bump cacti and spine to 0.8.7g 
http://forums.cacti.net/viewtopic.php?t=38492

Comment 2 Nikolay S. Rybaloff 2010-10-03 11:33:35 UTC
Created attachment 249422 [details]
Working ebuild
Comment 3 Nikolay S. Rybaloff 2010-10-03 11:33:56 UTC
Created attachment 249424 [details]
Working ebuild
Comment 4 Nikolay S. Rybaloff 2010-10-03 11:34:24 UTC
Running 0.8.7g here.
~amd64
Comment 5 Jens Ott 2010-10-05 15:21:06 UTC
Created attachment 249647 [details]
Cacti-Ebuild 0.8.7g with plugins-patch

This cacti-0.8.7g ebuild adds a new USE-Flag "plugins" which leads to inclusion of plugins-patch (see http://cactiusers.org/ for more details)

The patch follows ...
Comment 6 Jens Ott 2010-10-05 15:22:31 UTC
Created attachment 249648 [details, diff]
Cacti-Plugins-Patch, modified to be applyable in Gentoo-Ebuild

This is a slightly modified cacti-plugins-patch to work on gentoo-ebuild 0.8.7g-r1
Comment 7 Jens Ott 2010-10-05 15:23:42 UTC
(In reply to comment #6)
> Created an attachment (id=249648) [details]
> Cacti-Plugins-Patch, modified to be applyable in Gentoo-Ebuild
> 
> This is a slightly modified cacti-plugins-patch to work on gentoo-ebuild
> 0.8.7g-r1
> 

Forgot to mention, this patch needs to be placed in ${FILESDIR} for the ebuild to build.

BR
Jens

Comment 8 John Stile 2010-10-13 19:50:23 UTC
I am trying to use patch cacti-0.8.7g.ebuild but install fails with error:
>>> Install cacti-0.8.7g into /var/tmp/portage/net-analyzer/cacti-0.8.7g/image/ category net-analyzer
 * (server owned) htdocs/rra
 * (server owned) htdocs/log/cacti.log
 * (config) htdocs/include/config.php
 * ebuild fault: file '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt' not found
 * Please report this as a bug at http://bugs.gentoo.org/
 * ERROR: net-analyzer/cacti-0.8.7g failed:
 *   ebuild fault: file '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt' not found
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 3155:  Called webapp_postinst_txt 'en' '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt'
 *   environment, line 3959:  Called webapp_checkfileexists '/usr/local/portage/net-analyzer/cacti/files/p
 *   environment, line 3762:  Called die
 * The specific snippet of code:
 *           die "$msg";
 * 
 * If you need support, post the output of 'emerge --info =net-analyzer/cacti-0.8.7g',
 * the complete build log and the output of 'emerge -pqv =net-analyzer/cacti-0.8.7g'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/log/portage/net-analyzer:cacti-0.8.7g:20101013-194539.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/cacti-0.8.7g/temp/environment'
 * S: '/var/tmp/portage/net-analyzer/cacti-0.8.7g/work/cacti-0.8.7g'

Am I missing a step?
ls -alF /usr/local/portage/net-analyzer/cacti/
-rw-r--r-- 1 root root 2123 Oct 13 12:32 cacti-0.8.7g.ebuild                                              
-rw-r--r-- 1 root root 1799 Oct 13 12:33 Manifest 
Comment 9 Jens Ott 2010-10-13 19:54:51 UTC
(In reply to comment #8)
> I am trying to use patch cacti-0.8.7g.ebuild but install fails with error:
> >>> Install cacti-0.8.7g into /var/tmp/portage/net-analyzer/cacti-0.8.7g/image/ category net-analyzer
>  * (server owned) htdocs/rra
>  * (server owned) htdocs/log/cacti.log
>  * (config) htdocs/include/config.php
>  * ebuild fault: file
> '/usr/local/portage/net-analyzer/cacti/files/postinstall-en.txt' not found

Did you copy original FILESDIR-Contents? You should copy

cp -av /usr/portage/net-analyzer/cacti/files /usr/local/portage/net-analyzer/files

BR

Jens
Comment 10 Jens Ott 2010-10-13 20:07:31 UTC
Created attachment 250491 [details]
cacti-spine-0.8.7g-r1.ebuild

Hi,
I simply forgot to attach last time ... here we go this is the cacti-spine-0.8.7g-r1.ebuild which contains the latest official-upstream patches for spine (as cacti-0.8.7g-r1 does).

BR
Jens
Comment 11 John Stile 2010-10-13 22:13:58 UTC
I managed to install both net-analyzer/cacti-spine-0.8.7g-r1 and net-analyzer/cacti-0.8.7g using your ebuilds, after copying /usr/portage/net-analyzer/cacti/files to /usr/local/portage/net-analyzer/cacti.  
Thank you.

Based on the post install message, I unmerge the old cacti:
   emerge -Cav =cacti-0.8.7e-r2

Many programs print a post install message with webapp-config upgrade syntax, thought I don't know if this is standard practice.  e.g. webapp-config -U -h localhost -d cacti cacti 0.8.7g

Upon upgrading my vhost that command, I noticed my include/config.php was over written, so I had to reset the mysql db settings.

When using 0.8.7e-r2, I noticed although apache user has write permission to the rra directory, it does not always create rrd files (not due to permission issue), and that problem is still present after the upgrade.  Probably unrelated to the ebuild.
Comment 12 Jens Ott 2010-10-14 21:37:10 UTC
Created attachment 250617 [details]
cacti-spine-0.8.7g-r1.ebuild with fixed permissions

Recommended solution from upstream for rrds not being created correctly (described in comment #11) is setting suid-bit on spine. Added this to cacti-spine-0.8.7g-r1.ebuild

BR
Jens
Comment 13 Jens Ott 2010-10-14 21:43:07 UTC
(In reply to comment #11)
> I managed to install both net-analyzer/cacti-spine-0.8.7g-r1 and
> net-analyzer/cacti-0.8.7g using your ebuilds, after copying
> /usr/portage/net-analyzer/cacti/files to /usr/local/portage/net-analyzer/cacti. 
> Thank you.
> 
> Based on the post install message, I unmerge the old cacti:
>    emerge -Cav =cacti-0.8.7e-r2
> 
> Many programs print a post install message with webapp-config upgrade syntax,
> thought I don't know if this is standard practice.  e.g. webapp-config -U -h
> localhost -d cacti cacti 0.8.7g

I did not change the postinstall-en.txt but you are right, it should be added when pushing ebuild into portage-tree 

> Upon upgrading my vhost that command, I noticed my include/config.php was over
> written, so I had to reset the mysql db settings.

This is surprising as the file is correctly set as webapp_configfile inside the ebuild. I tried to reproduce this but in my install it works as expected.

> 
> When using 0.8.7e-r2, I noticed although apache user has write permission to
> the rra directory, it does not always create rrd files (not due to permission
> issue), and that problem is still present after the upgrade.  Probably
> unrelated to the ebuild.

Upstrean recommends to set suid-bit on spine. I added this to the ebuild (see above)

BR
Jens

Comment 14 Jens Ott 2010-10-15 22:25:41 UTC
Hi,

One short question to the "officials" ... this issue is open for three month now,  but there is still no injection to official portage-tree. Official portage tree is still on 0.8.7e, while upstream is already two release further on!

If you need a new maintainer for the cacti-project, or better say if the current maintainers do not want to maintain the project any longer, I'd like to offer take-over of this job.

BR
Jens
Comment 15 Jesse Adelman 2010-10-24 09:24:20 UTC
Hrm. See also the security bug 324031. Thanks.
Comment 16 Jesse Adelman 2010-10-26 17:48:56 UTC
Bumped PHP to 5.3.3. Now seeing deprecation warnings. Obviously, stuff still runs. While I don't know if the latest Cacti ameliorates these warnings, still, it would be nice to update.

---
PHP Deprecated:  Function split() is deprecated in
/var/www/localhost/htdocs/cacti/poller.php on line 77
PHP Deprecated:  Function split() is deprecated in
/var/www/localhost/htdocs/cacti/poller.php on line 178
PHP Deprecated:  Function split() is deprecated in
/var/www/localhost/htdocs/cacti/cmd.php on line 60
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367
PHP Deprecated:  Function eregi_replace() is deprecated in
/var/www/localhost/htdocs/cacti/lib/snmp.php on line 367

<snip>

Comment 17 Martin Samek 2010-11-07 10:06:01 UTC
Please, bumb cacti version in portage. 0.8.7e is broken against PHP 5.3.
Comment 18 Peter Volkov (RETIRED) gentoo-dev 2010-11-15 15:36:09 UTC
Thank you guys for report. New version was just added to the tree. Jens, if I missed anything, please let me know. Sorry for delay, finally fixed.
Comment 19 Jens Ott 2010-11-21 22:12:02 UTC
Hi,

thank you for bumping to 0.8.7.g ... but ... the -r1 I submitted contains upstream-patches and cacti-plugins-architecture-patch. Hoping it's worth a look ... 

Currently working on Plugin-Architecture 2.9 implementation, but still having couple of issues with it. Will open a new bug when 2.9 plugin-architecture runs stable on my site.

BR
Jens
Comment 20 Peter Volkov (RETIRED) gentoo-dev 2010-11-24 11:52:32 UTC
> thank you for bumping to 0.8.7.g ... but ... the -r1 I submitted contains
> upstream-patches

In tree ebuild contains them too. Or what do I miss?

> and cacti-plugins-architecture-patch. Hoping it's worth a look

> Currently working on Plugin-Architecture 2.9 implementation, but still having
> couple of issues with it. Will open a new bug when 2.9 plugin-architecture
> runs stable on my site.

Yes, please, open new bug report with diff attached and I'll look. Thank you!
Comment 21 Jens Ott 2010-11-25 11:12:37 UTC
Hi,

sorry, you are right, I somehow overread the patches in your ebuild.

BTW: I opened Bug #346741 for cacti-0.8.7g with the plugin-architecture-2.9 patch
My issues were not related to the patch but the plugin I used for testing ;-)

BR
Jens