<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/utils/fontconfig/patches/001-cutout-strip-preprocessor-artifacts.patch, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2026-05-13T04:27:14Z</updated>
<entry>
<title>fontconfig: fix build with SDK producing -dD style output</title>
<updated>2026-05-13T04:27:14Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2026-05-11T06:58:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=d7b891ddd0fa03724d80e97d7604b39e40ab5681'/>
<id>urn:sha1:d7b891ddd0fa03724d80e97d7604b39e40ab5681</id>
<content type='text'>
Some SDK/host GCC configurations, when meson invokes cc.preprocess() to
expand fcobjshash.gperf.h, produce output that includes predefined macro
dumps (e.g. #define __STDC__ 1) alongside linemarker lines. The upstream
cutout.py script, which strips CUT_OUT_BEGIN/END-delimited sections from
the preprocessed output before feeding it to gperf, passes these lines
through verbatim into fcobjshash.gperf.

gperf then copies them into the declarations section of fcobjshash.h.
When fcobjs.c includes fcobjshash.h, the compiler encounters #define
redefinitions and stray # tokens, causing a build failure.

Fix cutout.py to skip any line starting with # (C preprocessor
linemarkers and predefined macro definitions) before writing to the
output gperf file.

Signed-off-by: Alexandru Ardelean &lt;alex@shruggie.ro&gt;
</content>
</entry>
</feed>
