cargo-crates/fontdb-0.10.0: path to fonts.conf is hard-coded

From: Tatsuki Makino <>
Date: Sat, 14 Jan 2023 06:14:25 UTC

Ports with CARGO_CRATES=fontdb-0.10.0 (e.g. multimedia/libopenshot with option RESVG turned on) may emit logs like the following

Warning (in fontdb:365): Failed to parse fontconfig because: IO error: No such file or directory (os error 2)

This is due to the fact that /etc/fonts/fonts.conf is hard-coded as the path to fonts.conf in src/ of fontdb-0.10.0.
Does this have to be patched to insert ${LOCALBASE} on each individual CARGO_CRATES=fontdb-0.10.0 port (e.g. graphics/resvg-capi)?