From: Yann E. MORIN Date: Sun, 6 Oct 2019 15:10:21 +0000 (+0200) Subject: package/pkg-meson.mk: simplify sed-expression to add to [binaries] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84470cba7eac05845a29b76d06d749f8c8c33acd;p=buildroot.git package/pkg-meson.mk: simplify sed-expression to add to [binaries] There is no need to memorise the matched pattern; it's a left-over from a previous attempt. However, ensure the pattern is correctly anchored to the beginning and end of the line, to avoid accidentally matching it anywhere else (e,g, in a comment). Signed-off-by: Yann E. MORIN Cc: Eric Le Bihan Cc: Peter Seiderer Cc: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni --- diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk index f5c7b8ced3..184a22a44a 100644 --- a/package/pkg-meson.mk +++ b/package/pkg-meson.mk @@ -80,7 +80,7 @@ define $(2)_CONFIGURE_CMDS -e "s%@TARGET_CXXFLAGS@%$$($(2)_MESON_SED_CXXFLAGS)%g" \ -e "s%@HOST_DIR@%$$(HOST_DIR)%g" \ $$(foreach x,$$($(2)_MESON_EXTRA_BINARIES), \ - -e "/\(\[binaries\]\)/s:$$$$:\n$$(x):" \ + -e "/^\[binaries\]$$$$/s:$$$$:\n$$(x):" \ ) \ package/meson/cross-compilation.conf.in \ > $$($$(PKG)_SRCDIR)/build/cross-compilation.conf