[Buildroot] [PATCH] strace: don't remove strace-graph unconditionally

Baruch Siach baruch at tkos.co.il
Tue Nov 27 10:16:56 UTC 2018

strace-graph is a perl script. This script is removed unconditionally
since commit 720c0ca5ba7 ("strace: convert to makefile.autotools.in
format") from 2008. Since then Buildroot added support for perl on
target. Don't remove strace-graph when perl is built for target.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
 package/strace/strace.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/strace/strace.mk b/package/strace/strace.mk
index 471dbc2e1dd3..10869453d146 100644
--- a/package/strace/strace.mk
+++ b/package/strace/strace.mk
@@ -38,6 +38,8 @@ define STRACE_REMOVE_STRACE_GRAPH
 	rm -f $(TARGET_DIR)/usr/bin/strace-graph
+ifeq ($(BR2_PACKAGE_PERL),)
 $(eval $(autotools-package))

More information about the buildroot mailing list