From e34dc8bb226f478de0c4c387a43595df4436c528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 28 Aug 2020 01:21:22 +0200 Subject: [PATCH] Delete whole paths for lv2 plugins that did fail creating final ttl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are plugins part of collections that fail on target postinst so manifest.ttl is not created (cross and on-target failed - there is nothing left we can do). That causes warnings: an lv2 path without manifest: tse tse. Shut these up by deleting whole path on target - right - binaries without manifest.ttk are useless blobs. Signed-off-by: Andreas Müller --- classes/lv2-turtle-helper.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/classes/lv2-turtle-helper.bbclass b/classes/lv2-turtle-helper.bbclass index de69893..78b6167 100644 --- a/classes/lv2-turtle-helper.bbclass +++ b/classes/lv2-turtle-helper.bbclass @@ -121,8 +121,13 @@ pkg_postinst_ontarget_${PN_LV2}() { if [ -e ${LV2_POSTINST_MANIFEST} ]; then oldpath=`pwd` for sofile in `cat ${LV2_POSTINST_MANIFEST}`; do - cd `dirname "$sofile"` - lv2-ttl-generator "$sofile" || echo "Error: Turtle files for $sofile could not be created!" + lv2_path=`dirname "$sofile"` + cd "$lv2_path" + if ! lv2-ttl-generator "$sofile"; then + echo "Error: Turtle files for $sofile could not be created - remove $lv2_path!" + cd .. + rm -rf "$lv2_path" + fi done cd $oldpath fi