mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
package/libgtk3: fix update-icon-cache on empty directory
If both, hicolor-icon-theme (selected by libgtk3-demo) and adwaita-icon-theme is not selected, then the /usr/share/icons folder is empty, causing find to fail. Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com> Tested-by: Adrian Perez de Castro <aperez@igalia.com> Reviewed-by: Adrian Perez de Castro <aperez@igalia.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
05f9c34ad0
commit
d2f45dea4c
@@ -146,8 +146,9 @@ endef
|
|||||||
# Create icon-theme.cache for each of the icon directories/themes
|
# Create icon-theme.cache for each of the icon directories/themes
|
||||||
# It's not strictly necessary but speeds up lookups
|
# It's not strictly necessary but speeds up lookups
|
||||||
define LIBGTK3_UPDATE_ICON_CACHE
|
define LIBGTK3_UPDATE_ICON_CACHE
|
||||||
find $(TARGET_DIR)/usr/share/icons -maxdepth 1 -mindepth 1 -type d \
|
[ ! -d $(TARGET_DIR)/usr/share/icons ] || \
|
||||||
-exec $(HOST_DIR)/bin/gtk-update-icon-cache {} \;
|
find $(TARGET_DIR)/usr/share/icons -maxdepth 1 -mindepth 1 -type d \
|
||||||
|
-exec $(HOST_DIR)/bin/gtk-update-icon-cache {} \;
|
||||||
endef
|
endef
|
||||||
LIBGTK3_TARGET_FINALIZE_HOOKS += LIBGTK3_UPDATE_ICON_CACHE
|
LIBGTK3_TARGET_FINALIZE_HOOKS += LIBGTK3_UPDATE_ICON_CACHE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user