From patchwork Wed Jul 17 14:34:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 46554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3626EC3DA42 for ; Wed, 17 Jul 2024 14:34:56 +0000 (UTC) Received: from DU2PR03CU002.outbound.protection.outlook.com (DU2PR03CU002.outbound.protection.outlook.com [52.101.66.3]) by mx.groups.io with SMTP id smtpd.web11.38.1721226893130412399 for ; Wed, 17 Jul 2024 07:34:53 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=YFXoPd9Y; spf=pass (domain: axis.com, ip: 52.101.66.3, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xOUhqZJhXIXbcJ9W3mfua7UxE/VjiFTUJ5rRldz1PsYyQSqgN/lMmHDpqhRVx2rJ3vIBgJLJYYaT7x35mhupJafOTvuadGA33QMlODBXSe2TSIkuhkIYy9RzA9hwb+MIX0M3UbyQNHOIq6JqID0Uypk74L2+5mbR+nsVgxba6kyNg0VXH4I63Vu2LCxswV7Yb9bNyIcLFIHxaWZkBVfwkgo+96BsAkE0x+6LmhKj0V2zYU8gyDQVOvDSQjQ/j85E6X0v88QEF3lAyLDcI3gVqUBSVsV8MkmRjEbNXUTouabveme9tz979ICO1moRPaNB5FOAyul6nACgnsEvOcQykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Qsajq9/jZGSRhaIRYCw0C96AsaYUKnbycGzvadblnlM=; b=tO//pRmHxD6oJC9UoRYay/XHV1jfz/bsCDSF/52G8STNSkmxx+TvjCAEg+a/xd71Vnebhamc9R8HrNvSZcBNzGMZjIErKADsTw3PAbuQM1w1TYnOuBPEsk7+FTjmoySbg88S2Cdegn/FSghFmg8Ox2pBMo+X0uhzzYUzebz4qvl2Rl5jrR3+6QyE9a0ua+D8/AdNxrV/waCf+/qGA1m9B44lEoMl3B85alUlX+wnoc5pJjdemPYhIcA9Gh6IBs9n69Z2T4iUnwSKgycTfEhPm6mREoX836qTknY/qfuPPXUrGpG/sIfJh/orH5Y5OpGm9IfHYwF6LfcPVx3uWYCT5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=bestguesspass action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qsajq9/jZGSRhaIRYCw0C96AsaYUKnbycGzvadblnlM=; b=YFXoPd9YdSZeHyzbCTJhd7qzZxcbwdNKxNXT36MTA33RQR4bLaLsqY0JAeGvPNrCUR+5slzjSgp2+6kv/Gr4VWduQ7FlMvgGA8nZq+pGqoOx/CY/AlhuQslKuZzdzW6vwlnh98OCwrivFBpxnIDMggtpSMkL+0lTIMx8bAttsMI= Received: from DU2PR04CA0228.eurprd04.prod.outlook.com (2603:10a6:10:2b1::23) by DU5PR02MB10906.eurprd02.prod.outlook.com (2603:10a6:10:51b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Wed, 17 Jul 2024 14:34:49 +0000 Received: from DB1PEPF000509EC.eurprd03.prod.outlook.com (2603:10a6:10:2b1:cafe::13) by DU2PR04CA0228.outlook.office365.com (2603:10a6:10:2b1::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29 via Frontend Transport; Wed, 17 Jul 2024 14:34:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DB1PEPF000509EC.mail.protection.outlook.com (10.167.242.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7784.11 via Frontend Transport; Wed, 17 Jul 2024 14:34:47 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 17 Jul 2024 16:34:47 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 17 Jul 2024 16:34:46 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 17 Jul 2024 16:34:46 +0200 Received: from saur (saur.se.axis.com [10.92.3.10]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id CBD2B117 for ; Wed, 17 Jul 2024 16:34:46 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur (8.17.1/8.15.2) with ESMTPS id 46HEYkMs804919 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 17 Jul 2024 16:34:46 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 46HEYkpM804916 for openembedded-core@lists.openembedded.org; Wed, 17 Jul 2024 16:34:46 +0200 From: Peter Kjellerstedt To: Subject: [PATCH 1/2] systemd: Correct the indentation in do_install() Date: Wed, 17 Jul 2024 16:34:40 +0200 Message-ID: <20240717143441.804891-1-pkj@axis.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509EC:EE_|DU5PR02MB10906:EE_ X-MS-Office365-Filtering-Correlation-Id: e1c300c0-6399-47e0-a560-08dca66d9bda X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: kArCkCUD1AgM0UHfd+PbwtV6G8JLcD9xbCQvTe/sggn/QuEu6WdpEuCUgbwxnHUTT8tt+lL/p6BKLKcKU3CWOh/OURqV8/gdH4cIuzIEKuRrQRZSPzn7JqSSj+i/GpESYnpkeq8336ms+sSEA3Gbo6Z1DXUUXye0CYGqusy0PRw4da9z850PbSEkGeWT2MVOSH2f0ixqIqGEy3iweg+Mu9JVfCw/L6rGWy5xunPSWdMBEuBnOY8HeZc1srbWKbkY7yiCvq67u6iy0niAeilLZjGECozCPPVqJKid7pM0R5ziHkXDqFW/XqzZ3n/2iqS65jNP8V/YMtd8c1qJVVm70HWX4ph0yWJcthQ+AhCDAv3BqcSCavgOkNniJQDH2WAlt0LwdMj3sjRMHUQfF6guqfyCrOZ+WanIDA7g2itiJc38GRilTymtIVCF1AJdGQh8Y6xZJZhj/4QsIDxrNlCcQ+OA72y3L9pPwQPHMVwDnR/iOdeA7ONrJnMWASpB9K9VpYwVIbyQtn4xkUjvV/SwInM27ZfKO8w29ggJfciV0MRR3GZxO6mUF+U4Y+NvWHb8/LmnqaHcHRZwFZYpSy9gJ7cxt+IG7xClLr+62WFMx7Mt7Z9PKmwyrbxn5MRee0//SVBK63v9lpDQdYQC1MP7MSWsYqSIBD0DMbe7vuFOIqu+sBG7OICzoMuesivPMr/EHqC4DAoL/jPwXtyVOpr2eUMyJDVX/ZV1hGpA2kAizjnhGDOynAnYP6cU4QYc+ogUEI5DsSjAPxEYQk/pPZyEjVdAQD7gvAIYBFNweZud0sEJoSzKcRbMWtXbzt1e3Jv7KhSjIiWVvGJG+29mQZzHJw/CMw1vx3TBDFCl0uICw7a9CA/sbe7FIExZ3s6MUwjhhkFuEVyOgIMnTorywujE4coqg8rU6uN+7wv2fatwDC/3zftJIcNFMLp7zbS2lrwcd2jNfpSLkv0oFvZHTXqFt6jMHp3RjcNRAyumrEAfd7OGMbBkibqhFVMEZlYfA9yyq1X2ejFlNbQ47orjC2ubYlilmL95ELZFwT9JYSWre17labcFyvpLH4DShEdpvbCOsvpWwYQWgMtr2ChZfrgXKHRPvTbDu19sO0JUTXk47YqjYIytpsQF3K5mlzx1bXg22K+jiyg8yVRtks6LbhmZx9nUjPOgO2AFv0bowPQ6e8+/Vmgq5ZwdqPCz9L9fH4anyTfwwKjLwvHQetjKz42wW/Zh0DYzMt+MEISjonGMRce/djLVmFmdeDQvgKk0eIZ7NmKnmMmsRaEC5sGvCXoJOnHId4s9snmu0LMf2pkcbt1KAuwZkA40TZh994TjXWaKP1W6XEu//vj7Wk7K0fLkYaHi/Ol+yzmcpHdK+5B4U1tisz9R+mMnND1kWQYJ3u/KUWCKlmBQFhKmTdbZcmw1848aGhH8HYVZpg657e6Bfg4d+oaCTy1HOL52Qq+YspAw X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2024 14:34:47.5274 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1c300c0-6399-47e0-a560-08dca66d9bda X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509EC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU5PR02MB10906 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 17 Jul 2024 14:34:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/202166 There was a mix of using tabs and spaces for indentation. Signed-off-by: Peter Kjellerstedt --- meta/recipes-core/systemd/systemd_256.bb | 27 ++++++++++++------------ 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_256.bb b/meta/recipes-core/systemd/systemd_256.bb index 3579c71891..ef243c2ce1 100644 --- a/meta/recipes-core/systemd/systemd_256.bb +++ b/meta/recipes-core/systemd/systemd_256.bb @@ -278,16 +278,17 @@ WATCHDOG_TIMEOUT ??= "60" do_install() { meson_do_install + if ${@bb.utils.contains('PACKAGECONFIG', 'sysusers', 'true', 'false', d)}; then - # Change the root user's home directory in /lib/sysusers.d/basic.conf. - # This is done merely for backward compatibility with previous systemd recipes. - # systemd hardcodes root user's HOME to be "/root". Changing to use other values - # may have unexpected runtime behaviors. - if [ "${ROOT_HOME}" != "/root" ]; then - bbwarn "Using ${ROOT_HOME} as root user's home directory is not fully supported by systemd" - sed -i -e 's#/root#${ROOT_HOME}#g' ${D}${exec_prefix}/lib/sysusers.d/basic.conf - fi - fi + # Change the root user's home directory in /lib/sysusers.d/basic.conf. + # This is done merely for backward compatibility with previous systemd recipes. + # systemd hardcodes root user's HOME to be "/root". Changing to use other values + # may have unexpected runtime behaviors. + if [ "${ROOT_HOME}" != "/root" ]; then + bbwarn "Using ${ROOT_HOME} as root user's home directory is not fully supported by systemd" + sed -i -e 's#/root#${ROOT_HOME}#g' ${D}${exec_prefix}/lib/sysusers.d/basic.conf + fi + fi install -d ${D}/${base_sbindir} if ${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', 'false', 'true', d)}; then # Provided by a separate recipe @@ -395,10 +396,10 @@ do_install() { # add a profile fragment to disable systemd pager with busybox less install -Dm 0644 ${UNPACKDIR}/systemd-pager.sh ${D}${sysconfdir}/profile.d/systemd-pager.sh - if [ -n "${WATCHDOG_TIMEOUT}" ]; then - sed -i -e 's/#RebootWatchdogSec=10min/RebootWatchdogSec=${WATCHDOG_TIMEOUT}/' \ - ${D}/${sysconfdir}/systemd/system.conf - fi + if [ -n "${WATCHDOG_TIMEOUT}" ]; then + sed -i -e 's/#RebootWatchdogSec=10min/RebootWatchdogSec=${WATCHDOG_TIMEOUT}/' \ + ${D}/${sysconfdir}/systemd/system.conf + fi if ${@bb.utils.contains('PACKAGECONFIG', 'pni-names', 'true', 'false', d)}; then if ! grep -q '^NamePolicy=.*mac' ${D}${rootlibexecdir}/systemd/network/99-default.link; then From patchwork Wed Jul 17 14:34:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 46553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45847C3DA4B for ; Wed, 17 Jul 2024 14:34:56 +0000 (UTC) Received: from AM0PR83CU005.outbound.protection.outlook.com (AM0PR83CU005.outbound.protection.outlook.com [52.101.69.16]) by mx.groups.io with SMTP id smtpd.web10.48.1721226895278635914 for ; Wed, 17 Jul 2024 07:34:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=eFrhKzq+; spf=pass (domain: axis.com, ip: 52.101.69.16, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=o41f8kNoEvd7wCM7m8BytIE93gCQL+VPTr5+mSCehZgXslHormIJMILqs7sr3u8EcpY+xDQZCj2Wljsk2gvWoD7x87nIDiMmAAg2yHUKkP9S2MXPRlIPRTCGVqeahGeV+h78t0hCe7o4MDIOFcMRiG5SAFWJAGFuueAQ7wsdEE9F7Ta4Bk4muE5qQqBWCy14IC26tqL9VNekT6sLrO9X+z/WWYDy6Kk6zowM7cGQKWh7XDQAWCIPW4LytEmSjAUROaweoihsHLJmd2AhaDL1UKP4ft/oC8e3Xzjjgx9xjgfDYWxjLkSW3ElycJi7K8oz5gD32kag5OPu3ELfbdF3gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=09T+Lql4LvdngDm3U4GOQ/RKvhyDgnvR3F/3jAPRVMI=; b=Gc/iM0JnrVsoO44HyW5yusiAEubdP4/tO0HYUEafF1xbv9qpgJab3tQ0j+F5MjVFak/zLLwquhZjJz+2flItyozNkpe4xaer0pfvlChpAglPw0nsDT1kB04TiI5PKIUvDsRa2t3RVj0SJvqNifXyIlcPf0NQqlba2wWMZFMJXR/M8Dsw4w9PcQ++3fjgWb8387kkgJC6GATngkAGAxUYm5RNtDYsT1Pu+zmELftcI7+oDPeXJEAOAWcdjOQCMLK9vFVNgjPp+qTHsylse+GnuZRLlFVUspPmVA+Q/AiFl15HOzoIxM32m670BFK6Gsxhbl0Ns037gXVNvT5wcLofPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=09T+Lql4LvdngDm3U4GOQ/RKvhyDgnvR3F/3jAPRVMI=; b=eFrhKzq+iTjPWc4Em1lzHTrq3voZyt572swfrHvqNOfrU9iWouP8b58wwrdWTP9pray8PJkTWE6wB3CQJGKrrZ5j0YMGoUB0tev4hQn9FYne62EfY+zOfvvHNoIV6Ye0t4aAqOGSnVKC22btsFHK6swteDJpo1S04n5k4Ypu66c= Received: from DU7P189CA0017.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:552::31) by GV1PR02MB8514.eurprd02.prod.outlook.com (2603:10a6:150:9a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Wed, 17 Jul 2024 14:34:49 +0000 Received: from DB1PEPF000509F0.eurprd03.prod.outlook.com (2603:10a6:10:552:cafe::7f) by DU7P189CA0017.outlook.office365.com (2603:10a6:10:552::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16 via Frontend Transport; Wed, 17 Jul 2024 14:34:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DB1PEPF000509F0.mail.protection.outlook.com (10.167.242.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7784.11 via Frontend Transport; Wed, 17 Jul 2024 14:34:48 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 17 Jul 2024 16:34:48 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 17 Jul 2024 16:34:47 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 17 Jul 2024 16:34:47 +0200 Received: from saur (saur.se.axis.com [10.92.3.10]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id E1102117 for ; Wed, 17 Jul 2024 16:34:47 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur (8.17.1/8.15.2) with ESMTPS id 46HEYlUY804925 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 17 Jul 2024 16:34:47 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 46HEYliD804924 for openembedded-core@lists.openembedded.org; Wed, 17 Jul 2024 16:34:47 +0200 From: Peter Kjellerstedt To: Subject: [PATCH 2/2] systemd: Move the MIME file to a separate package Date: Wed, 17 Jul 2024 16:34:41 +0200 Message-ID: <20240717143441.804891-2-pkj@axis.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240717143441.804891-1-pkj@axis.com> References: <20240717143441.804891-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509F0:EE_|GV1PR02MB8514:EE_ X-MS-Office365-Filtering-Correlation-Id: fcc4ec9d-b72e-454e-35f9-08dca66d9c7d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: /tvO5QOzo9qrfvkeUeOki96pfVjw9H5Amcuw2I6S1TZwGVG6c64nwzYOLu8gvCz91509l7shnymf1wBV1OeffQsgqE9OlbUBGjqwFHq/XRVP3WVv/7Ih7OY2D5O7V0Q+sTlwznWcYmsp1VnIx9Dj2uVa0CFNtK3di+DW/1AoEmtq0CTwXHThPf9arDdBMiQ2YPkcsAVty5/i+7rVXfRysy2uqH/CghS3kIb9T23KPWZ9AjfHU0le+ySdoNjawU9npfYeeqE29XU3A7DKoq/KAv1Nr2g+jyFr7bWcPS+vxA5OKN9tNKOquEDUxQca852Xr9FmTND7kTTCy+oCt6h8H20gbJFjJxRa7itGNFYduKmhPjRyZ55hNRLoNyungT/zXnEQGpVo+ZXxlBPBEGJ7evKW0gDtTaHMQ7aiqnfKFQSbRq99Lq2750wxZ1o8sUR8T80AoJRNpW74S45fHUHifCnw+N7Uube3CCag4jRo4SxsvFRlmwPPPYUWNikHhMfo+wbeAK6Nxd/+BsK2WGamLq4ltMsmkBK7rpAJgCrEY0a236PrMg0vb2cnsnbXA2BKL3lqUHCqwNqu9yYpPL1/wpKuUX3Q8vbHWwy4fTUNVw2oackNnFV+dsBCAZOPSoZnuLNVQ3rmY3opJeInl8ROS1vbEYp97NuL+lWjevY/WoJi2B2bKiaUNmyUpSHh3COgth4WNDrmbwxKLvpqNJrnPH/44oliJv9IthlWmvRmvYBFv2HlrR6l7/sz2gwYQEdRa6iXNvSGKW5AATlZM88OUYpySzUiXTVh5YAYD0Z8ySmu4Hg9Ln7GnXmzUDTKUgeLdS93g3wWk9Abr3oqlkYOnh0Ryx5RIcg0EaUqm6XUEAwVwEFygOyF6d1ZH4YjraBg3P2sqVkmbowEeI8Hph5WztZ6jALpXDnsFAAP/0PQ8UiSEjF4pY0IVBirhtPl4P0Ag91yLReWu6222VdBGOSUbz2NNimEGazuAQFm7rlKrFlAnj9H8khcja1wbIUKXTwXMFn70P7pK/XEzeFUYhGOmnydTn9DlPHa/TwY9VQOobaO+ykh/yRuBjJsfvhm5FR0Az4PsJYqGTRg7owgM3Kho3pZqBzteBVg/1h9+3WZU5/2xiet76jhq5ckrg0eDaFFwMdzEPE4fLomVLA7sT8OYNNspFRC0yaNZwuFN9m1G8gSVpsi7TOUSivHPj8OHNxz1AiYzXKngDQBOole9n3gI8jUXbmwjpSYA29uUhr17pkmeQ4oeZm9zxPYsPMoTKf1l1bOXtPYAaL24vJ8v/QKIqrzpAn8pMlNSQHQ5OC/nWWrVLJb3y0jbExKEhKEIUWD0PUWMCml3B9bz6jbmd9f0Vf46DNmzNMkGe0qxp89kygCDQ4Xnir9zt5UKGF3oDEHntxV9jSSNbMsJmWz4DRZ4BZE35rHjITk+rU+Ic+DEZEdSHHuSxvnxEWt8EdUyo2c X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2024 14:34:48.6084 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fcc4ec9d-b72e-454e-35f9-08dca66d9c7d X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509F0.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR02MB8514 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 17 Jul 2024 14:34:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/202167 The systemd-mime package is added as a recommendation for systemd so that it is installed by default, but can be excluded, e.g., via BAD_RECOMMENDATIONS. Excluding it avoids pulling in the MIME database for products that have no use for it. Signed-off-by: Peter Kjellerstedt --- meta/recipes-core/systemd/systemd_256.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_256.bb b/meta/recipes-core/systemd/systemd_256.bb index ef243c2ce1..6ef6b16f0c 100644 --- a/meta/recipes-core/systemd/systemd_256.bb +++ b/meta/recipes-core/systemd/systemd_256.bb @@ -429,6 +429,7 @@ PACKAGE_BEFORE_PN = "\ ${PN}-journal-upload \ ${PN}-journal-remote \ ${PN}-kernel-install \ + ${PN}-mime \ ${PN}-rpm-macros \ ${PN}-udev-rules \ ${PN}-vconsole-setup \ @@ -634,6 +635,9 @@ FILES:${PN}-extra-utils = "\ ${rootlibexecdir}/systemd/systemd-cgroups-agent \ " +FILES:${PN}-mime = "${MIMEDIR}" +RRECOMMENDS:${PN} += "${PN}-mime" + FILES:${PN}-udev-rules = "\ ${rootlibexecdir}/udev/rules.d/70-uaccess.rules \ ${rootlibexecdir}/udev/rules.d/71-seat.rules \ @@ -731,7 +735,7 @@ RDEPENDS:${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= ${EXTEND RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}" RDEPENDS:${PN} += "volatile-binds" -RRECOMMENDS:${PN} += "systemd-extra-utils \ +RRECOMMENDS:${PN} += "${PN}-extra-utils \ udev-hwdb \ e2fsprogs-e2fsck \ kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 kernel-module-sch-fq-codel \