[gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
Nikos Chantziaras wrote: > It didn't look like it to me at all. From the man page: > >Examples: > ># match anything with a version containing , which can be used in ># package.mask to prevent emerge --autounmask from selecting live ># ebuilds >=*/*-** This has always been a horribly misleading example, because it does not follow the PMS rules of wildcard version matching: =foo/bar-* must mach foo/bar-p1 but not foo/bar-999 Maybe portage finally dumped this bad case, which was already reported https://bugs.gentoo.org/show_bug.cgi?id=572178 OTOH, it would appear reasonable that portage could accept =dev-qt/*-5.6* although there is of course the ambiguity that it is not clear that the -5.6* is the version specification. Perhaps one could open a portage bug/feature request about it. eix-0.31.7 accepts both (=dev-qt/*-5.6* with PMS rules as well as the non-PMS =dev-qt/*-*5.6* [with string instead of PMS matching rules]).
Re: [gentoo-user] logrotate: name of log file after it's rotated?
Alan McKinnon writes: > On 25/03/2016 13:46, lee wrote: >> >> Hi, >> >> is there a built-in way (like a place holder) to figure out what name a >> rotated log file has been given by logrotate? >> >> Here's what I'm trying to do: >> >> >> , [ cat /etc/logrotate.d/exim } >> | /var/log/exim/exim*.log { >> | daily >> | missingok >> | rotate 800 >> | compress >> | delaycompress >> | notifempty >> | create 640 mail mail >> | postrotate >> | /usr/sbin/eximstats | mail -s >> "eximstats" root >> | endscript >> | } >> ` >> >> >> I want replaced with the name the log file that >> has been rotated has been renamed to. I can think of ways to do this >> otherwise, like writing a script that figures out the name of the file, >> or using 'prerotate' instead. >> >> It just won't make any sense if logrotate doesn't already have some kind >> of place holder for this. >> > > > It depends. There are options to tell logrotate to use, or not use, > dates in the new filename, and what compression to use or not use. So > the names can vary. Exactly, and that's why there needs to be some sort of place holder for the file name. > By far the easiest solution is to put your "| mail" into prerotate > section. That way you know exactly what the name is. Or maybe not due to > that * in the name glob... The problem is that the file can be written to while it is being examined when the examination is performed before it is rotated. That can lead to false results of the examination. > Perhaps look into renamecopy described in man logrotate Thanks, that sounds as if it will provide exactly what I'm looking for :)
Re: [gentoo-user] logrotate: name of log file after it's rotated?
On 02/04/2016 04:01, lee wrote: >> It depends. There are options to tell logrotate to use, or not use, >> > dates in the new filename, and what compression to use or not use. So >> > the names can vary. > Exactly, and that's why there needs to be some sort of place holder for > the file name. > I don't think it's a case of "there needs to be". I think it's more a case of "you want it to be to solve this special problem you have", and perhaps the logrotate maintainer doesn't agree. -- Alan McKinnon alan.mckin...@gmail.com