From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6795913180905209856 X-Received: by 2002:a17:903:248:b0:172:7520:db04 with SMTP id j8-20020a170903024800b001727520db04mr2532511plh.99.1663838828027; Thu, 22 Sep 2022 02:27:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:4fa2:b0:203:1bc0:23b0 with SMTP id q31-20020a17090a4fa200b002031bc023b0ls1152430pjh.0.-pod-canary-gmail; Thu, 22 Sep 2022 02:27:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4RYZD79Y/hEjCw+5JXUauKWjjOWEATIQmnT4qbbdFb0UVBScYihTku9JBmFTMShUupp/hS X-Received: by 2002:a17:903:2290:b0:178:48b6:f57c with SMTP id b16-20020a170903229000b0017848b6f57cmr2422185plh.78.1663838827218; Thu, 22 Sep 2022 02:27:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663838827; cv=pass; d=google.com; s=arc-20160816; b=Rox5MPrcS/MMLDydPXRepIlLZMCPDyeJWzKymgtapw41nlKKrB0NUsy4L7JCaW4ksC HAOPnRtD7Y/RNgmZ7EHDNsl+E3cA+7p5CIzzg15Pkmjb8tBnp9fJ7nC6f06CptB81OZr VLj6zdcrbZYTrCbhw6XiJUJjaFHlCkKaaLj2vQIeiUhIhrDztzxRI5YvCuT68nV0YcE/ 7ycEgVbXXnhxAklKuRPi+Q6BQRpm6VzbdMTiOnsmJiJMEh0oMXjbtm13crkRNGSBpA6l 62knBcx6aXVrcC7lJ4t0aFY9plE+sciJkFr0wa+dpx4Atrjp6VqeVt3uFBesD9dlXXaZ fexw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=/QIpRWPzWW5W+wfpLGrI3k0UrivodSxs1HU/ry8oMlU=; b=PSuHSJm/y58HP2Ds9Z1Wv9fTjQbwCCGCbP/P9Rf/sB9fHAvNbZWda0ZR5R3tui1O/U I0ETKSpLdV3QGLNrV7UxOx8udEGXO6hNh8XMEZRoGwvULNKXQ3750MYdLQM49YiSReXs 1lLqZPoav3u+DMyU/j5pfY/L/fB4yWt6B3uaeU6x6zBNPtGSwtnl9Imf5MR8Q27uR3i5 ZSB5KxcnVUUfC/ePbLXd4n9hyq+wJ22b0WUR+fPtl6MbqXkDc6xGdG5lSoL2VaEyuguB +VS77Ag+R7hq8xBqhOlRC28+GtrV04meLw2PatosZp3OebgtqpjeSIbgd1J2HCOqOqk6 urXg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="Ev3Awp/g"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of henning.schild@siemens.com designates 40.107.6.71 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 EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60071.outbound.protection.outlook.com. [40.107.6.71]) by gmr-mx.google.com with ESMTPS id u187-20020a6379c4000000b0042ba5b4bd9asi213781pgc.2.2022.09.22.02.27.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2022 02:27:07 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 40.107.6.71 as permitted sender) client-ip=40.107.6.71; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="Ev3Awp/g"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of henning.schild@siemens.com designates 40.107.6.71 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XKcrQcMzcMwt4SdEgBqt3NFzbZ7w5V/z2P11ZgNSMeOKqe2BB3IeEuXqs4CeosM/CPeIxFmoBtV32DT8shNLZFC0hcbFG98YI79iKJyvkTUlgXyp/Yw8xvc/9RcRQh+gIL2ixjdzWXqoO5oiWwp//QY96kWu+Mp71I9o8VT1sgMLTLnRtuKX4XAyc4Er7/xfmnk40s9DIuno38jjB7112Ni+C4CWzaeNOQrxBIpIbXofX4WXgVDP/2dNQ1A9SuxAPC75SLwf0TLFrMVnb4flA5hV3Ze+yTASBw4r8gyoSj5geZeadfDgtMQyFLzEygM6E9aLkEmQs8Og85UL1NmqRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/QIpRWPzWW5W+wfpLGrI3k0UrivodSxs1HU/ry8oMlU=; b=SNQ35FzkPVqBlTEWu3JC1c7inmJe3uOV+LszGKpOVphar5QHNyBUBxSTlRP5qpkw7H0g/W3Xn6jAE5YMxf/1845kZg9rR7MP1C2rqFgKWhQsfNnwbWE5N+f/R+MRzivCOVBEgUrOeOlPbKMiSpSgiq69qNFow/u7qB6SiTzBxvHIKUu44DTtkpI5SNIWOra9mY4+vS/7vpt8GVwHLRT3LNcdWvngwFhgLbego6sGANLhIXGKHsyGNSrdgyzg/XG60DbIDbvGOa2krVHHB8No1FoDP7fIEG+6i5JHyR48LAd+/AvZ+VagN8sxrxkcP3UxZN8aJ+50advZhDSAGLasfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/QIpRWPzWW5W+wfpLGrI3k0UrivodSxs1HU/ry8oMlU=; b=Ev3Awp/gG2Tgi2tioukz6HDp7vZad809foS7jMiVbl59nT+YXG7V/XFBbbNE6g2e06u4rtswFyqZ1B8GVyB69CtlruZDqqqiw6G3+egrcnKixsTFsS1bzyN4V3B1oP8Eoa+n4UnHZ9MO0o3iYvFPvq1OOLAMyH69fCXa9eiHlMfOwqFLVQ47cVKYBNsBMgG/i9emI+4x8LC3tT7irSmyozzVptppgViKx1FQeDb0H9T++DJ0inJbaLTiQd4QeF/YHLWpNClnQtncyRbePcx8Li4J+Wuu39ANoVWcWPFI75tFQRi5wUhJ++U7fSe4Ncnq3OKw89MSlATZ5ijHzaPyXg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:269::8) by GV1PR10MB6419.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:8a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Thu, 22 Sep 2022 09:27:04 +0000 Received: from PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM ([fe80::e4a0:49e4:2152:11b1]) by PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM ([fe80::e4a0:49e4:2152:11b1%5]) with mapi id 15.20.5632.021; Thu, 22 Sep 2022 09:27:04 +0000 Date: Thu, 22 Sep 2022 11:26:58 +0200 From: Henning Schild To: "'Balasubramanian Sundaram' via isar-users" Cc: Balasubramanian Sundaram Subject: Re: [RFC 0/2] Remove Packages during Postprocessing Message-ID: <20220922112658.2113d2a7@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 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AS8PR04CA0087.eurprd04.prod.outlook.com (2603:10a6:20b:313::32) To PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:269::8) Return-Path: henning.schild@siemens.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR10MB5780:EE_|GV1PR10MB6419:EE_ X-MS-Office365-Filtering-Correlation-Id: 67f50ad7-a120-4595-456d-08da9c7c9cd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K8gIrRRutxaL7Wo5tCHl8YhdovIMq2/xIyVXvZ3v62A3F4BrxA3gqYOGpE6HZ/9AojUqeKiv6/Or+k+3d6lIfVqaQUjOtWOV30ls1kZfZQuCM+dm3GCfAnZo6mpKJHlpL162eMt7rrawH7f7NbnGKWMO8nisTGoPtIS74+x6iJ0keSz6H7V7iFjRPs0EHNUBU4FcqculeEHOpBeVKw71mp23V3Tgoj3g1E+BN0LkJDFXx4DaSdblPVLTt8KF8n6scHJlgDnUucmsK1dAtoQXYR9NReabRn13UF7tUBhnrwA3WtLJhMZ4+hRU3OTmeVFNFSWgYbrYYnA8Cax0PYFe+M9LUrxMFV9huTC7c/dF336IxfCAChRa52KcxJAzN9xXVfmr6EqgkIr5tJGcG7CI9ruSXY9C2vp59R9aXXd+j+RSvTY3IFv1JXCG5TEkoUwnEsgypdsvIhJDheLz6nbEifIFWotWAYggELNDrdbS7gX7BiITnS65CVKqtAlww1QZb2l+yJp4INfHZZFqvuOLSsE5/6ZscKoAyBBu2ER190ETEPT3PCp2RzehTIlGp0iezjLDKQVj9kgpf02HzBNC10vA70QYmxTYSmSWgxnZUoLg2yDaFLNGvmOMaQat8O1e8b0TPbMt1MIcwYtqkLmyTUR+SZdMRq83D13glKbska2xk9WVB43uZO0GW9U4CNtgbHjkmj+509vjQzp3YWZdQrkYpiIX3XxlIWyMBduY7oECroMukekqOdGXqM2ft2ZbrM5j53ipP5zL939WJx2HVw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(396003)(39860400002)(366004)(451199015)(8676002)(5660300002)(82960400001)(38100700002)(53546011)(44832011)(6666004)(966005)(86362001)(6486002)(6506007)(15974865002)(478600001)(83380400001)(9686003)(8936002)(4326008)(41300700001)(186003)(2906002)(6512007)(6916009)(66946007)(316002)(66556008)(1076003)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?UXWObGrEnw7iex+wlWMnoXEFUB5S+gUJlcSSkG2ue/3vXZeandfQwxme7kaJ?= =?us-ascii?Q?+riOoFxeLGhs7DUgOBko3eu4OZtoUB3Sl0M+GAf8mi9dP+5jfYJ7shrr/QB3?= =?us-ascii?Q?ni3lhCeBOfyjsd3qPyfF2QDIWbqknRxdF1pJqlMVfaBgpYPStFY2hxvFZX5o?= =?us-ascii?Q?GZ0WFcQ49yNSapcGoGYr7m4F0dPsBZeyb6J7nN14CUlbow48w4auJ6nIALhN?= =?us-ascii?Q?feZj/JLHf9x39xj0q5mVq9pcX9SG4ZsUFKRFPjNQNyURzHbJFMXt6Utk7HsW?= =?us-ascii?Q?qZOFzh8yLrz8CHJ9A3erGg4BprYeeX2WFVUZuwFs4OfIQqp8onFKRpxRHmMD?= =?us-ascii?Q?TuBX9U5hoVwutRASQOMaEGJ/TzeHvg9+0LpGHW7BHums323bUPHpKXS2QWka?= =?us-ascii?Q?eYhghFDhvt6yCCu+wwCO+e1BL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q?feJMzqNmwriYU3pvemZhHCVsWQDZRTm7eRW2hjwgOXHQKdMAzE3J/wBAoLh3?= =?us-ascii?Q?kiYDduJpUpbCDae0m/gAaklt8ubg//o3I0/IHkbFpoZW0m7XNJrW7BqnmOn2?= =?us-ascii?Q?9yvFBtlTC++KJ3ObqpN5vZIUp3E5AsIbZlpfvQ8zhxUnXg6GNDVknTTUhzil?= =?us-ascii?Q?exRDz3JJJvmAFfBYNb0dXNWNRzk9FyBTvkVQH66pSn8SVlwH2cklb0kYin1e?= =?us-ascii?Q?9tXkJzYQpDQy74248OwLXIATK5+HyvTn3GT7qzbWGw6ZpJfC/58cOcHE+NPS?= =?us-ascii?Q?n4EM48jRpTVBXDkBy3YB+5nHjhXHWOM+sKJ6SkejiAIwuoNpA3b+NXD1BHJJ?= =?us-ascii?Q?ScYvcw=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67f50ad7-a120-4595-456d-08da9c7c9cd8 X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2022 09:27:04.8737 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eI0hrtliu6nT2gdUq6zdo5ZiVfycTK+y9+wWPHSokxreMh43aWTVmGKC72nlPSk0e4onjqo9ul7XD+gc6OEgJg9V5rUgAhaF9y2yGBUhrLE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR10MB6419 X-TUID: vblD+6lUq3ti Hi Sundaram, Am Wed, 21 Sep 2022 22:55:07 -0700 (PDT) schrieb "'Balasubramanian Sundaram' via isar-users" : > Hi Team, > > Iam using ISAR build system for imx6 nxp based processor, I need to > remove some user binaries like perl, shared-mime-info,libx11-6, > can you please provide steps or which file i need to change to remove > these binaries in the final .wic.image If the binaries are in the rootfs they are coming in as runtime dependency of something. Or maybe the packages have been explicitly installed by accident. Removing rdeps is risky, you never know what you might break. So you should think _really_ _really_ carefully about the reasons to remove things. Question those reasons several times. Weird legal or security reasons are better resolved in other ways. Even if one "firmware" works with forcefully removed rdeps, the next version might break in funny ways ... or you see the breakage in the field, on a code-path never seen during testing. If it is about size i would advise to rather choose a board with bigger mass storage, a product released today where the firmware barely fits ... is not going to live too long and the hacks will get worse over the years. Maybe try some sort of filesystem compression instead. So now that we are clear that it would be a really bad idea ... You best bet might be to give the patches a try. And give feedback on how well they worked for you ... or not. Should you be using kas, it is easy to apply patches to isar and describe all that in a kas-file in your layer. regards, Henning > Thanks & Regards > > On Tuesday, February 25, 2020 at 11:13:57 AM UTC+5:30 Gylstorff > Quirin wrote: > > > > > > > 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 want to collect the option of community regarding this patch. > > > > 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(-) > > >> > > > > > > > -- > > Quirin Gylstorff > > > > Siemens AG > > Corporate Technology > > Research in Digitalization and Automation > > Smart Embedded Systems > > CT RDA IOT SES-DE > > Otto-Hahn-Ring 6 > > 81739 Muenchen, Germany > > Mobile: +49 173 3746683 <+49%20173%203746683> > > mailto:quirin.g...@siemens.com > > www.siemens.com/ingenuityforlife > > > > Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim > > Hagemann Snabe; Managing Board: Joe Kaeser, Chairman, President and > > Chief Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, > > Cedrik Neike, Michael Sen, Ralf P. Thomas; Registered offices: > > Berlin and Munich, Germany; Commercial registries: Berlin > > Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE > > 23691322 > > > > Important notice: This e-mail and any attachment thereof contain > > corporate proprietary information. If you have received it by > > mistake, please notify us immediately by reply e-mail and delete > > this e-mail and its attachments from your system. Thank you. > > >