Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BE296E0090A; Tue, 19 Jan 2016 01:37:56 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 795B2E008F1 for ; Tue, 19 Jan 2016 01:37:51 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 19 Jan 2016 01:37:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,316,1449561600"; d="scan'208";a="730086038" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by orsmga003.jf.intel.com with ESMTP; 19 Jan 2016 01:37:50 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.22]) by IRSMSX103.ger.corp.intel.com ([169.254.3.143]) with mapi id 14.03.0248.002; Tue, 19 Jan 2016 09:37:48 +0000 From: "Barros Pena, Belen" To: Brian Avery Thread-Topic: [Toaster] Image customisation - Removing packages with dependencies Thread-Index: AQHRSVDIUMC+i3orP0eGgq4HZFTfk58BwXiAgAD2xAA= Date: Tue, 19 Jan 2016 09:37:47 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.0.151221 x-originating-ip: [10.252.11.55] MIME-Version: 1.0 Cc: "Eggleton, Paul" , "toaster@yoctoproject.org" Subject: Re: Image customisation - Removing packages with 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, 19 Jan 2016 09:37:56 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable Hi Brian, Thanks for looking at those dialogs. It really helps. A couple of questions / commments inline. On 18/01/2016 20:54, "Brian Avery" wrote: >I would like to do number 1. We could add it as a bug for 2.1; we >have enough information to enable it. Following the list by hand and >then realizing I forgot to remove one of them and therefore >alsa-server gets installed anyway is an irritation I don't think we >should inflict. > >number 2 is quite a bit harder. For number 2 it is more likely what >we walk the list and show at the top level which packages no longer >have dependencies. The way you present it number 2 makes sense if >glibc were installed/required only by alsa-conf-base but generally >they are pulled in by more than one package That's the thing: they would only show up in that dialog when they are pulled in only by the package you are removing. If any other package is bringing them in, they woudn't show up. >and keeping track of that is not helpful. >However, just showing that the following packages were >brought in as a dependency and nothing requires them anymore should be >doable. Right, if I understand correctly, you are suggesting we use the package list to present this kind of "orphan" packages. Is that the case? > >Linux does something like this: >" >The following package was automatically installed and is no longer >required: > > libmpdec2 >" We could provide a similar message, I guess, in the reverse dependencies column when applicable. Would that work? Cheers, Bel=E9n > >-b > >On Thu, Jan 7, 2016 at 5:39 AM, Barros Pena, Belen > wrote: >> While discussing some of our issues with image customisation in >>Toaster, I >> realised the designs for removing packages with dependencies are >> incomplete. >> >> Removing a package can result in 2 different situations: >> >> 1. The package you are removing is required by other packages in your >>image >> >> 2. The package you are removing generates orphan packages (packages that >> are no longer required since they were only added to satisfy the >> dependencies of the package you are removing) >> >> Ideally, Toaster would handle both situations. In both cases, we would >> show a message to the user with some options. >> >> For 1, the message would show you the list of packages that are required >> by the package you are removing, and would give you the option to remove >> them all, or cancel the removal (see attached 1.png). >> >> For 2, the message would show you the list of orphan dependencies, and >> give you the option to choose which ones you'd like to remove and which >> ones you'd like to keep (see attached 2.png). >> >> I understand if we cannot do number 2 in version 1 of image >>customisation, >> but what about number 1? Any comments / feedback on the dialogs? Am I >> missing any other cases that can come up when removing packages? >> >> Thanks! >> >> Bel=E9n >> >> >> >> -- >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/toaster >>