Changeset View
Changeset View
Standalone View
Standalone View
x11-fonts/fontconfig/files/patch-fc-cache_meson.build
- This file was added.
--- fc-cache/meson.build.orig 2021-01-28 11:53:32 UTC | |||||
+++ fc-cache/meson.build | |||||
@@ -8,6 +8,6 @@ fccache = executable('fc-cache', ['fc-cache.c', fcstdi | |||||
tools_man_pages += ['fc-cache'] | |||||
# Do not try to execute target's fc-cache on host when cross compiling | |||||
-if not meson.is_cross_build() | |||||
+if get_option('fc-cache').enabled() and not meson.is_cross_build() | |||||
arrowd: Why this patch is needed? The condition should always be true when building from Ports, as we… | |||||
Done Inline ActionsThis seem to cause permission issues when builing as non root https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254963 diizzy: This seem to cause permission issues when builing as non root https://bugs.freebsd. | |||||
Not Done Inline ActionsHum, I wonder if the setting $HOME (to, say, ${WRKDIR}/home) would make it work. If it does, I like this solution more, as it doesn't involve patching. arrowd: Hum, I wonder if the setting `$HOME` (to, say, `${WRKDIR}/home`) would make it work. If it does… | |||||
Done Inline ActionsNot sure I follow you, paths are set here: diizzy: Not sure I follow you, paths are set here:
https://cgit.freebsd.org/ports/tree/x11… | |||||
Not Done Inline ActionsAFAIK, fc-cache tries to write cache files into system directories first and then into $HOME/.cache or something like that. Providing a writable home directory during the build may probably workaround the failure we see. arrowd: AFAIK, `fc-cache` tries to write cache files into system directories first and then into… | |||||
meson.add_install_script(fccache, '-s', '-f', '-v') | |||||
endif |
Why this patch is needed? The condition should always be true when building from Ports, as we don't support cross-compilation.