PATCH: Slackware64 14.1rc1 - acct package
I found an issue in the 'acct' package in Slackware64 14 and it still exists in 14.1rc1. I sent this to Pat a few months ago, but I'm sure he stays plenty busy. Perhaps someone can help both of us out. :)
The problem is that output from the 'sa' process accounting utility only reports 'inf' and '-nan' in the output instead of the correct numbers/statistics. Example (unpatched, top 4): Code:
/usr/bin/sa --user-summary Code:
/usr/bin/sa --user-summary 1) Enable process accounting. (touch /var/log/pacct && chmod 640 /var/log/pacct && /sbin/accton /var/log/pacct) 2) Run a few commands to be logged. 3) Run a report. (/usr/bin/sa --user-summary) The Debian folks fixed the issue and have released a patch for 6.5.4. I put it and the SlackBuild change into the linked patch file. If anyone needs reference to the original Debian patch, you can find it here: http://patch-tracker.debian.org/package/acct/6.5.4-2.1 (It's the '581421-sa-hz-division.patch' one.) Here's the patch: https://www.dropbox.com/s/rkgvnatrwe...rrent.patch.gz Ken |
BTW, Seems these problems have been fixed in acct-6.6.1.
This requires a slightly different acct.logdir.fhs.diff: Code:
--- ./configure.ac.orig 2013-10-23 |
That could be why we still have the older version. More interested in fixing the existing issue rather than debating a last minute update! :)
|
The acct-6.6.1 release was screwed up and the tarball is filled with cruft. And it looks like those who have taken it have had to patch against crashes and other bugs.
I'll take a look at the patch. |
I see. Pity it's not well-maintained.
--mancha |
All times are GMT -5. The time now is 12:10 PM. |