Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B9DA6E008F1; Tue, 22 Mar 2016 08:59:05 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 80727E00443 for ; Tue, 22 Mar 2016 08:56:15 -0700 (PDT) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u2MFuDtM002286 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 22 Mar 2016 08:56:13 -0700 (PDT) Received: from ord-dlerner-d8.wrs.com (172.25.44.108) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.248.2; Tue, 22 Mar 2016 08:56:12 -0700 From: Dave Lerner To: , , Date: Tue, 22 Mar 2016 10:56:05 -0500 Message-ID: <1458662168-25882-1-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [V3 review-request] show and delete recursive list of reverse dependencies X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2016 15:59:05 -0000 Content-Type: text/plain Target Branch: toaster-next master Contrib Branch: poky-contrib/dlerner/9121-delete-dependent-package-tree Defect: 9121 Summary: show and delete recursive list of reverse dependencies Comment ------- Version 3: Shorter sanity tests run here. This version 3 is only a rebase against toaster-next. No patches were changed. Commit ------ aa742e6 toaster: get all dependents for pkg for removal 1c86b2b toaster: new customise package-remove modal dlg 6cff5de toaster: show full list of dependents to remove .../toaster/toastergui/static/js/customrecipe.js | 72 +++++++++++++++-- .../toaster/toastergui/templates/customrecipe.html | 5 +- bitbake/lib/toaster/toastergui/views.py | 91 +++++++++++++++++++--- 3 files changed, 148 insertions(+), 20 deletions(-) SETUP: ----- Start toaster with empty build directory, sstate-cache Create a new project, 'myproject' Build core-image-sato CASE Remove reverse dependency package that was part of original base image ------------------------------------------------------------------ Create new custom image on core-image-sato, named mysato Remove libcrypto Verify that "39 packages will be removed" are reported and that the packages are unique and in alpha order [V3] Verify that the notification shows "You have removed libcrypto and its 39 reverse dependencies: gst-player-bin, gstreamer1.0-plugins-bad-dtls, gstreamer1.0-plugins-bad-meta, gstreamer1.0-plugins-bad-opengl, libegl-mesa and 34 more" CASE Test no interference removing from a 2nd custom image in project ---------------------------------------------------------------------- New custom-image based on core-image-sato 'myminimal' Build it Add atk which is dependant on glib-2.0, libffi, libpcre (bash appears but this is busybox system, so don't think that dependency will apply - maybe bug unrelated to this work). Build myminimal again. Verify that atk, libffi, libpcre, glib-2.0 have files in the file system For custom image myminimal, enter libpcre, remove package Verify modal dlg notes libpcre atk and glib-2.0 will be removed Remove Verify that banner shows "You have removed 3 packages form myminimal: libpcre and its 2 reverse depenencies: atk, glib-2.0" Build Verify atk, glib2.0 and libpcre are removed.