shared-mime-info: run update-mime-database with correct env variables
When installing shared-mime-info on the target, we runn update-mime-database, which has been built previously by building and installing shared-mime-info for the host. However, for update-mime-database (host version) to run properly, we must pass the appropriate LD_LIBRARY_PATH variable. We re-use the existing $(HOST_MAKE_ENV) variable to pass all the appropriate variables. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
1844bd8941
commit
253f240cc5
@ -29,6 +29,6 @@ SHARED_MIME_INFO_HOST_BINARY:=$(HOST_DIR)/usr/bin/update-mime-database
|
||||
|
||||
# update the shared-mime-info database in the target
|
||||
$(SHARED_MIME_INFO_HOOK_POST_INSTALL): host-shared-mime-info
|
||||
$(SHARED_MIME_INFO_HOST_BINARY) $(STAGING_DIR)/usr/share/mime
|
||||
$(HOST_MAKE_ENV) $(SHARED_MIME_INFO_HOST_BINARY) $(STAGING_DIR)/usr/share/mime
|
||||
$(INSTALL) -D $(STAGING_DIR)/usr/share/mime/mime.cache $(TARGET_DIR)/usr/share/mime/mime.cache
|
||||
touch $@
|
||||
|
Loading…
Reference in New Issue
Block a user