[Fontconfig-bugs] [Bug 107438] [PATCH] workaround a gperf 3.1 bug

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 1 06:34:11 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107438

--- Comment #7 from Akira TAGOH <akira at tagoh.org> ---
Hmm, okay. weird though. does this work then?

diff --git a/src/Makefile.am b/src/Makefile.am
index 7a35575..7b414df 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -111,10 +111,10 @@ fcobjshash.gperf: Makefile stamp-fcobjshash.gperf
 stamp-fcobjshash.gperf: fcobjshash.gperf.h fcobjs.h
        $(AM_V_GEN) $(CPP) -I$(top_srcdir) $(CPPFLAGS) $< | \
        $(SED) 's/^ *//;s/ *, */,/' | \
-       $(GREP) '^[^#]' | \
        awk ' \
                /CUT_OUT_BEGIN/ { no_write=1; next; }; \
                /CUT_OUT_END/ { no_write=0; next; }; \
+               /^$$/||/^#/ { next; }; \
                { if (!no_write) print; next; }; \
        ' - > $@.tmp && \
        mv -f $@.tmp fcobjshash.gperf && touch $@ || ( $(RM) $@.tmp && false )

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180801/2e3a4879/attachment.html>


More information about the Fontconfig-bugs mailing list