From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6795913180905209856 X-Received: by 2002:a05:6402:603:: with SMTP id n3mr52492260edv.257.1582636209924; Tue, 25 Feb 2020 05:10:09 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:907:405c:: with SMTP id ns20ls5491775ejb.3.gmail; Tue, 25 Feb 2020 05:10:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxuN2BNMxuzGPR3TImMhf8ioATrf0bKkmKV0u0fXSOEQ2WpQJ/fZ+f49fV/8PvpASDIrK8B X-Received: by 2002:a17:906:a281:: with SMTP id i1mr53690587ejz.310.1582636209124; Tue, 25 Feb 2020 05:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582636209; cv=none; d=google.com; s=arc-20160816; b=zVO2NbUvG3GyyZWYJz+Tw3yxvoIae+fISAZHOrXHLTBcWgKL0Nto9ok1lHb9lRIpZt wuVugeWKTUkeMPwuECUD34bJe/c2QSV6Ep67Unr6NzlvkKseO8AsygFIcLCC1YUAZx97 gAYZadunoTFLNEWLY5mv7no6K/CeL2pKZwsq+cH6zY3iBRHu0E9EvOxmj0mzOmqKH2+Q yzxRxYToFEHHa88Abnpyoxv4TljduvSJIszQrSus3W74JYd9cn5aWt5epRi8dsPMk+CD S7qwtA5GSBimAL/1UyHSN/ZCjVNN3lZQPir4CHi+LskhY2h8mOScxkuiQIeJ4sbWAUzU 9O5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=hwyjnaQF2Iblx2O5wkIeHNjgxI34Ycvya3U3giy7DZg=; b=qF4V/RajQF3/7djdneYiaRZvev3KCciE/3iMZhdZ/868IxZE/rOj9FRDC4pAoo3n0F LwU8nTgtdfvCZ+Qia5ousSaAcw9lXPc+InEd/K4ggkRm2shpKwFmrgc3mHhMm6iSjo5s snS+E1ZVD7EDU4SVjzpVP17yYt7yjuugepxGB3Q/X0tKjFfvHMSaj7YJ1OZ3URgr86/l hGlX99t6snpKfpa5l2WQ2fwDXUBzhdA8Z84MFyIzDyQdjBxQ+SA8bLzN9d5DtwLiLzz8 UMgk+v/BAz4jqb4RCuahDPVBNyFOa7rQVjGGSgS/ZnehRNMcZlcbhyMmPZ01c3F/+0hV 4F7w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id s16si1434894edy.3.2020.02.25.05.10.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Feb 2020 05:10:09 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 01PDA8uc018598 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 25 Feb 2020 14:10:08 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.100]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 01PDA7RQ020401; Tue, 25 Feb 2020 14:10:08 +0100 Date: Tue, 25 Feb 2020 14:10:06 +0100 From: Henning Schild To: Gylstorff Quirin Cc: , Subject: Re: [RFC 0/2] Remove Packages during Postprocessing Message-ID: <20200225141006.452e4b64@md1za8fc.ad001.siemens.net> In-Reply-To: References: <20200221145348.24250-1-Quirin.Gylstorff@siemens.com> <20200224152416.2aab3ec9@md1za8fc.ad001.siemens.net> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: cLFgAHZjjRhf Am Tue, 25 Feb 2020 06:43:55 +0100 schrieb Gylstorff Quirin : > On 2/24/20 3:24 PM, Henning Schild wrote: > > Hi, > > > > my opinion on that is clear. Fix it upstream or live with those > > packages. You are either on a distro or fiddle around and tune > > everything until you are the only one on the planet testing your > > setup. That is Isar vs. yocto ... whoever thinks they _need_ that > > should maybe think again. If they need it they can put it into > > their own layer or use yocto ;). > > I do not think upstream should carry such hacky features unless we > > get better reasoning ... Removing "required" packages has the > > potential to break your image in funny ways ... that is much more > > expensive than a few MB disc space. All affected packages are > > likely already cleared and vulnerabilty monitored by someone else, > > find that someone and share the cost! > > > > Henning > > Hi Henning, > > I understand your concern and I think you are right. But some people > already hack the build process in similar ways and this is a way to > give them some support. I guess it might be a good idea to tell those hackers to comment here or share their reasons with you. My guess is that their need is questionable and they did not fully understand the consequences. It should probably be discarded as premature optimization and removed from the downstream layer, instead of added upstream. Even if they carefully looked at the consequences for the packages they remove, a generic upstream feature would ease the hack for people less careful. > I want to collect the option of community regarding this patch. Sure. Henning > Quirin > > > > > On Fri, 21 Feb 2020 15:53:46 +0100 > > "Q. Gylstorff" wrote: > > > >> From: Quirin Gylstorff > >> > >> Some packages even if the are part of minbase are not necessary > >> to run a debian system. Debian has some issues and experiments > >> to remove packages from minbase [1]. This feature allows a > >> expert user to remove packages from the final image during post > >> processing. > >> > >> The reason for this are e.g. disk usage reduction and reduction > >> of the clearing effort. > >> > >> The method to remove packages in postprocessing is a best-effort > >> action. > >> > >> Another way would be to identify like [1] packages in > >> minbase which can be removed without compremising the isar rootfs > >> creation and remove them directly after or during bootstrapping. > >> If a package is used for a production related feature it should be > >> reinstalled. > >> > >> > >> [1]: https://wiki.debian.org/BusterPriorityRequalification > >> > >> Quirin Gylstorff (2): > >> meta/classes: Add remove packages to rootfs postprocessing > >> meta-isar/images: Remove gcc-8-base from rootfs > >> > >> meta-isar/recipes-core/images/isar-image-base.bb | 4 ++++ > >> meta/classes/image.bbclass | 2 +- > >> meta/classes/rootfs.bbclass | 13 > >> +++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) > >> > > >