Since upgrading to sys-apps/gawk-5.0.0, the makewhatis cron script in /etc/cron.daily now emits warnings (12 of them for me) of the following form: awk: cmd. line:130: warning: regexp escape sequence `\"' is not a known regexp operator Since these are emitted from a cronjob, they get emailed to me. Presumably they will be emailed to me every day henceforth until this is fixed. The error appears to be at line 363 of /usr/sbin/makewhatis: sub(/\\\".*/, ""); # Trim pending comments My semi-educated guess would be that the backslash before the double-quote character in the regular expression should be removed, as it is superfluous. Evidently the new version of Gawk warns about the unneeded backslash.
Unfortunately, sys-apps/man upstream appears to be dead. I suggest to switch over to sys-apps/man-db because at the current state it's quite likely that we will treeclean sys-apps/man
I was also experiencing the daily awk(1) email from makewhatis(1) in sys-apps/man. Per suggestion from Polynomial-C, I simply did `emerge --verbose --ask sys-apps/man-db`. The emerge unmerged sys-apps/man and merged sys-apps/man-db. I expect this solved the issue for me.
(In reply to Matt Whitlock from comment #0) > > sub(/\\\".*/, ""); # Trim pending comments > > My semi-educated guess would be that the backslash before the double-quote > character in the regular expression should be removed, as it is superfluous. > Evidently the new version of Gawk warns about the unneeded backslash. I confirm that removing the backslash before the double-quote character in the regular expression at line 363 of makewhatis script solve the problem. So a simple patch with a condition relative to >=sys-apps/gawk-5.0.0 can fix it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce370f012e25ad2eb756cbcaf768bf053161d067 commit ce370f012e25ad2eb756cbcaf768bf053161d067 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2020-03-07 21:54:44 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2020-03-07 21:59:07 +0000 sys-apps/man: remove package Closes: https://bugs.gentoo.org/468428 Closes: https://bugs.gentoo.org/515534 Closes: https://bugs.gentoo.org/524588 Closes: https://bugs.gentoo.org/589738 Closes: https://bugs.gentoo.org/605352 Closes: https://bugs.gentoo.org/651038 Closes: https://bugs.gentoo.org/683494 Signed-off-by: Mike Gilbert <floppym@gentoo.org> profiles/package.mask | 6 - sys-apps/man/Manifest | 1 - sys-apps/man/files/makewhatis.cron | 5 - sys-apps/man/files/man-1.5m2-apropos.patch | 16 --- sys-apps/man/files/man-1.6-cross-compile.patch | 61 ---------- .../files/man-1.6c-cut-duplicate-manpaths.patch | 83 ------------- sys-apps/man/files/man-1.6e-headers.patch | 13 -- .../man-1.6f-makewhatis-compression-cleanup.patch | 69 ----------- .../files/man-1.6f-man2html-compression-2.patch | 61 ---------- sys-apps/man/files/man-1.6f-parallel-build.patch | 78 ------------ sys-apps/man/files/man-1.6f-so-search-2.patch | 34 ------ sys-apps/man/files/man-1.6f-unicode.patch | 28 ----- sys-apps/man/files/man-1.6g-compress.patch | 17 --- sys-apps/man/files/man-1.6g-echo-escape.patch | 15 --- sys-apps/man/files/man-1.6g-fbsd.patch | 15 --- sys-apps/man/files/man-1.6g-xz.patch | 53 --------- sys-apps/man/man-1.6g-r1.ebuild | 131 --------------------- sys-apps/man/metadata.xml | 8 -- 18 files changed, 694 deletions(-)