Jim Meyering wrote: > Martin von Gagern wrote: > ... >>>>> 5. sc_prohibit_always-defined_macros reports missing files: >>>>> >>>>> The sc_prohibit_always-defined_macros check will cause error messages >>>>> about missing files to be emitted if elements from the gl_other_headers_ >>>>> list are not present (i.e. not imported). This can be confusing. I've >>>>> added a "test -e $$f" check to the def_sym_regex code: >>>>> https://github.com/gagern/gnulib/commit/74524a2c993a809bbc20dcc3 >>>>> Feel free to merge this. > > I nearly missed that patch. > Next time you propose a patch, please include the actual > patch in the message, not just a link to it. > >>> gl_other_headers_ is defined like this: >>> >>> gl_other_headers_ ?= \ >>> intprops.h \ >>> openat.h \ >>> stat-macros.h >>> >>> The "?=" assignment means that you can override it via cfg.mk. >>> Does that work for you? >> >> Means I'd have to keep that list updated when gnulib changes its header >> organization, or when I change the list of modules I import, or >> whatever. As I'm patching maint.mk in any case, I feel better using the >> modification mentioned above. I guess others might feel the same. After >> all, those headers come from gnulib, so the list should be maintained >> with gnulib as well. And checking files that don't exist is never going >> to make any sense. > > Thanks for the patch. > ACK this and I'll push it in your name: > > From: Martin von Gagern <martin.vgag...@gmx.net> > Date: Wed, 14 Sep 2011 15:33:16 +0200 > Subject: [PATCH] maint.mk: avoid warnings from perl about missing files > > * top/maint.mk (def_sym_regex): Ignore files listed in > $(gl_other_headers_) that do not exist, say because a project > does not use a corresponding module.
I never heard back from you, but got tired of waiting so went ahead and pushed this.