mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 20:26:34 +00:00
package/libglib2: remove bindir prefix from gio-2.0.pc
Apply LIBGLIB2_REMOVE_BINDIR_PREFIX_FROM_PC_FILE to gio-2.0.pc so ${bindir} prefix is also removed for gbus-codegen otherwise build of packages using this binary will fail if gbus-codegen is not installed on host Fixes: - http://autobuild.buildroot.org/results/5c0e4f3d33e01198688d58388aabe159bd005234 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
bb7065fbf9
commit
739c581663
@ -85,13 +85,14 @@ endef
|
|||||||
|
|
||||||
LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES
|
LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES
|
||||||
|
|
||||||
# Newer versions of libglib2 prefix glib-genmarshal, gobject-query, and
|
# Newer versions of libglib2 prefix glib-genmarshal, gobject-query,
|
||||||
# glib-mkenums with ${bindir}. Unfortunately, this will resolve to the host
|
# glib-mkenums, glib_compile_schemas, glib_compile_resources and gdbus-codegen
|
||||||
# systems /bin/ directory, which will cause compilation issues if the host does
|
# with ${bindir}. Unfortunately, this will resolve to the host systems /bin/
|
||||||
# not have these programs. By removing the ${bindir}/ prefix, these programs
|
# directory, which will cause compilation issues if the host does not have these
|
||||||
# are resolved in PATH instead.
|
# programs. By removing the ${bindir}/ prefix, these programs are resolved in
|
||||||
|
# PATH instead.
|
||||||
define LIBGLIB2_REMOVE_BINDIR_PREFIX_FROM_PC_FILE
|
define LIBGLIB2_REMOVE_BINDIR_PREFIX_FROM_PC_FILE
|
||||||
$(SED) 's%$${bindir}/%%g' $(STAGING_DIR)/usr/lib/pkgconfig/glib-2.0.pc
|
$(SED) 's%$${bindir}/%%g' $(addprefix $(STAGING_DIR)/usr/lib/pkgconfig/, glib-2.0.pc gio-2.0.pc)
|
||||||
endef
|
endef
|
||||||
LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_BINDIR_PREFIX_FROM_PC_FILE
|
LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_BINDIR_PREFIX_FROM_PC_FILE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user