[Buildroot] [PATCH 04/19] infra/pkg-generic: use \0 to separate .la files as they are found
Yann E. MORIN
yann.morin.1998 at free.fr
Mon Jan 7 22:05:26 UTC 2019
Just in case some package is wild enough to install a .la file with a
space in its name (or worse, a \n).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/pkg-generic.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 1b8febe8c5..eb41f97241 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -294,7 +294,8 @@ $(BUILD_DIR)/%/.stamp_staging_installed:
$(addprefix $(STAGING_DIR)/usr/bin/,$($(PKG)_CONFIG_SCRIPTS)) ;\
fi
@$(call MESSAGE,"Fixing libtool files")
- $(Q)find $(STAGING_DIR)/usr/lib* -name "*.la" | xargs --no-run-if-empty \
+ $(Q)find $(STAGING_DIR)/usr/lib* -name "*.la" -print0 \
+ | xargs -0 --no-run-if-empty \
$(SED) "s:$(BASE_DIR):@BASE_DIR@:g" \
-e "s:$(STAGING_DIR):@STAGING_DIR@:g" \
$(if $(TOOLCHAIN_EXTERNAL_INSTALL_DIR),\
--
2.14.1
More information about the buildroot
mailing list