1) app-admin/logrotate installs script /etc/logrotate.d/apache2 2) without installed www-servers/apache2 and dev-db/mysql root's mail (/root/dead.letter) contains tons of messages: error: error accessing /var/log/apache2: No such file or directory error: apache2:4 glob failed for /var/log/apache2/*log error: found error in /var/log/apache2/*log , skipping error: mysql:7 unknown user 'mysql' error: found error in /var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err , skipping error: stat of /var/log/mysql/mysqld.err failed: No such file or directory Reproducible: Always Steps to Reproduce: 1. Install app-admin/logrotate. 2. Do not install www-servers/apache2 and dev-db/mysql. Actual Results: 3. After initiation of logrotate scripts (either by cron or by other means) you can see that messages in your /root/dead.letter. Expected Results: Silent ignoring absent directories (or may be something more appropriate?) It was tested on the latest logrotate (3.7.8).
logrotate-3.7.8 does not install an apache2 here. Indeed, I looked, and didn't find any apache2 (or mysql) anywhere in the ebuild or tarball for logrotate. Are you sure logrotate installed it there?
This can probably be closed as NEEDINFO?