Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 27DD8E00C39; Thu, 17 Mar 2016 15:07:58 -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 EB5F2E00C2D for ; Thu, 17 Mar 2016 15:07:54 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u2HM7rhe024987 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 17 Mar 2016 15:07:53 -0700 (PDT) Received: from ord-dlerner-d8.wrs.com (172.25.44.108) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Thu, 17 Mar 2016 15:07:52 -0700 From: Dave Lerner To: , , Date: Thu, 17 Mar 2016 17:01:57 -0500 Message-ID: <1458252120-9678-1-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [V2 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: Thu, 17 Mar 2016 22:07:58 -0000 Content-Type: text/plain Target Branch: toaster-next master Contrib Branch: poky-contrib/dlerner/9121-delete-dependant-package-tree Defect: 9121 Summary: Show and delete recurive list of reverse dependencies Comment: Version 2 patch set per comments from Belen and Elliot. Only 1/3 and 3/3 patches are changed, but 2/3 is included. Commit ------ c801079 toaster: get all dependants for pkg for removal 327ada3 toaster: new customise package-remove modal dlg 7542b8a toaster: show full list of dependants 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(-) Test Cases: [V2] denotes additional test for version 2, changes per Belen's comments. SETUP: ----- Start toaster with empty build directory, sstate-cache Create a new project, 'myproject' Build core-image-sato CASE Remove dependant 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 [V2] 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" Build mysato Click on the All Builds mysato: Verify Images : Packages included field shows 40 packages less than if you look at All Builds | core-image-sato (eg 567 vs 607) CASE Add back a root dependency (Issue sent in email Mar9) ---------------------------------------------------------- Open custom image mysato Add libcrypto back Build Click All Projects | Custom Images | mysato Verify libcrypto 'looks' added: that the entry shows "remove package" 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 Build Verify atk, glib2.0 and libpcre are removed. CASE Test button notifications and banner on removal for package w/ dependants ------------------------------------------------------------------------------ To minimal, add openssl-staticdev which indirectly will bring in libssl Build Verify that libssl, openssl, openssl-dev are added On minimal, enter "openssl" to see a set of matching packages. REmove libssl Verify modal dialog reports both the direct and indirect dependants openssl, openssl-dev, and openssl-staticdev, will be removed. Click Remove all Verify the buttons for openssl (an others that you see on screen) report: "4 packages removed" Verify that the banner says: "You have removed 4 packages from minimal: libssl and it's 3 dependantso Verify that buttons transition to Add Package. [V2] CASE Remove package that has only has 1 dependant ------------------------------------------------------ To minimal, add back openssl-staticdev Build Select openssl-dev and remove the package. Verify that syntax for 1 rev-dep is appropriate on modal dlg. Remove the 2 packages Verify that syntax for 1 reverse dependency on main page notifiation.