Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592648 - app-admin/tmpwatch-2.11 fails with /usr/sbin/tmpwatch: unrecognized option '--fuser'
Summary: app-admin/tmpwatch-2.11 fails with /usr/sbin/tmpwatch: unrecognized option '-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-01 08:45 UTC by samurai.no.dojo
Modified: 2016-11-13 13:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description samurai.no.dojo 2016-09-01 08:45:11 UTC
Tmpwatch cron job fails with :
/usr/sbin/tmpwatch: unrecognized option '--fuser'
tmpwatch 2.11 - (C) 1997-2009 Red Hat, Inc. All rights reserved.
This program may be freely redistributed under the terms of the
GNU General Public License version 2.

tmpwatch [-u|-m|-c] [-MUXadfqtvx] [--verbose] [--force] [--all] [--nodirs] [--nosymlinks] [--test] [--quiet] [--atime|--mtime|--ctime] [--dirmtime] [--exclude <path>] [--exclude-user <user>] [--exclude-pattern <pattern>] <hours-untouched> <dirs>
Job test -x /usr/sbin/run-crons && /usr/sbin/run-crons terminated (exit status: 1) (mailing output)

Despite --fuser option mentioned in manpage

Reproducible: Always

Steps to Reproduce:
1.install tmpwatch
2.uncomment example config in  /etc/cron.daily/tmpwatch
3. observe error with fuser option
Actual Results:  
Error

Expected Results:  
No error and cleaning  of tmpdirs.
Comment 1 Pacho Ramos gentoo-dev 2016-09-06 15:41:21 UTC
Does building it with --with-fuser=/bin/fuser configure option solve the problem?(you will need psmisc package)
Comment 2 samurai.no.dojo 2016-09-22 05:53:11 UTC
(In reply to Pacho Ramos from comment #1)
Hi,
soory it took me so long to respond (some other stuff got in way)...
Is there any way to supply this to emerge, or do I need to build package by hand?
Cheers 
S
Comment 3 Pacho Ramos gentoo-dev 2016-10-01 13:55:37 UTC
Try:
EXTRA_ECONF="--with-fuser=/bin/fuser" emerge -1 tmpwatch

Good luck!
Comment 4 samurai.no.dojo 2016-10-03 10:29:45 UTC
That is strange (aside of that I have fuser in /sbin)...
I have noticed that this problem is localized to only one of my machines.
And there is still same problem even when built with --with-fuser=/bin/fuser (or --with-fuser=/sbin/fuser).


Versions of tmpwatch and psmisc are same across all machines (2.11 and 22.21-r2).

emerge --info:
https://gist.github.com/samuraiii/c5075edcfaeff50b61302aa65b31cd85
Comment 5 Pacho Ramos gentoo-dev 2016-10-08 09:56:19 UTC
What error are you getting with -r2?

At least in my case the option seems recognized:
# tmpwatch --fuser
error: time (in hours) must be given
Comment 6 samurai.no.dojo 2016-11-13 13:16:06 UTC
Hi again,
yes I can confirm that upgrading to -r2 helped in my case.
Thank you and closing
S