From patchwork Thu Jul 11 07:56:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: ChenQi X-Patchwork-Id: 46204 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 CA824C41513 for ; Thu, 11 Jul 2024 07:57:09 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.6956.1720684621387970070 for ; Thu, 11 Jul 2024 00:57:01 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=7922740ab3=qi.chen@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46B5DVwg020873 for ; Thu, 11 Jul 2024 07:57:00 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 406u4x4pvv-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 11 Jul 2024 07:56:59 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fMywKccQ7MYo5obxrdPOk/6Hqe2D1rc/Q2ubw1jpzmH/u5OqMnf7gOIXSKxE8MHgUzdtmN9as92Gddd9UPW00Vv7XnyGqun9wVoBtui9NHcarIiKP07pP1yN9xFXY5eeIcIw6u7lcJKzXKN3isb+xhGBMOVjeRGJiW2Jsrm8q2SwcH35xTTL1JwEV7j6BbiWyK4t+5w1NEkUq8H0fW1mY53zU0pbNoIfiti1O78wrWhLtD2PfN9k94TrwQH/Gfj+XbyHNQe9AZMVPnMuIM+agoXSAgalLcEZQDVmKLwi//8yUX+aAs26QGYultskQergGPaACGeb8BKIq7AqVlbtmQ== 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=DfSGYSkr3hP4kDamvXT0TLdYWjcDBDZgJgxqFp0TVVg=; b=SiNzvpBT1U1AxCXHM9uIWvmihYaYn+kMIYFeIn/ki2LP0P9MW1DkOuTMCXGYkALFSjAFqaM1qjoBDrG77vFjFpp0iyI+ppObH6xRYWPFLlCJw+frXUObqVyX8twB0QcEq4KWh4MHXnEIMTK+23krP+VLOU49InQXoODRAgiNqVAwldWzm1oDSCs4W/R9CuueS8CzwDqrt+MPiVA9FS+k3pAkR0cxdTf/7ZnvqrtNILKQUONeVrd4SanWLUmPuGJqJc9FhAgc5DmkGesDkYWferZjH2XkkoabMGmP31EA2U5spBzCTXHmX6yw5T1RroaX058ucR9Zi1Q41ep3mLXfVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) by PH7PR11MB7051.namprd11.prod.outlook.com (2603:10b6:510:20e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Thu, 11 Jul 2024 07:56:50 +0000 Received: from CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093]) by CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093%4]) with mapi id 15.20.7741.033; Thu, 11 Jul 2024 07:56:50 +0000 From: Qi.Chen@windriver.com To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH V2 1/5] systemd: upgrade from 255.6 to 256 Date: Thu, 11 Jul 2024 00:56:33 -0700 Message-Id: <20240711075637.3023203-1-Qi.Chen@windriver.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SJ0PR13CA0010.namprd13.prod.outlook.com (2603:10b6:a03:2c0::15) To CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR11MB5602:EE_|PH7PR11MB7051:EE_ X-MS-Office365-Filtering-Correlation-Id: 086813c0-cff1-4940-bd13-08dca17f0541 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?p5WPKpbH/vfP/Fz56DU/EgITTlnbaHo?= =?utf-8?q?PsCZT+P0fZpt5gX6sTaH8z9cEgwI0ssNrWphp1wYiM81boyMuBR4oAt2lcLqRQ3/s?= =?utf-8?q?oVPNtMaB7bapfMBvOybRkV9sO89zkvBAahwYmb66vVCa4/KrNJ2zJOffsIg9vJfaq?= =?utf-8?q?mvzFQEr0jJdUoEskqDATlFYc9zY5rTt+eRtx2Dww8okB/0D+G/mfBl9jAWfJ8YqWk?= =?utf-8?q?ZAcZ+OBt8rrMQXTFf8WrCAS9pAzbP1LzNHK6vayba0U6YJp6H8UCzIynk6gRBm3OP?= =?utf-8?q?ldj4VHSy7oLV2cRMsMLGdmxra845Z3Ouw69uhgtvwQlQLmW22l/yefmPm5rl0ppdH?= =?utf-8?q?rkR12yxLExmy79HgIsQP4I9jDV+Ee//wVbaIx2qI7Gngg8DNewv5lpUtQROy4iUa/?= =?utf-8?q?SS2M0WL6KyX86untNNPcojRfRXPo5eGdM/4IwCV3wOT+GY34TPNBByUtcQ86p06TQ?= =?utf-8?q?zSPzoRlqk6bYFOOZGqY8ZCIPSOpPQvqviVVs7rB6ICBPQ/E/DqKyutV221EzDi4ZY?= =?utf-8?q?Vk7pJX5ZFTbmw4UVwRppPIkIVeLffJ0JM9Cm3G9gTlm8ynMG1h444VheOeIqo35dy?= =?utf-8?q?peyHPunUheuvVAfjh3sNtwQYo8dCxNTo+me/SKxPfBz0JGGv/Fac77uUcKYc8A4oO?= =?utf-8?q?jjG9GYcIKg8Sbf8EqdvN0Dsgf+8GzbEEJvB4kdGeKQqjPDJQ/yssyrnkaQk+TTlfa?= =?utf-8?q?SibDmOA0T7Gj7alUihMzKXeo/QfSlF8VpJPnndXVPkpKMo6u6+OMimFdS6RI9nvIu?= =?utf-8?q?pSPcx3VNBY5ZQNxwMAR6pMdU7mw1GRDQIZzxV79YbsUB4+/tqRG7GFUJo1CEsh9YL?= =?utf-8?q?X1oUAGLrt3mhuoLE4wyzBHfxFeseLscOQlr0xrKhOP0QcXQN6joJ5R5xq3G7A4rvG?= =?utf-8?q?4VlAifkDY2d42zMC//QXrl5ciOj69HtmmQ/g+X0LNU2tDPpJvnb+7KHRt2ZhZTpqn?= =?utf-8?q?I32B6YzA9v/hIJEkLfCnFnhcQBNlsRMXaLd9hdxpZ5OEWVcJAvOLKTxagr0Usj3iR?= =?utf-8?q?rPCg8QtoEUBEls8A+t0s1ybhgsq+bUFmnOfF9vJIvnTeNOHTaFoHxk20al1Ma0qF3?= =?utf-8?q?mkRaEytk24xVs2WwbpZC8bm+k3aSsepp1s5hdbmxP1Q8hnGYqe5UZ42uy78n2S8c7?= =?utf-8?q?uL+SE4mPQLo2oOysHZrS7VA8hOqx7Rssjkv8oE/pfU2pEhtr/KQZl/ctzI6ePE/kt?= =?utf-8?q?PKZMSRWiO0JFdUO6EgwKjkDXFJ3P8p3mVgfPFbPlybthNtrgtehnSJYZ0C2RkgGv0?= =?utf-8?q?r2G0FCkWp9rk3nF3j++oYJRAWkB16HQjoUTxj4NC+zc70kGgB8rwxQIA=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR11MB5602.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?+u4f1BKeMXFtn+5RbfaWt8oD8A6X?= =?utf-8?q?YeNb79VQd24RVAcX7jCN6doLnRUgsj7WgFy3OhcBuq12mOMEQVfOqYQUNeL1jSmiV?= =?utf-8?q?wA1yCmWA26rJkMC09dvt/jjbT8ILCY7RfOWvJbbGcxrMqnr7uIAro6A8dKT5RjrHY?= =?utf-8?q?BdGSfZQcoPJ01YlBLcmArG68h5m3b+KgS/5qY/HcwvigFUkAAYLhMRB2QMEzMir0l?= =?utf-8?q?Jwkk5Yk264dwmQgkvbnJE8ViKK9n9XnEsOc3msK+XKHumOZ+7yqNAKRXlpekm/TCp?= =?utf-8?q?PClVsLT0JVbzJXCbC4wMDUERGzxevH38hRFXEED+FQMxGBGrXAf9Ie+heWOG/mzUe?= =?utf-8?q?XXzMtlJux4t6xTQdzqyH3NPzdpNegt/iWRZ6o/e/fPBRIv/yvFGeuyQznju/LzW5q?= =?utf-8?q?OfEPYnT6iZEnnULhMMDQm0e66xoUQ14BvwBKG4+RJtqcglCbLmwERlYZGc7f/g1V7?= =?utf-8?q?fUj53UcWaIN6c6Thlib1l2IDjfESStnypZ+sCaZbqr+yTm5JIg+SAwYMYr7+sOUb9?= =?utf-8?q?CCJ9GrGPc19xoex6bGiVNOFIrCkpQWfVRjSJVgkzdmdarb3qFdzO1S+TEXwzaBSiM?= =?utf-8?q?nNP6pwlE5Rmy43co1RFBK9wCDMovIwIvgGgdcdpFtwvQE7NasNFVWujM3yvBy+RTA?= =?utf-8?q?v1eSpV/+9/p3fxD2BlZfDCLNl9Q4XOeWrzqhrci+/BUo7QfXGgFawxIU31EFlBumV?= =?utf-8?q?4jGN6YotLspP2+LIWGI0bJt6+yJb++C8NY51/qdt2UR8x2ZxKpAOcQUVpNcRuRX9v?= =?utf-8?q?Zzdd7MVqZgHMRiwIo5ZZacV2V8ey/02m7eKT6qZRIZXF94Zkx+BvL5GiS3D2TAmK2?= =?utf-8?q?ID8pJDi/LvlwArrvzL5iSO7Yc4lWkvy4DYk+mdbUhZZ/9PAU1ekR2cTgQgoiZgH+1?= =?utf-8?q?LOXeB046ex5XzC5hRJRQos/JoBSjn46v5g3estxawYG7YAFK/AUkWJR/rBMgcP4at?= =?utf-8?q?om/IZmqHzCemefMB0l59YP7i1jq+kr7UIz4y7pMSbHxwz7MA0hruQTjTYI18WVOC/?= =?utf-8?q?4hgkaEpQS+eOroXQD4Lo+bT1YtJYqnkQREZgTDuXVXm3ejthn/0pxVBOhZgWdNQNB?= =?utf-8?q?XGFpGeiP3iaC3vYN5+2s12lpry9j4uub9rxUk1Ug1QFmk/+3qDybvnygfdw0OYBWz?= =?utf-8?q?ZuIKa1xPlVu4QsNusvCWxQPEQK2jSWK5t6uzen50Y377/TTHxo+vfcIjpBdaagOC3?= =?utf-8?q?XxfFmFWybFsjGY1yyQ6rANj/ZSLN5gHWyr27t36wfhz0CkO00Yhc6I2VThZ0Tg4jG?= =?utf-8?q?HNqRNvn/+pydjAx7sDSmw7/kViksPCU68AqLFGHJ1IVw2xEwDLDADmSRBFDWG359m?= =?utf-8?q?Lyg37iOWVi/SLuhcFk+yEAIAELDhSSM7Se+yvWSg363bEA4vjxWR7JlKWcONDG43M?= =?utf-8?q?09RthWhK32eR/zE2oCX3N++168ICoCZiqv8P5JNpCEOJkdYUOz3pNKfcFeTMlnd1s?= =?utf-8?q?QcoK+rp4z5Mc4/ygDabXUq1h3eMaAzLlhFTtFHVzzP9u4YIeabcKNMm2x8ColaGMf?= =?utf-8?q?8JtbxoB6pTK+UhdfedYXzuWhF5gq7O6YYQ=3D=3D?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 086813c0-cff1-4940-bd13-08dca17f0541 X-MS-Exchange-CrossTenant-AuthSource: CO6PR11MB5602.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2024 07:56:50.3545 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CWiwQZpg0jl2P2EZD9qqgjK7uoSopKC2hpsjjEf4wEXhYX4emVwQ1Mx7+x79V88GP8Qyx+8QksOmLLmg+WV84Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7051 X-Proofpoint-ORIG-GUID: VUMmPNKS_9eVq8gv0Z3cHnYpOGQtYNmF X-Proofpoint-GUID: VUMmPNKS_9eVq8gv0Z3cHnYpOGQtYNmF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-11_04,2024-07-10_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2406140001 definitions=main-2407110054 X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 46B5DVwg020873 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 ; Thu, 11 Jul 2024 07:57:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201767 From: Chen Qi The 'cgroupv2' PACKAGECONFIG is dropped as systemd now only supports cgroupv2. The 'kmod' PACKAGECONFIG is now added 'libkmod' as a runtime dependency. This is because systemd 256 uses dlopen to make use of libkmod, and there's no way for our library detection codes to know this and add such dependency automatically. So we add it explicitly. mime is now inherited because ${datadir}/mime/packages/io.systemd.xml is a mime type file. For musl specific patches, most are refreshed. One old patch is dropped, and four new ones are added. Newly added: build-path.c: avoid boot time segfault for musl adjust header inclusion order to avoid redeclaration undef stdin for references using stdin as a struct member include signal.h to avoid the 'undeclared' error Dropped: src/basic/missing.h: check for missing strndupa (drop reason: systemd does not use strndupa any more) Signed-off-by: Chen Qi --- meta/recipes-core/systemd/systemd.inc | 4 +- ...all-dependency-links-at-install-tim.patch} | 21 +- ...mplment-systemd-sysv-install-for-OE.patch} | 7 +- ...agate-sysroot-for-cross-compilation.patch} | 10 +- ...missing.h-check-for-missing-strndupa.patch | 696 ------------------ ...-missing_type.h-add-comparison_fn_t.patch} | 15 +- ...-parse_printf_format-implementation.patch} | 25 +- ...B_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch} | 22 +- ...07-add-missing-FTW_-macros-for-musl.patch} | 9 +- ...8-Use-uintmax_t-for-handling-rlim_t.patch} | 23 +- ..._SYMLINK_NOFOLLOW-flag-to-faccessat.patch} | 9 +- ...atible-basename-for-non-glibc-syste.patch} | 10 +- ...ffering-when-writing-to-oom_score_a.patch} | 11 +- ...ompliant-strerror_r-from-GNU-specif.patch} | 9 +- ...efinition-of-prctl_mm_map-structure.patch} | 13 +- ...not-disable-buffer-in-writing-files.patch} | 151 ++-- ...tch => 0015-Handle-__cpu_mask-usage.patch} | 9 +- ...atch => 0016-Handle-missing-gshadow.patch} | 50 +- ....h-Define-MIPS-ABI-defines-for-musl.patch} | 7 +- ...ss-correct-parameters-to-getdents64.patch} | 11 +- ...tch => 0019-Adjust-for-musl-headers.patch} | 165 ++--- ...rerror-is-assumed-to-be-GNU-specifi.patch} | 13 +- ...til-Make-STRERROR-portable-for-musl.patch} | 9 +- ...ke-malloc_trim-conditional-on-glibc.patch} | 13 +- ...ared-Do-not-use-malloc_info-on-musl.patch} | 11 +- ...4-avoid-missing-LOCK_EX-declaration.patch} | 24 +- ...gnal.h-to-avoid-the-undeclared-error.patch | 27 + ...references-using-stdin-as-a-struct-m.patch | 48 ++ ...clusion-order-to-avoid-redeclaration.patch | 76 ++ ....c-avoid-boot-time-segfault-for-musl.patch | 31 + .../{systemd_255.6.bb => systemd_256.bb} | 62 +- 31 files changed, 564 insertions(+), 1027 deletions(-) rename meta/recipes-core/systemd/systemd/{0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch => 0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch} (85%) rename meta/recipes-core/systemd/systemd/{0008-implment-systemd-sysv-install-for-OE.patch => 0002-implment-systemd-sysv-install-for-OE.patch} (91%) rename meta/recipes-core/systemd/systemd/{0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch => 0003-meson-bpf-propagate-sysroot-for-cross-compilation.patch} (78%) delete mode 100644 meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch rename meta/recipes-core/systemd/systemd/{0001-missing_type.h-add-comparison_fn_t.patch => 0004-missing_type.h-add-comparison_fn_t.patch} (87%) rename meta/recipes-core/systemd/systemd/{0002-add-fallback-parse_printf_format-implementation.patch => 0005-add-fallback-parse_printf_format-implementation.patch} (96%) rename meta/recipes-core/systemd/systemd/{0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch => 0006-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch} (91%) rename meta/recipes-core/systemd/systemd/{0005-add-missing-FTW_-macros-for-musl.patch => 0007-add-missing-FTW_-macros-for-musl.patch} (85%) rename meta/recipes-core/systemd/systemd/{0006-Use-uintmax_t-for-handling-rlim_t.patch => 0008-Use-uintmax_t-for-handling-rlim_t.patch} (88%) rename meta/recipes-core/systemd/systemd/{0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch => 0009-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch} (96%) rename meta/recipes-core/systemd/systemd/{0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch => 0010-Define-glibc-compatible-basename-for-non-glibc-syste.patch} (82%) rename meta/recipes-core/systemd/systemd/{0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch => 0011-Do-not-disable-buffering-when-writing-to-oom_score_a.patch} (82%) rename meta/recipes-core/systemd/systemd/{0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch => 0012-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch} (92%) rename meta/recipes-core/systemd/systemd/{0011-avoid-redefinition-of-prctl_mm_map-structure.patch => 0013-avoid-redefinition-of-prctl_mm_map-structure.patch} (71%) rename meta/recipes-core/systemd/systemd/{0012-do-not-disable-buffer-in-writing-files.patch => 0014-do-not-disable-buffer-in-writing-files.patch} (84%) rename meta/recipes-core/systemd/systemd/{0013-Handle-__cpu_mask-usage.patch => 0015-Handle-__cpu_mask-usage.patch} (91%) rename meta/recipes-core/systemd/systemd/{0014-Handle-missing-gshadow.patch => 0016-Handle-missing-gshadow.patch} (80%) rename meta/recipes-core/systemd/systemd/{0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch => 0017-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch} (89%) rename meta/recipes-core/systemd/systemd/{0016-pass-correct-parameters-to-getdents64.patch => 0018-pass-correct-parameters-to-getdents64.patch} (88%) rename meta/recipes-core/systemd/systemd/{0017-Adjust-for-musl-headers.patch => 0019-Adjust-for-musl-headers.patch} (84%) rename meta/recipes-core/systemd/systemd/{0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch => 0020-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch} (87%) rename meta/recipes-core/systemd/systemd/{0019-errno-util-Make-STRERROR-portable-for-musl.patch => 0021-errno-util-Make-STRERROR-portable-for-musl.patch} (88%) rename meta/recipes-core/systemd/systemd/{0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch => 0022-sd-event-Make-malloc_trim-conditional-on-glibc.patch} (76%) rename meta/recipes-core/systemd/systemd/{0021-shared-Do-not-use-malloc_info-on-musl.patch => 0023-shared-Do-not-use-malloc_info-on-musl.patch} (86%) rename meta/recipes-core/systemd/systemd/{0022-avoid-missing-LOCK_EX-declaration.patch => 0024-avoid-missing-LOCK_EX-declaration.patch} (62%) create mode 100644 meta/recipes-core/systemd/systemd/0025-include-signal.h-to-avoid-the-undeclared-error.patch create mode 100644 meta/recipes-core/systemd/systemd/0026-undef-stdin-for-references-using-stdin-as-a-struct-m.patch create mode 100644 meta/recipes-core/systemd/systemd/0027-adjust-header-inclusion-order-to-avoid-redeclaration.patch create mode 100644 meta/recipes-core/systemd/systemd/0028-build-path.c-avoid-boot-time-segfault-for-musl.patch rename meta/recipes-core/systemd/{systemd_255.6.bb => systemd_256.bb} (95%) diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc index 8bda47dd38..6906ff969b 100644 --- a/meta/recipes-core/systemd/systemd.inc +++ b/meta/recipes-core/systemd/systemd.inc @@ -15,8 +15,8 @@ LICENSE:libsystemd = "LGPL-2.1-or-later" LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" -SRCREV = "5810c25792d4268282dd3892af1a253b690423c9" -SRCBRANCH = "v255-stable" +SRCREV = "5c79cdec10a547a866764a66e1e14898112a00cd" +SRCBRANCH = "main" SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH}" S = "${WORKDIR}/git" diff --git a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch b/meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch similarity index 85% rename from meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch rename to meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch index 4c73c924ef..4ffcb2ed46 100644 --- a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch +++ b/meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch @@ -1,8 +1,8 @@ -From 661a34c3de30d4ff4a2a62c9a0573c6ce55424e4 Mon Sep 17 00:00:00 2001 +From ca94c86736ca7917e6c50d09d6c6ba56ba139709 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Thu, 21 Feb 2019 16:23:24 +0800 -Subject: [PATCH] binfmt: Don't install dependency links at install time for - the binfmt services +Subject: [PATCH 01/27] binfmt: Don't install dependency links at install time + for the binfmt services use [Install] blocks so that they get created when the service is enabled like a traditional service. @@ -25,10 +25,10 @@ Signed-off-by: Scott Murray 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/units/meson.build b/units/meson.build -index e7bfb7f838..1d5ec4b178 100644 +index b231341a1f..b613a188a4 100644 --- a/units/meson.build +++ b/units/meson.build -@@ -154,7 +154,6 @@ units = [ +@@ -156,7 +156,6 @@ units = [ { 'file' : 'proc-sys-fs-binfmt_misc.automount', 'conditions' : ['ENABLE_BINFMT'], @@ -36,7 +36,7 @@ index e7bfb7f838..1d5ec4b178 100644 }, { 'file' : 'proc-sys-fs-binfmt_misc.mount', -@@ -251,7 +250,6 @@ units = [ +@@ -258,7 +257,6 @@ units = [ { 'file' : 'systemd-binfmt.service.in', 'conditions' : ['ENABLE_BINFMT'], @@ -45,7 +45,7 @@ index e7bfb7f838..1d5ec4b178 100644 { 'file' : 'systemd-bless-boot.service.in', diff --git a/units/proc-sys-fs-binfmt_misc.automount b/units/proc-sys-fs-binfmt_misc.automount -index 5d212015a5..6c2900ca77 100644 +index 7ec21e76c9..fee4d1345f 100644 --- a/units/proc-sys-fs-binfmt_misc.automount +++ b/units/proc-sys-fs-binfmt_misc.automount @@ -22,3 +22,6 @@ Before=shutdown.target @@ -56,11 +56,11 @@ index 5d212015a5..6c2900ca77 100644 +[Install] +WantedBy=sysinit.target diff --git a/units/systemd-binfmt.service.in b/units/systemd-binfmt.service.in -index 6861c76674..531e9fbd90 100644 +index 318bf8efc2..6ef684861d 100644 --- a/units/systemd-binfmt.service.in +++ b/units/systemd-binfmt.service.in @@ -14,6 +14,7 @@ Documentation=https://docs.kernel.org/admin-guide/binfmt-misc.html - Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems + Documentation=https://systemd.io/API_FILE_SYSTEMS DefaultDependencies=no Conflicts=shutdown.target +Wants=proc-sys-fs-binfmt_misc.automount @@ -74,3 +74,6 @@ index 6861c76674..531e9fbd90 100644 + +[Install] +WantedBy=sysinit.target +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0002-implment-systemd-sysv-install-for-OE.patch similarity index 91% rename from meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch rename to meta/recipes-core/systemd/systemd/0002-implment-systemd-sysv-install-for-OE.patch index 8b833ce073..36cc5678c0 100644 --- a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch +++ b/meta/recipes-core/systemd/systemd/0002-implment-systemd-sysv-install-for-OE.patch @@ -1,7 +1,7 @@ -From 5f89867f2b15f9bd411564d04e660cdeedd370ca Mon Sep 17 00:00:00 2001 +From 40ae40de3db990a7e56694f24fc625b1b71a98f7 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 5 Sep 2015 06:31:47 +0000 -Subject: [PATCH] implment systemd-sysv-install for OE +Subject: [PATCH 02/27] implment systemd-sysv-install for OE Use update-rc.d for enabling/disabling and status command to check the status of the sysv service @@ -38,3 +38,6 @@ index cb58d8243b..000bdf6165 100755 ;; *) usage ;; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch b/meta/recipes-core/systemd/systemd/0003-meson-bpf-propagate-sysroot-for-cross-compilation.patch similarity index 78% rename from meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch rename to meta/recipes-core/systemd/systemd/0003-meson-bpf-propagate-sysroot-for-cross-compilation.patch index 5be4a27b36..08b70bf66d 100644 --- a/meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch +++ b/meta/recipes-core/systemd/systemd/0003-meson-bpf-propagate-sysroot-for-cross-compilation.patch @@ -1,7 +1,7 @@ -From 7463b382bcaf26aacc60b73f98f0262aa41db3ee Mon Sep 17 00:00:00 2001 +From bbceb4b339231124a0b004531b4b6838539432e6 Mon Sep 17 00:00:00 2001 From: Johannes Schneider Date: Thu, 20 Jun 2024 12:32:18 +0200 -Subject: [PATCH] meson: bpf: propagate 'sysroot' for cross compilation +Subject: [PATCH 03/27] meson: bpf: propagate 'sysroot' for cross compilation During cross-compilation of systemd, the compiler used to build the bpf's needs to be pointed at the correct include searchpath. Which can be done by passing @@ -15,10 +15,10 @@ Signed-off-by: Johannes Schneider 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build -index 187e7b216d..15df058ab6 100644 +index ea4e12aa1c..52723bef09 100644 --- a/meson.build +++ b/meson.build -@@ -1691,6 +1691,7 @@ if conf.get('BPF_FRAMEWORK') == 1 +@@ -1739,6 +1739,7 @@ if conf.get('BPF_FRAMEWORK') == 1 '-ffile-prefix-map=', '-fdebug-prefix-map=', '-fmacro-prefix-map=', @@ -27,5 +27,5 @@ index 187e7b216d..15df058ab6 100644 foreach opt : c_args -- -2.34.1 +2.45.1 diff --git a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch deleted file mode 100644 index f09f2114d3..0000000000 --- a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch +++ /dev/null @@ -1,696 +0,0 @@ -From 843c6c94bf6a29eaceeefafa420cd86a32e844d2 Mon Sep 17 00:00:00 2001 -From: Chen Qi -Date: Mon, 25 Feb 2019 14:18:21 +0800 -Subject: [PATCH] src/basic/missing.h: check for missing strndupa - -include missing.h for definition of strndupa - -Upstream-Status: Inappropriate [musl specific] - -Signed-off-by: Khem Raj -Signed-off-by: Chen Qi -[Rebased for v242] -Signed-off-by: Andrej Valek -[rebased for systemd 243] -Signed-off-by: Scott Murray -Signed-off-by: Alex Kiernan -[rebased for systemd 244] -[Rebased for v247] -Signed-off-by: Luca Boccassi -[Rebased for v254] -Signed-off-by: Chen Qi -[Rebased for v255.1] ---- - meson.build | 1 + - src/backlight/backlight.c | 1 + - src/basic/cgroup-util.c | 1 + - src/basic/env-util.c | 1 + - src/basic/log.c | 1 + - src/basic/missing_stdlib.h | 12 ++++++++++++ - src/basic/mkdir.c | 1 + - src/basic/mountpoint-util.c | 1 + - src/basic/parse-util.c | 1 + - src/basic/path-lookup.c | 1 + - src/basic/percent-util.c | 1 + - src/basic/proc-cmdline.c | 1 + - src/basic/procfs-util.c | 1 + - src/basic/time-util.c | 1 + - src/boot/bless-boot.c | 1 + - src/core/dbus-cgroup.c | 1 + - src/core/dbus-execute.c | 1 + - src/core/dbus-util.c | 1 + - src/core/execute.c | 1 + - src/core/kmod-setup.c | 1 + - src/core/service.c | 1 + - src/coredump/coredump-vacuum.c | 1 + - src/fstab-generator/fstab-generator.c | 1 + - src/journal-remote/journal-remote-main.c | 1 + - src/journal/journalctl.c | 1 + - src/libsystemd/sd-bus/bus-message.c | 1 + - src/libsystemd/sd-bus/bus-objects.c | 1 + - src/libsystemd/sd-bus/bus-socket.c | 1 + - src/libsystemd/sd-bus/sd-bus.c | 1 + - src/libsystemd/sd-bus/test-bus-benchmark.c | 1 + - src/libsystemd/sd-journal/sd-journal.c | 1 + - src/login/pam_systemd.c | 1 + - src/network/generator/network-generator.c | 1 + - src/nspawn/nspawn-settings.c | 1 + - src/nss-mymachines/nss-mymachines.c | 1 + - src/portable/portable.c | 1 + - src/resolve/resolvectl.c | 1 + - src/shared/bus-get-properties.c | 1 + - src/shared/bus-unit-procs.c | 1 + - src/shared/bus-unit-util.c | 1 + - src/shared/bus-util.c | 1 + - src/shared/dns-domain.c | 1 + - src/shared/journal-importer.c | 1 + - src/shared/logs-show.c | 1 + - src/shared/pager.c | 1 + - src/socket-proxy/socket-proxyd.c | 1 + - src/test/test-hexdecoct.c | 1 + - src/udev/udev-builtin-net_id.c | 1 + - src/udev/udev-builtin-path_id.c | 1 + - src/udev/udev-event.c | 1 + - src/udev/udev-rules.c | 1 + - 51 files changed, 62 insertions(+) - -diff --git a/meson.build b/meson.build -index c4694a9ddc..d376b76afa 100644 ---- a/meson.build -+++ b/meson.build -@@ -569,6 +569,7 @@ foreach ident : ['secure_getenv', '__secure_getenv'] - endforeach - - foreach ident : [ -+ ['strndupa' , '''#include '''], - ['memfd_create', '''#include '''], - ['gettid', '''#include - #include '''], -diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c -index b2032adaa5..ee9201826d 100644 ---- a/src/backlight/backlight.c -+++ b/src/backlight/backlight.c -@@ -20,6 +20,7 @@ - #include "string-util.h" - #include "strv.h" - #include "terminal-util.h" -+#include "missing_stdlib.h" - - #define PCI_CLASS_GRAPHICS_CARD 0x30000 - -diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c -index 18b16ecc0e..d2be79622f 100644 ---- a/src/basic/cgroup-util.c -+++ b/src/basic/cgroup-util.c -@@ -38,6 +38,7 @@ - #include "unit-name.h" - #include "user-util.h" - #include "xattr-util.h" -+#include "missing_stdlib.h" - - static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) { - _cleanup_free_ char *fs = NULL; -diff --git a/src/basic/env-util.c b/src/basic/env-util.c -index a97651d7af..09fa601250 100644 ---- a/src/basic/env-util.c -+++ b/src/basic/env-util.c -@@ -19,6 +19,7 @@ - #include "string-util.h" - #include "strv.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - /* We follow bash for the character set. Different shells have different rules. */ - #define VALID_BASH_ENV_NAME_CHARS \ -diff --git a/src/basic/log.c b/src/basic/log.c -index 7a443005f6..eed69a48ee 100644 ---- a/src/basic/log.c -+++ b/src/basic/log.c -@@ -40,6 +40,7 @@ - #include "terminal-util.h" - #include "time-util.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - #define SNDBUF_SIZE (8*1024*1024) - #define IOVEC_MAX 256U -diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h -index 8c76f93eb2..9068bfb4f0 100644 ---- a/src/basic/missing_stdlib.h -+++ b/src/basic/missing_stdlib.h -@@ -11,3 +11,15 @@ - # error "neither secure_getenv nor __secure_getenv are available" - # endif - #endif -+ -+/* string.h */ -+#if ! HAVE_STRNDUPA -+#define strndupa(s, n) \ -+ ({ \ -+ const char *__old = (s); \ -+ size_t __len = strnlen(__old, (n)); \ -+ char *__new = (char *)alloca(__len + 1); \ -+ __new[__len] = '\0'; \ -+ (char *)memcpy(__new, __old, __len); \ -+ }) -+#endif -diff --git a/src/basic/mkdir.c b/src/basic/mkdir.c -index c770e5ed32..1fd8816cd0 100644 ---- a/src/basic/mkdir.c -+++ b/src/basic/mkdir.c -@@ -16,6 +16,7 @@ - #include "stat-util.h" - #include "stdio-util.h" - #include "user-util.h" -+#include "missing_stdlib.h" - - int mkdirat_safe_internal( - int dir_fd, -diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c -index bf67f7e01a..409f8d8a73 100644 ---- a/src/basic/mountpoint-util.c -+++ b/src/basic/mountpoint-util.c -@@ -18,6 +18,7 @@ - #include "missing_stat.h" - #include "missing_syscall.h" - #include "mkdir.h" -+#include "missing_stdlib.h" - #include "mountpoint-util.h" - #include "nulstr-util.h" - #include "parse-util.h" -diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c -index 0430e33e40..f3728de026 100644 ---- a/src/basic/parse-util.c -+++ b/src/basic/parse-util.c -@@ -18,6 +18,7 @@ - #include "stat-util.h" - #include "string-util.h" - #include "strv.h" -+#include "missing_stdlib.h" - - int parse_boolean(const char *v) { - if (!v) -diff --git a/src/basic/path-lookup.c b/src/basic/path-lookup.c -index 4e3d59fc56..726e240df0 100644 ---- a/src/basic/path-lookup.c -+++ b/src/basic/path-lookup.c -@@ -16,6 +16,7 @@ - #include "strv.h" - #include "tmpfile-util.h" - #include "user-util.h" -+#include "missing_stdlib.h" - - int xdg_user_runtime_dir(char **ret, const char *suffix) { - const char *e; -diff --git a/src/basic/percent-util.c b/src/basic/percent-util.c -index cab9d0eaea..5f6ca258e9 100644 ---- a/src/basic/percent-util.c -+++ b/src/basic/percent-util.c -@@ -3,6 +3,7 @@ - #include "percent-util.h" - #include "string-util.h" - #include "parse-util.h" -+#include "missing_stdlib.h" - - static int parse_parts_value_whole(const char *p, const char *symbol) { - const char *pc, *n; -diff --git a/src/basic/proc-cmdline.c b/src/basic/proc-cmdline.c -index 522d8de1f4..7c129dc0fc 100644 ---- a/src/basic/proc-cmdline.c -+++ b/src/basic/proc-cmdline.c -@@ -16,6 +16,7 @@ - #include "string-util.h" - #include "strv.h" - #include "virt.h" -+#include "missing_stdlib.h" - - int proc_cmdline_filter_pid1_args(char **argv, char ***ret) { - enum { -diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c -index d7cfcd9105..6cb0ddf575 100644 ---- a/src/basic/procfs-util.c -+++ b/src/basic/procfs-util.c -@@ -12,6 +12,7 @@ - #include "procfs-util.h" - #include "stdio-util.h" - #include "string-util.h" -+#include "missing_stdlib.h" - - int procfs_get_pid_max(uint64_t *ret) { - _cleanup_free_ char *value = NULL; -diff --git a/src/basic/time-util.c b/src/basic/time-util.c -index f9014dc560..1d7840a5b5 100644 ---- a/src/basic/time-util.c -+++ b/src/basic/time-util.c -@@ -27,6 +27,7 @@ - #include "string-util.h" - #include "strv.h" - #include "time-util.h" -+#include "missing_stdlib.h" - - static clockid_t map_clock_id(clockid_t c) { - -diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c -index 12dfdf76fa..e66332519a 100644 ---- a/src/boot/bless-boot.c -+++ b/src/boot/bless-boot.c -@@ -22,6 +22,7 @@ - #include "terminal-util.h" - #include "verbs.h" - #include "virt.h" -+#include "missing_stdlib.h" - - static char **arg_path = NULL; - -diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c -index 8a9570fd21..ac4202e5ce 100644 ---- a/src/core/dbus-cgroup.c -+++ b/src/core/dbus-cgroup.c -@@ -25,6 +25,7 @@ - #include "parse-util.h" - #include "path-util.h" - #include "percent-util.h" -+#include "missing_stdlib.h" - #include "socket-util.h" - - BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", CGroupTasksMax, cgroup_tasks_max_resolve); -diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c -index 2d05ba7e1d..61a7de0037 100644 ---- a/src/core/dbus-execute.c -+++ b/src/core/dbus-execute.c -@@ -42,6 +42,7 @@ - #include "unit-printf.h" - #include "user-util.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput); - static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput); -diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c -index 7bb026af48..a86128e40c 100644 ---- a/src/core/dbus-util.c -+++ b/src/core/dbus-util.c -@@ -10,6 +10,7 @@ - #include "unit-printf.h" - #include "user-util.h" - #include "unit.h" -+#include "missing_stdlib.h" - - int bus_property_get_triggered_unit( - sd_bus *bus, -diff --git a/src/core/execute.c b/src/core/execute.c -index 8dbdfcf369..531bec4c92 100644 ---- a/src/core/execute.c -+++ b/src/core/execute.c -@@ -72,6 +72,7 @@ - #include "unit-serialize.h" - #include "user-util.h" - #include "utmp-wtmp.h" -+#include "missing_stdlib.h" - - static bool is_terminal_input(ExecInput i) { - return IN_SET(i, -diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c -index b8e3f7aadd..8ce8ca68d8 100644 ---- a/src/core/kmod-setup.c -+++ b/src/core/kmod-setup.c -@@ -13,6 +13,7 @@ - #include "string-util.h" - #include "strv.h" - #include "virt.h" -+#include "missing_stdlib.h" - - #if HAVE_KMOD - #include "module-util.h" -diff --git a/src/core/service.c b/src/core/service.c -index 42fffbbd67..80a8d05a19 100644 ---- a/src/core/service.c -+++ b/src/core/service.c -@@ -45,6 +45,7 @@ - #include "unit-name.h" - #include "unit.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - #define service_spawn(...) service_spawn_internal(__func__, __VA_ARGS__) - -diff --git a/src/coredump/coredump-vacuum.c b/src/coredump/coredump-vacuum.c -index 7e0c98cb7d..978a7f5874 100644 ---- a/src/coredump/coredump-vacuum.c -+++ b/src/coredump/coredump-vacuum.c -@@ -17,6 +17,7 @@ - #include "string-util.h" - #include "time-util.h" - #include "user-util.h" -+#include "missing_stdlib.h" - - #define DEFAULT_MAX_USE_LOWER (uint64_t) (1ULL*1024ULL*1024ULL) /* 1 MiB */ - #define DEFAULT_MAX_USE_UPPER (uint64_t) (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */ -diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c -index 016f3baa7f..b1def81313 100644 ---- a/src/fstab-generator/fstab-generator.c -+++ b/src/fstab-generator/fstab-generator.c -@@ -37,6 +37,7 @@ - #include "unit-name.h" - #include "virt.h" - #include "volatile-util.h" -+#include "missing_stdlib.h" - - typedef enum MountPointFlags { - MOUNT_NOAUTO = 1 << 0, -diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c -index 2d380bc7a7..d3f5612728 100644 ---- a/src/journal-remote/journal-remote-main.c -+++ b/src/journal-remote/journal-remote-main.c -@@ -27,6 +27,7 @@ - #include "stat-util.h" - #include "string-table.h" - #include "strv.h" -+#include "missing_stdlib.h" - - #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" - #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" -diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c -index 87e2f28841..58275f41f1 100644 ---- a/src/journal/journalctl.c -+++ b/src/journal/journalctl.c -@@ -77,6 +77,7 @@ - #include "unit-name.h" - #include "user-util.h" - #include "varlink.h" -+#include "missing_stdlib.h" - - #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) - #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */ -diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c -index ab8b06896d..43f9131205 100644 ---- a/src/libsystemd/sd-bus/bus-message.c -+++ b/src/libsystemd/sd-bus/bus-message.c -@@ -19,6 +19,7 @@ - #include "strv.h" - #include "time-util.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); - static int message_parse_fields(sd_bus_message *m); -diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c -index c25c40ff37..57a5da704f 100644 ---- a/src/libsystemd/sd-bus/bus-objects.c -+++ b/src/libsystemd/sd-bus/bus-objects.c -@@ -11,6 +11,7 @@ - #include "missing_capability.h" - #include "string-util.h" - #include "strv.h" -+#include "missing_stdlib.h" - - static int node_vtable_get_userdata( - sd_bus *bus, -diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c -index 5ade8e99aa..7553cf319d 100644 ---- a/src/libsystemd/sd-bus/bus-socket.c -+++ b/src/libsystemd/sd-bus/bus-socket.c -@@ -29,6 +29,7 @@ - #include "string-util.h" - #include "user-util.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - #define SNDBUF_SIZE (8*1024*1024) - -diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c -index 8befc97460..6ee4d4f595 100644 ---- a/src/libsystemd/sd-bus/sd-bus.c -+++ b/src/libsystemd/sd-bus/sd-bus.c -@@ -46,6 +46,7 @@ - #include "string-util.h" - #include "strv.h" - #include "user-util.h" -+#include "missing_stdlib.h" - - #define log_debug_bus_message(m) \ - do { \ -diff --git a/src/libsystemd/sd-bus/test-bus-benchmark.c b/src/libsystemd/sd-bus/test-bus-benchmark.c -index d988588de0..458df8df9a 100644 ---- a/src/libsystemd/sd-bus/test-bus-benchmark.c -+++ b/src/libsystemd/sd-bus/test-bus-benchmark.c -@@ -14,6 +14,7 @@ - #include "string-util.h" - #include "tests.h" - #include "time-util.h" -+#include "missing_stdlib.h" - - #define MAX_SIZE (2*1024*1024) - -diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c -index 7a1dd2569f..d187baad47 100644 ---- a/src/libsystemd/sd-journal/sd-journal.c -+++ b/src/libsystemd/sd-journal/sd-journal.c -@@ -44,6 +44,7 @@ - #include "strv.h" - #include "syslog-util.h" - #include "uid-alloc-range.h" -+#include "missing_stdlib.h" - - #define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC) - -diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c -index bf45974ca5..2cb7e930c0 100644 ---- a/src/login/pam_systemd.c -+++ b/src/login/pam_systemd.c -@@ -35,6 +35,7 @@ - #include "login-util.h" - #include "macro.h" - #include "missing_syscall.h" -+#include "missing_stdlib.h" - #include "pam-util.h" - #include "parse-util.h" - #include "path-util.h" -diff --git a/src/network/generator/network-generator.c b/src/network/generator/network-generator.c -index 48527a2c73..9777fe0561 100644 ---- a/src/network/generator/network-generator.c -+++ b/src/network/generator/network-generator.c -@@ -14,6 +14,7 @@ - #include "string-table.h" - #include "string-util.h" - #include "strv.h" -+#include "missing_stdlib.h" - - /* - # .network -diff --git a/src/nspawn/nspawn-settings.c b/src/nspawn/nspawn-settings.c -index 161b1c1c70..ba1c459f78 100644 ---- a/src/nspawn/nspawn-settings.c -+++ b/src/nspawn/nspawn-settings.c -@@ -16,6 +16,7 @@ - #include "string-util.h" - #include "strv.h" - #include "user-util.h" -+#include "missing_stdlib.h" - - Settings *settings_new(void) { - Settings *s; -diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c -index c64e79bdff..eda26b0b9a 100644 ---- a/src/nss-mymachines/nss-mymachines.c -+++ b/src/nss-mymachines/nss-mymachines.c -@@ -21,6 +21,7 @@ - #include "nss-util.h" - #include "signal-util.h" - #include "string-util.h" -+#include "missing_stdlib.h" - - static void setup_logging_once(void) { - static pthread_once_t once = PTHREAD_ONCE_INIT; -diff --git a/src/portable/portable.c b/src/portable/portable.c -index 3b2a37912f..835a3fdeaa 100644 ---- a/src/portable/portable.c -+++ b/src/portable/portable.c -@@ -42,6 +42,7 @@ - #include "strv.h" - #include "tmpfile-util.h" - #include "user-util.h" -+#include "missing_stdlib.h" - - /* Markers used in the first line of our 20-portable.conf unit file drop-in to determine, that a) the unit file was - * dropped there by the portable service logic and b) for which image it was dropped there. */ -diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c -index afa537f160..32ccee4ae5 100644 ---- a/src/resolve/resolvectl.c -+++ b/src/resolve/resolvectl.c -@@ -48,6 +48,7 @@ - #include "varlink.h" - #include "verb-log-control.h" - #include "verbs.h" -+#include "missing_stdlib.h" - - static int arg_family = AF_UNSPEC; - static int arg_ifindex = 0; -diff --git a/src/shared/bus-get-properties.c b/src/shared/bus-get-properties.c -index 53e5d6b99f..851ecd5644 100644 ---- a/src/shared/bus-get-properties.c -+++ b/src/shared/bus-get-properties.c -@@ -4,6 +4,7 @@ - #include "rlimit-util.h" - #include "stdio-util.h" - #include "string-util.h" -+#include "missing_stdlib.h" - - int bus_property_get_bool( - sd_bus *bus, -diff --git a/src/shared/bus-unit-procs.c b/src/shared/bus-unit-procs.c -index 8b462b5627..183ce1c18e 100644 ---- a/src/shared/bus-unit-procs.c -+++ b/src/shared/bus-unit-procs.c -@@ -11,6 +11,7 @@ - #include "sort-util.h" - #include "string-util.h" - #include "terminal-util.h" -+#include "missing_stdlib.h" - - struct CGroupInfo { - char *cgroup_path; -diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c -index 50de98941f..d47beccb0b 100644 ---- a/src/shared/bus-unit-util.c -+++ b/src/shared/bus-unit-util.c -@@ -50,6 +50,7 @@ - #include "unit-def.h" - #include "user-util.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - int bus_parse_unit_info(sd_bus_message *message, UnitInfo *u) { - assert(message); -diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c -index 4123152d93..74f148c8b4 100644 ---- a/src/shared/bus-util.c -+++ b/src/shared/bus-util.c -@@ -24,6 +24,7 @@ - #include "path-util.h" - #include "socket-util.h" - #include "stdio-util.h" -+#include "missing_stdlib.h" - - static int name_owner_change_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { - sd_event *e = ASSERT_PTR(userdata); -diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c -index b41c9b06ca..e69050a507 100644 ---- a/src/shared/dns-domain.c -+++ b/src/shared/dns-domain.c -@@ -18,6 +18,7 @@ - #include "string-util.h" - #include "strv.h" - #include "utf8.h" -+#include "missing_stdlib.h" - - int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { - const char *n; -diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c -index 83e9834bbf..74eaae6f5e 100644 ---- a/src/shared/journal-importer.c -+++ b/src/shared/journal-importer.c -@@ -16,6 +16,7 @@ - #include "string-util.h" - #include "strv.h" - #include "unaligned.h" -+#include "missing_stdlib.h" - - enum { - IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ -diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c -index 0a31be382f..92d629e7e0 100644 ---- a/src/shared/logs-show.c -+++ b/src/shared/logs-show.c -@@ -41,6 +41,7 @@ - #include "time-util.h" - #include "utf8.h" - #include "web-util.h" -+#include "missing_stdlib.h" - - /* up to three lines (each up to 100 characters) or 300 characters, whichever is less */ - #define PRINT_LINE_THRESHOLD 3 -diff --git a/src/shared/pager.c b/src/shared/pager.c -index 19deefab56..6b6d0af1a0 100644 ---- a/src/shared/pager.c -+++ b/src/shared/pager.c -@@ -25,6 +25,7 @@ - #include "string-util.h" - #include "strv.h" - #include "terminal-util.h" -+#include "missing_stdlib.h" - - static pid_t pager_pid = 0; - -diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c -index 287fd6c181..8f8d5493da 100644 ---- a/src/socket-proxy/socket-proxyd.c -+++ b/src/socket-proxy/socket-proxyd.c -@@ -27,6 +27,7 @@ - #include "set.h" - #include "socket-util.h" - #include "string-util.h" -+#include "missing_stdlib.h" - - #define BUFFER_SIZE (256 * 1024) - -diff --git a/src/test/test-hexdecoct.c b/src/test/test-hexdecoct.c -index f884008660..987e180697 100644 ---- a/src/test/test-hexdecoct.c -+++ b/src/test/test-hexdecoct.c -@@ -7,6 +7,7 @@ - #include "macro.h" - #include "random-util.h" - #include "string-util.h" -+#include "missing_stdlib.h" - #include "tests.h" - - TEST(hexchar) { -diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c -index 91b40088f4..f528a46b8e 100644 ---- a/src/udev/udev-builtin-net_id.c -+++ b/src/udev/udev-builtin-net_id.c -@@ -39,6 +39,7 @@ - #include "strv.h" - #include "strxcpyx.h" - #include "udev-builtin.h" -+#include "missing_stdlib.h" - - #define ONBOARD_14BIT_INDEX_MAX ((1U << 14) - 1) - #define ONBOARD_16BIT_INDEX_MAX ((1U << 16) - 1) -diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c -index 467c9a6ad3..f74dae60af 100644 ---- a/src/udev/udev-builtin-path_id.c -+++ b/src/udev/udev-builtin-path_id.c -@@ -24,6 +24,7 @@ - #include "sysexits.h" - #include "udev-builtin.h" - #include "udev-util.h" -+#include "missing_stdlib.h" - - _printf_(2,3) - static void path_prepend(char **path, const char *fmt, ...) { -diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c -index ed22c8b679..19ebe20237 100644 ---- a/src/udev/udev-event.c -+++ b/src/udev/udev-event.c -@@ -16,6 +16,7 @@ - #include "udev-util.h" - #include "udev-watch.h" - #include "user-util.h" -+#include "missing_stdlib.h" - - UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level) { - UdevEvent *event; -diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c -index c242549654..e5b8df5c2d 100644 ---- a/src/udev/udev-rules.c -+++ b/src/udev/udev-rules.c -@@ -41,6 +41,7 @@ - #include "udev-util.h" - #include "user-util.h" - #include "virt.h" -+#include "missing_stdlib.h" - - #define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d")) - diff --git a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch b/meta/recipes-core/systemd/systemd/0004-missing_type.h-add-comparison_fn_t.patch similarity index 87% rename from meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch rename to meta/recipes-core/systemd/systemd/0004-missing_type.h-add-comparison_fn_t.patch index 49871d16a8..f4456f3c15 100644 --- a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch +++ b/meta/recipes-core/systemd/systemd/0004-missing_type.h-add-comparison_fn_t.patch @@ -1,7 +1,7 @@ -From d4b0bb9c7651017985fdd75469f37c34ce2f2c50 Mon Sep 17 00:00:00 2001 +From 34b7e1ed3b9a896db6fad435fd141c385c7337d1 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 25 Feb 2019 13:55:12 +0800 -Subject: [PATCH] missing_type.h: add comparison_fn_t +Subject: [PATCH 04/27] missing_type.h: add comparison_fn_t Make it work with musl where comparison_fn_t and is not provided. @@ -21,12 +21,12 @@ Signed-off-by: Jiaqing Zhao 3 files changed, 6 insertions(+) diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h -index f6233090a9..6c0456349d 100644 +index 1d17705c35..fc33b76ec1 100644 --- a/src/basic/missing_type.h +++ b/src/basic/missing_type.h @@ -10,3 +10,7 @@ #if !HAVE_CHAR16_T - #define char16_t uint16_t + # define char16_t uint16_t #endif + +#ifndef __GLIBC__ @@ -45,10 +45,10 @@ index 9c818bd747..ef10c8be2c 100644 /* This is the same as glibc's internal __compar_d_fn_t type. glibc exports a public comparison_fn_t, for the * external type __compar_fn_t, but doesn't do anything similar for __compar_d_fn_t. Let's hence do that diff --git a/src/libsystemd/sd-journal/catalog.c b/src/libsystemd/sd-journal/catalog.c -index ae91534198..7f67eea38b 100644 +index a0b673f65f..29dd2fee16 100644 --- a/src/libsystemd/sd-journal/catalog.c +++ b/src/libsystemd/sd-journal/catalog.c -@@ -28,6 +28,7 @@ +@@ -29,6 +29,7 @@ #include "string-util.h" #include "strv.h" #include "tmpfile-util.h" @@ -56,3 +56,6 @@ index ae91534198..7f67eea38b 100644 const char * const catalog_file_dirs[] = { "/usr/local/lib/systemd/catalog/", +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch b/meta/recipes-core/systemd/systemd/0005-add-fallback-parse_printf_format-implementation.patch similarity index 96% rename from meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch rename to meta/recipes-core/systemd/systemd/0005-add-fallback-parse_printf_format-implementation.patch index 593d6261e1..b0865b32af 100644 --- a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch +++ b/meta/recipes-core/systemd/systemd/0005-add-fallback-parse_printf_format-implementation.patch @@ -1,7 +1,7 @@ -From 776913624aaf696a3b2920b8d7506b3aae042bf1 Mon Sep 17 00:00:00 2001 +From 4a4005583e2debe491850229aa5ae2a97770532d Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Sat, 22 May 2021 20:26:24 +0200 -Subject: [PATCH] add fallback parse_printf_format implementation +Subject: [PATCH 05/27] add fallback parse_printf_format implementation Upstream-Status: Inappropriate [musl specific] @@ -22,22 +22,22 @@ Signed-off-by: Scott Murray create mode 100644 src/basic/parse-printf-format.h diff --git a/meson.build b/meson.build -index 187e7b216d..c4694a9ddc 100644 +index 52723bef09..e20bf3af8a 100644 --- a/meson.build +++ b/meson.build -@@ -727,6 +727,7 @@ endif - foreach header : ['crypt.h', +@@ -753,6 +753,7 @@ foreach header : ['crypt.h', 'linux/memfd.h', + 'linux/time_types.h', 'linux/vm_sockets.h', + 'printf.h', 'sys/auxv.h', + 'sys/sdt.h', 'threads.h', - 'valgrind/memcheck.h', diff --git a/src/basic/meson.build b/src/basic/meson.build -index 111253e3a5..bdaa2fc5e4 100644 +index 9a214575a5..b49b6ade56 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build -@@ -183,6 +183,11 @@ endforeach +@@ -189,6 +189,11 @@ endforeach basic_sources += generated_gperf_headers @@ -392,7 +392,7 @@ index 0000000000..47be7522d7 + +#endif /* HAVE_PRINTF_H */ diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h -index 4e93ac90c9..f9deb6f662 100644 +index 0a2239d022..43a765dacd 100644 --- a/src/basic/stdio-util.h +++ b/src/basic/stdio-util.h @@ -1,12 +1,12 @@ @@ -408,9 +408,9 @@ index 4e93ac90c9..f9deb6f662 100644 +#include "parse-printf-format.h" _printf_(3, 4) - static inline char *snprintf_ok(char *buf, size_t len, const char *format, ...) { + static inline char* snprintf_ok(char *buf, size_t len, const char *format, ...) { diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c -index be23b2fe75..69a2eb6404 100644 +index 7d02b57d7b..75e8e08add 100644 --- a/src/libsystemd/sd-journal/journal-send.c +++ b/src/libsystemd/sd-journal/journal-send.c @@ -2,7 +2,6 @@ @@ -429,3 +429,6 @@ index be23b2fe75..69a2eb6404 100644 #define SNDBUF_SIZE (8*1024*1024) +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch b/meta/recipes-core/systemd/systemd/0006-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch similarity index 91% rename from meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch rename to meta/recipes-core/systemd/systemd/0006-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch index 15d25e9f19..e7a0abcf9a 100644 --- a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch +++ b/meta/recipes-core/systemd/systemd/0006-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch @@ -1,7 +1,8 @@ -From 2903e42c7cd727a2374d21b78950308de792ebe8 Mon Sep 17 00:00:00 2001 +From ed836c3478e1193e99e37d50db96d124796a3322 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 25 Feb 2019 14:56:21 +0800 -Subject: [PATCH] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not defined +Subject: [PATCH 06/27] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not + defined If the standard library doesn't provide brace expansion users just won't get it. @@ -63,11 +64,11 @@ index 802ca8c655..23818a67c6 100644 return -ENOENT; if (k == GLOB_NOSPACE) diff --git a/src/test/test-glob-util.c b/src/test/test-glob-util.c -index 9b3e73cce0..3790ba3be5 100644 +index 49d71f15c7..0a49ebcc17 100644 --- a/src/test/test-glob-util.c +++ b/src/test/test-glob-util.c @@ -34,6 +34,12 @@ TEST(glob_first) { - assert_se(first == NULL); + ASSERT_NULL(first); } +/* Don't fail if the standard library @@ -114,7 +115,7 @@ index 9b3e73cce0..3790ba3be5 100644 (void) rm_rf(template, REMOVE_ROOT|REMOVE_PHYSICAL); diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c -index 6a1c7725a1..138b3ac561 100644 +index 807925f199..b4f86fc611 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -73,6 +73,12 @@ @@ -130,7 +131,7 @@ index 6a1c7725a1..138b3ac561 100644 /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates * them in the file system. This is intended to be used to create * properly owned directories beneath /tmp, /var/tmp, /run, which are -@@ -2426,7 +2432,9 @@ finish: +@@ -2570,7 +2576,9 @@ finish: static int glob_item(Context *c, Item *i, action_t action) { _cleanup_globfree_ glob_t g = { @@ -138,9 +139,9 @@ index 6a1c7725a1..138b3ac561 100644 .gl_opendir = (void *(*)(const char *)) opendir_nomod, +#endif }; - int r = 0, k; + int r; -@@ -2453,7 +2461,9 @@ static int glob_item_recursively( +@@ -2598,7 +2606,9 @@ static int glob_item_recursively( fdaction_t action) { _cleanup_globfree_ glob_t g = { @@ -148,5 +149,8 @@ index 6a1c7725a1..138b3ac561 100644 .gl_opendir = (void *(*)(const char *)) opendir_nomod, +#endif }; - int r = 0, k; + int r; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch b/meta/recipes-core/systemd/systemd/0007-add-missing-FTW_-macros-for-musl.patch similarity index 85% rename from meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch rename to meta/recipes-core/systemd/systemd/0007-add-missing-FTW_-macros-for-musl.patch index deb0e83b6d..474a7d38d8 100644 --- a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch +++ b/meta/recipes-core/systemd/systemd/0007-add-missing-FTW_-macros-for-musl.patch @@ -1,7 +1,7 @@ -From dcd9639657e4122b7665b01a067219f990ee3ace Mon Sep 17 00:00:00 2001 +From 8320725f1a9088623da8753c7077473b98a63107 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 25 Feb 2019 15:00:06 +0800 -Subject: [PATCH] add missing FTW_ macros for musl +Subject: [PATCH 07/27] add missing FTW_ macros for musl This is to avoid build failures like below for musl. @@ -16,7 +16,7 @@ Signed-off-by: Chen Qi 2 files changed, 5 insertions(+) diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h -index 6c0456349d..73a5b90e3c 100644 +index fc33b76ec1..34a36d83f0 100644 --- a/src/basic/missing_type.h +++ b/src/basic/missing_type.h @@ -14,3 +14,7 @@ @@ -39,3 +39,6 @@ index 8684d064ec..70fc2b5376 100644 static char **list_nftw = NULL; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch b/meta/recipes-core/systemd/systemd/0008-Use-uintmax_t-for-handling-rlim_t.patch similarity index 88% rename from meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch rename to meta/recipes-core/systemd/systemd/0008-Use-uintmax_t-for-handling-rlim_t.patch index f02675604d..c8598ed2ea 100644 --- a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch +++ b/meta/recipes-core/systemd/systemd/0008-Use-uintmax_t-for-handling-rlim_t.patch @@ -1,7 +1,7 @@ -From c58933386caa8e45b5e814ec4ff210b18ab401da Mon Sep 17 00:00:00 2001 +From 41abe1a4136babfe5df63e9561dcf29d3c8fe6e9 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 25 Feb 2019 15:12:41 +0800 -Subject: [PATCH] Use uintmax_t for handling rlim_t +Subject: [PATCH 08/27] Use uintmax_t for handling rlim_t PRIu{32,64} is not right format to represent rlim_t type therefore use %ju and typecast the rlim_t variables to @@ -27,10 +27,10 @@ Signed-off-by: Chen Qi 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/basic/format-util.h b/src/basic/format-util.h -index 8719df3e29..9becc96066 100644 +index ba7cff6a8b..2736abb07b 100644 --- a/src/basic/format-util.h +++ b/src/basic/format-util.h -@@ -34,13 +34,7 @@ assert_cc(sizeof(gid_t) == sizeof(uint32_t)); +@@ -42,13 +42,7 @@ assert_cc(sizeof(gid_t) == sizeof(uint32_t)); # error Unknown timex member size #endif @@ -46,10 +46,10 @@ index 8719df3e29..9becc96066 100644 #if SIZEOF_DEV_T == 8 # define DEV_FMT "%" PRIu64 diff --git a/src/basic/rlimit-util.c b/src/basic/rlimit-util.c -index c1f0b2b974..61c5412582 100644 +index a9f7b87f28..059c67731d 100644 --- a/src/basic/rlimit-util.c +++ b/src/basic/rlimit-util.c -@@ -44,7 +44,7 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) { +@@ -47,7 +47,7 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) { fixed.rlim_max == highest.rlim_max) return 0; @@ -58,7 +58,7 @@ index c1f0b2b974..61c5412582 100644 return RET_NERRNO(setrlimit(resource, &fixed)); } -@@ -307,13 +307,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) { +@@ -310,13 +310,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) { if (rl->rlim_cur >= RLIM_INFINITY && rl->rlim_max >= RLIM_INFINITY) r = free_and_strdup(&s, "infinity"); else if (rl->rlim_cur >= RLIM_INFINITY) @@ -76,7 +76,7 @@ index c1f0b2b974..61c5412582 100644 if (r < 0) return -ENOMEM; -@@ -422,7 +422,7 @@ int rlimit_nofile_safe(void) { +@@ -425,7 +425,7 @@ int rlimit_nofile_safe(void) { rl.rlim_max = MIN(rl.rlim_max, (rlim_t) read_nr_open()); rl.rlim_cur = MIN((rlim_t) FD_SETSIZE, rl.rlim_max); if (setrlimit(RLIMIT_NOFILE, &rl) < 0) @@ -86,10 +86,10 @@ index c1f0b2b974..61c5412582 100644 return 1; } diff --git a/src/core/execute.c b/src/core/execute.c -index 531bec4c92..602a95f674 100644 +index 513e95e09d..0e269617f8 100644 --- a/src/core/execute.c +++ b/src/core/execute.c -@@ -1041,9 +1041,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) { +@@ -1067,9 +1067,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) { for (unsigned i = 0; i < RLIM_NLIMITS; i++) if (c->rlimit[i]) { fprintf(f, "%sLimit%s: " RLIM_FMT "\n", @@ -101,3 +101,6 @@ index 531bec4c92..602a95f674 100644 } if (c->ioprio_set) { +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch b/meta/recipes-core/systemd/systemd/0009-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch similarity index 96% rename from meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch rename to meta/recipes-core/systemd/systemd/0009-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch index 1d4ce33712..851dcbd553 100644 --- a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch +++ b/meta/recipes-core/systemd/systemd/0009-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch @@ -1,7 +1,7 @@ -From 5bf8235bc5c802908aa5d95740350927d87e953a Mon Sep 17 00:00:00 2001 +From 8af5d1e3c0dc7e71f7a4aee0f539a5d772d47354 Mon Sep 17 00:00:00 2001 From: Andre McCurdy Date: Tue, 10 Oct 2017 14:33:30 -0700 -Subject: [PATCH] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat() +Subject: [PATCH 09/27] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat() Avoid using AT_SYMLINK_NOFOLLOW flag. It doesn't seem like the right thing to do and it's not portable (not supported by musl). See: @@ -31,7 +31,7 @@ Signed-off-by: Andre McCurdy 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h -index 6a1e2e76d1..c3f7235e09 100644 +index 3e2db95304..d5747416b0 100644 --- a/src/basic/fs-util.h +++ b/src/basic/fs-util.h @@ -49,8 +49,27 @@ int futimens_opath(int fd, const struct timespec ts[2]); @@ -94,3 +94,6 @@ index a4e2dae245..67aa8ea1f2 100644 continue; } +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch b/meta/recipes-core/systemd/systemd/0010-Define-glibc-compatible-basename-for-non-glibc-syste.patch similarity index 82% rename from meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch rename to meta/recipes-core/systemd/systemd/0010-Define-glibc-compatible-basename-for-non-glibc-syste.patch index 1ab23553f9..162650725d 100644 --- a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch +++ b/meta/recipes-core/systemd/systemd/0010-Define-glibc-compatible-basename-for-non-glibc-syste.patch @@ -1,7 +1,8 @@ -From d98f6bd4d8acdc4c1a5bff4c699f5004a6ebccce Mon Sep 17 00:00:00 2001 +From ea8e85d92f67a7af8577a4ce7c67c7aaee65d10c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 27 May 2018 08:36:44 -0700 -Subject: [PATCH] Define glibc compatible basename() for non-glibc systems +Subject: [PATCH 10/27] Define glibc compatible basename() for non-glibc + systems Fixes builds with musl, even though systemd is adamant about using non-posix basename implementation, we have a way out @@ -14,7 +15,7 @@ Signed-off-by: Khem Raj 1 file changed, 4 insertions(+) diff --git a/src/basic/string-util.h b/src/basic/string-util.h -index b6d8be3083..0a29036c4c 100644 +index ff5efbcf55..d1a6bb0e76 100644 --- a/src/basic/string-util.h +++ b/src/basic/string-util.h @@ -26,6 +26,10 @@ @@ -28,3 +29,6 @@ index b6d8be3083..0a29036c4c 100644 static inline char* strstr_ptr(const char *haystack, const char *needle) { if (!haystack || !needle) return NULL; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0011-Do-not-disable-buffering-when-writing-to-oom_score_a.patch similarity index 82% rename from meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch rename to meta/recipes-core/systemd/systemd/0011-Do-not-disable-buffering-when-writing-to-oom_score_a.patch index 98ab397eff..60cec6dc7e 100644 --- a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch +++ b/meta/recipes-core/systemd/systemd/0011-Do-not-disable-buffering-when-writing-to-oom_score_a.patch @@ -1,7 +1,7 @@ -From f3943f58f3c8a9d20dcada56eb5ca5f673a49b3d Mon Sep 17 00:00:00 2001 +From 7c8634c441401b034cd4bcf4b916a7042076fca8 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Wed, 4 Jul 2018 15:00:44 +0800 -Subject: [PATCH] Do not disable buffering when writing to oom_score_adj +Subject: [PATCH 11/27] Do not disable buffering when writing to oom_score_adj On musl, disabling buffering when writing to oom_score_adj will cause the following error. @@ -24,10 +24,10 @@ Signed-off-by: Scott Murray 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/process-util.c b/src/basic/process-util.c -index 4492e7ded2..b61a2aba74 100644 +index c9d968dee0..7d6d3ce7db 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c -@@ -1716,7 +1716,7 @@ int set_oom_score_adjust(int value) { +@@ -1816,7 +1816,7 @@ int set_oom_score_adjust(int value) { xsprintf(t, "%i", value); return write_string_file("/proc/self/oom_score_adj", t, @@ -36,3 +36,6 @@ index 4492e7ded2..b61a2aba74 100644 } int get_oom_score_adjust(int *ret) { +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch b/meta/recipes-core/systemd/systemd/0012-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch similarity index 92% rename from meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch rename to meta/recipes-core/systemd/systemd/0012-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch index e1ffe4ddb5..aa3c45cb5f 100644 --- a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch +++ b/meta/recipes-core/systemd/systemd/0012-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch @@ -1,7 +1,7 @@ -From 5305c5f18236a9d7f2e633ea6ad317e09e8f29d5 Mon Sep 17 00:00:00 2001 +From 4a2df0bba1741914617ca1271e2bc68a5d9e5dac Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Tue, 10 Jul 2018 15:40:17 +0800 -Subject: [PATCH] distinguish XSI-compliant strerror_r from GNU-specifi +Subject: [PATCH 12/27] distinguish XSI-compliant strerror_r from GNU-specifi strerror_r XSI-compliant strerror_r and GNU-specifi strerror_r are different. @@ -55,7 +55,7 @@ index f415797700..a5c6e9a3bd 100644 static bool map_ok(const sd_bus_error_map *map) { diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c -index 69a2eb6404..1561859650 100644 +index 75e8e08add..41e5c7c2b8 100644 --- a/src/libsystemd/sd-journal/journal-send.c +++ b/src/libsystemd/sd-journal/journal-send.c @@ -361,7 +361,12 @@ static int fill_iovec_perror_and_send(const char *message, int skip, struct iove @@ -71,3 +71,6 @@ index 69a2eb6404..1561859650 100644 if (errno == 0) { char error[STRLEN("ERRNO=") + DECIMAL_STR_MAX(int) + 1]; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch b/meta/recipes-core/systemd/systemd/0013-avoid-redefinition-of-prctl_mm_map-structure.patch similarity index 71% rename from meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch rename to meta/recipes-core/systemd/systemd/0013-avoid-redefinition-of-prctl_mm_map-structure.patch index 3075f9d003..c48bd58383 100644 --- a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch +++ b/meta/recipes-core/systemd/systemd/0013-avoid-redefinition-of-prctl_mm_map-structure.patch @@ -1,7 +1,7 @@ -From c866c8652f06af4cd0b9bd7eedc606449f432b95 Mon Sep 17 00:00:00 2001 +From 846b8f16cf07d9187261e06701a75eb208caa707 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 25 Feb 2019 15:44:54 +0800 -Subject: [PATCH] avoid redefinition of prctl_mm_map structure +Subject: [PATCH 13/27] avoid redefinition of prctl_mm_map structure Fix the following compile failure: error: redefinition of 'struct prctl_mm_map' @@ -14,7 +14,7 @@ Signed-off-by: Chen Qi 1 file changed, 2 insertions(+) diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h -index 7d9e395c92..88c2d7dfac 100644 +index 2c9f9f6c50..65a984b564 100644 --- a/src/basic/missing_prctl.h +++ b/src/basic/missing_prctl.h @@ -1,7 +1,9 @@ @@ -25,5 +25,8 @@ index 7d9e395c92..88c2d7dfac 100644 #include +#endif - /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */ - #ifndef PR_CAP_AMBIENT + #include "macro.h" + +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch b/meta/recipes-core/systemd/systemd/0014-do-not-disable-buffer-in-writing-files.patch similarity index 84% rename from meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch rename to meta/recipes-core/systemd/systemd/0014-do-not-disable-buffer-in-writing-files.patch index 0fec84724d..e624c2d71e 100644 --- a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch +++ b/meta/recipes-core/systemd/systemd/0014-do-not-disable-buffer-in-writing-files.patch @@ -1,7 +1,7 @@ -From 8464b845e6df1be303e09274c13e653072701671 Mon Sep 17 00:00:00 2001 +From 88694101bcac461c39049962ce97ce579cc07e13 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Fri, 1 Mar 2019 15:22:15 +0800 -Subject: [PATCH] do not disable buffer in writing files +Subject: [PATCH 14/27] do not disable buffer in writing files Do not disable buffer in writing files, otherwise we get failure at boot for musl like below. @@ -35,7 +35,7 @@ Signed-off-by: Chen Qi src/nspawn/nspawn-cgroup.c | 2 +- src/nspawn/nspawn.c | 6 +++--- src/shared/binfmt-util.c | 2 +- - src/shared/cgroup-setup.c | 4 ++-- + src/shared/cgroup-setup.c | 6 +++--- src/shared/coredump-util.c | 4 ++-- src/shared/hibernate-util.c | 4 ++-- src/shared/smack-util.c | 2 +- @@ -44,22 +44,22 @@ Signed-off-by: Chen Qi src/storagetm/storagetm.c | 24 ++++++++++++------------ src/udev/udev-rules.c | 1 - src/vconsole/vconsole-setup.c | 2 +- - 22 files changed, 50 insertions(+), 51 deletions(-) + 22 files changed, 51 insertions(+), 52 deletions(-) diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c -index d2be79622f..e65fecb68d 100644 +index 553ee6075a..a3704baf6a 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c -@@ -417,7 +417,7 @@ int cg_kill_kernel_sigkill(const char *path) { +@@ -457,7 +457,7 @@ int cg_kill_kernel_sigkill(const char *path) { if (r < 0) return r; - r = write_string_file(killfile, "1", WRITE_STRING_FILE_DISABLE_BUFFER); + r = write_string_file(killfile, "1", 0); if (r < 0) - return r; + return log_debug_errno(r, "Failed to write to cgroup.kill for cgroup '%s': %m", path); -@@ -843,7 +843,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { +@@ -885,7 +885,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { sc = strstrip(contents); if (isempty(sc)) { @@ -68,7 +68,7 @@ index d2be79622f..e65fecb68d 100644 if (r < 0) return r; } else if (!path_equal(sc, agent)) -@@ -861,7 +861,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { +@@ -903,7 +903,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { sc = strstrip(contents); if (streq(sc, "0")) { @@ -77,7 +77,7 @@ index d2be79622f..e65fecb68d 100644 if (r < 0) return r; -@@ -888,7 +888,7 @@ int cg_uninstall_release_agent(const char *controller) { +@@ -930,7 +930,7 @@ int cg_uninstall_release_agent(const char *controller) { if (r < 0) return r; @@ -86,7 +86,7 @@ index d2be79622f..e65fecb68d 100644 if (r < 0) return r; -@@ -898,7 +898,7 @@ int cg_uninstall_release_agent(const char *controller) { +@@ -940,7 +940,7 @@ int cg_uninstall_release_agent(const char *controller) { if (r < 0) return r; @@ -95,7 +95,7 @@ index d2be79622f..e65fecb68d 100644 if (r < 0) return r; -@@ -1814,7 +1814,7 @@ int cg_set_attribute(const char *controller, const char *path, const char *attri +@@ -1833,7 +1833,7 @@ int cg_set_attribute(const char *controller, const char *path, const char *attri if (r < 0) return r; @@ -105,29 +105,29 @@ index d2be79622f..e65fecb68d 100644 int cg_get_attribute(const char *controller, const char *path, const char *attribute, char **ret) { diff --git a/src/basic/namespace-util.c b/src/basic/namespace-util.c -index 2101f617ad..63817bae17 100644 +index 5b4e43f921..42a84ded55 100644 --- a/src/basic/namespace-util.c +++ b/src/basic/namespace-util.c -@@ -227,12 +227,12 @@ int userns_acquire(const char *uid_map, const char *gid_map) { +@@ -325,12 +325,12 @@ int userns_acquire(const char *uid_map, const char *gid_map) { freeze(); xsprintf(path, "/proc/" PID_FMT "/uid_map", pid); - r = write_string_file(path, uid_map, WRITE_STRING_FILE_DISABLE_BUFFER); + r = write_string_file(path, uid_map, 0); if (r < 0) - return log_error_errno(r, "Failed to write UID map: %m"); + return log_debug_errno(r, "Failed to write UID map: %m"); xsprintf(path, "/proc/" PID_FMT "/gid_map", pid); - r = write_string_file(path, gid_map, WRITE_STRING_FILE_DISABLE_BUFFER); + r = write_string_file(path, gid_map, 0); if (r < 0) - return log_error_errno(r, "Failed to write GID map: %m"); + return log_debug_errno(r, "Failed to write GID map: %m"); diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c -index 6cb0ddf575..247cf9e1d1 100644 +index d7cfcd9105..58fb5918a3 100644 --- a/src/basic/procfs-util.c +++ b/src/basic/procfs-util.c -@@ -64,13 +64,13 @@ int procfs_tasks_set_limit(uint64_t limit) { +@@ -63,13 +63,13 @@ int procfs_tasks_set_limit(uint64_t limit) { * decrease it, as threads-max is the much more relevant sysctl. */ if (limit > pid_max-1) { sprintf(buffer, "%" PRIu64, limit+1); /* Add one, since PID 0 is not a valid PID */ @@ -144,7 +144,7 @@ index 6cb0ddf575..247cf9e1d1 100644 uint64_t threads_max; diff --git a/src/basic/sysctl-util.c b/src/basic/sysctl-util.c -index b66a6622ae..8d1c93008a 100644 +index 9a1933f579..7d6fc65ee1 100644 --- a/src/basic/sysctl-util.c +++ b/src/basic/sysctl-util.c @@ -58,7 +58,7 @@ int sysctl_write(const char *property, const char *value) { @@ -188,23 +188,23 @@ index d21f3f79ff..258607cc7e 100644 log_warning_errno(r, "Failed to flush binfmt_misc rules, ignoring: %m"); else diff --git a/src/core/cgroup.c b/src/core/cgroup.c -index 61ac4df1a6..ea18970196 100644 +index 34fd2a250c..cb1a6d01eb 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c -@@ -4578,7 +4578,7 @@ int unit_cgroup_freezer_action(Unit *u, FreezerAction action) { - u->freezer_state = FREEZER_THAWING; - } +@@ -5173,7 +5173,7 @@ int unit_cgroup_freezer_action(Unit *u, FreezerAction action) { + freezer_state_to_string(u->freezer_state), + freezer_state_to_string(next)); -- r = write_string_file(path, one_zero(action == FREEZER_FREEZE), WRITE_STRING_FILE_DISABLE_BUFFER); -+ r = write_string_file(path, one_zero(action == FREEZER_FREEZE), 0); +- r = write_string_file(path, one_zero(target == FREEZER_FROZEN), WRITE_STRING_FILE_DISABLE_BUFFER); ++ r = write_string_file(path, one_zero(target == FREEZER_FROZEN), 0); if (r < 0) return r; diff --git a/src/core/main.c b/src/core/main.c -index 1c0030a75f..7108a87d46 100644 +index 4b8a315d86..051a31ba84 100644 --- a/src/core/main.c +++ b/src/core/main.c -@@ -1678,7 +1678,7 @@ static void initialize_core_pattern(bool skip_setup) { +@@ -1789,7 +1789,7 @@ static void initialize_core_pattern(bool skip_setup) { if (getpid_cached() != 1) return; @@ -240,23 +240,24 @@ index 7ea902b6f9..1aef2988d0 100644 log_warning_errno(r, "Failed to set SMACK netlabel rule \"127.0.0.1 -CIPSO\": %m"); #endif diff --git a/src/home/homework.c b/src/home/homework.c -index 066483e342..5f92dd7064 100644 +index 482db23dbc..ed6b8d271f 100644 --- a/src/home/homework.c +++ b/src/home/homework.c -@@ -278,7 +278,7 @@ static void drop_caches_now(void) { - * for details. We write "2" into /proc/sys/vm/drop_caches to ensure dentries/inodes are flushed, but +@@ -302,8 +302,8 @@ static void drop_caches_now(void) { + /* Drop file system caches now. See https://docs.kernel.org/admin-guide/sysctl/vm.html + * for details. We write "3" into /proc/sys/vm/drop_caches to ensure dentries/inodes are flushed, but * not more. */ ++ r = write_string_file("/proc/sys/vm/drop_caches", "3\n", 0); -- r = write_string_file("/proc/sys/vm/drop_caches", "2\n", WRITE_STRING_FILE_DISABLE_BUFFER); -+ r = write_string_file("/proc/sys/vm/drop_caches", "2\n", 0); +- r = write_string_file("/proc/sys/vm/drop_caches", "3\n", WRITE_STRING_FILE_DISABLE_BUFFER); if (r < 0) log_warning_errno(r, "Failed to drop caches, ignoring: %m"); else diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c -index 01e66b4658..f3ea82ca1b 100644 +index d8d151835c..268cb65ec7 100644 --- a/src/libsystemd/sd-device/sd-device.c +++ b/src/libsystemd/sd-device/sd-device.c -@@ -2516,7 +2516,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr, +@@ -2499,7 +2499,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr, if (!value) return -ENOMEM; @@ -266,10 +267,10 @@ index 01e66b4658..f3ea82ca1b 100644 /* On failure, clear cache entry, as we do not know how it fails. */ device_remove_cached_sysattr_value(device, sysattr); diff --git a/src/nspawn/nspawn-cgroup.c b/src/nspawn/nspawn-cgroup.c -index a5002437c6..b12e6cd9c9 100644 +index 4f28b4a225..c93c2c33b5 100644 --- a/src/nspawn/nspawn-cgroup.c +++ b/src/nspawn/nspawn-cgroup.c -@@ -124,7 +124,7 @@ int sync_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift) { +@@ -93,7 +93,7 @@ int sync_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift) { fn = strjoina(tree, cgroup, "/cgroup.procs"); sprintf(pid_string, PID_FMT, pid); @@ -279,10 +280,10 @@ index a5002437c6..b12e6cd9c9 100644 log_error_errno(r, "Failed to move process: %m"); goto finish; diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c -index 0600f3e014..ea369c32b2 100644 +index 5842d3ba8f..44ff9d946c 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c -@@ -2690,7 +2690,7 @@ static int reset_audit_loginuid(void) { +@@ -2741,7 +2741,7 @@ static int reset_audit_loginuid(void) { if (streq(p, "4294967295")) return 0; @@ -291,7 +292,7 @@ index 0600f3e014..ea369c32b2 100644 if (r < 0) { log_error_errno(r, "Failed to reset audit login UID. This probably means that your kernel is too\n" -@@ -4143,7 +4143,7 @@ static int setup_uid_map( +@@ -4450,7 +4450,7 @@ static int setup_uid_map( return log_oom(); xsprintf(uid_map, "/proc/" PID_FMT "/uid_map", pid); @@ -300,7 +301,7 @@ index 0600f3e014..ea369c32b2 100644 if (r < 0) return log_error_errno(r, "Failed to write UID map: %m"); -@@ -4153,7 +4153,7 @@ static int setup_uid_map( +@@ -4460,7 +4460,7 @@ static int setup_uid_map( return log_oom(); xsprintf(uid_map, "/proc/" PID_FMT "/gid_map", pid); @@ -323,10 +324,10 @@ index a26175474b..1413a9c72c 100644 return log_warning_errno(r, "Failed to unregister binfmt_misc entries: %m"); diff --git a/src/shared/cgroup-setup.c b/src/shared/cgroup-setup.c -index 934a16eaf3..c921ced861 100644 +index 093b6d0d22..89d0ac612b 100644 --- a/src/shared/cgroup-setup.c +++ b/src/shared/cgroup-setup.c -@@ -351,7 +351,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) { +@@ -364,7 +364,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) { xsprintf(c, PID_FMT "\n", pid); @@ -335,7 +336,16 @@ index 934a16eaf3..c921ced861 100644 if (r == -EOPNOTSUPP && cg_is_threaded(path) > 0) /* When the threaded mode is used, we cannot read/write the file. Let's return recognizable error. */ return -EUCLEAN; -@@ -966,7 +966,7 @@ int cg_enable_everywhere( +@@ -395,7 +395,7 @@ int cg_fd_attach(int fd, pid_t pid) { + + xsprintf(c, PID_FMT "\n", pid); + +- return write_string_file_at(fd, "cgroup.procs", c, WRITE_STRING_FILE_DISABLE_BUFFER); ++ return write_string_file_at(fd, "cgroup.procs", c, 0); + } + + int cg_attach_fallback(const char *controller, const char *path, pid_t pid) { +@@ -974,7 +974,7 @@ int cg_enable_everywhere( return log_debug_errno(errno, "Failed to open cgroup.subtree_control file of %s: %m", p); } @@ -367,10 +377,10 @@ index 805503f366..01a7ccb291 100644 log_debug_errno(r, "Failed to turn off coredumps, ignoring: %m"); } diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c -index c3991cfa4c..7d522d8d1f 100644 +index 7c21157580..06ab74b04c 100644 --- a/src/shared/hibernate-util.c +++ b/src/shared/hibernate-util.c -@@ -501,7 +501,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) { +@@ -495,7 +495,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) { /* We write the offset first since it's safer. Note that this file is only available in 4.17+, so * fail gracefully if it doesn't exist and we're only overwriting it with 0. */ @@ -379,7 +389,7 @@ index c3991cfa4c..7d522d8d1f 100644 if (r == -ENOENT) { if (offset != 0) return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), -@@ -517,7 +517,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) { +@@ -511,7 +511,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) { log_debug("Wrote resume_offset=%s for device '%s' to /sys/power/resume_offset.", offset_str, device); @@ -402,10 +412,10 @@ index 1f88e724d0..feb18b320a 100644 return r; diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c -index 99ccefb227..e4975018ab 100644 +index 810c5b5206..be0d127ff3 100644 --- a/src/shared/watchdog.c +++ b/src/shared/watchdog.c -@@ -93,7 +93,7 @@ static int set_pretimeout_governor(const char *governor) { +@@ -93,7 +93,7 @@ static int watchdog_set_pretimeout_governor(const char *governor) { r = write_string_file(sys_fn, governor, @@ -415,10 +425,10 @@ index 99ccefb227..e4975018ab 100644 return log_error_errno(r, "Failed to set watchdog pretimeout_governor to '%s': %m", governor); diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c -index 21062b24e0..262dd71d72 100644 +index 0402bb07f3..a6cbb45340 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c -@@ -137,7 +137,7 @@ static int write_state(int fd, char * const *states) { +@@ -139,7 +139,7 @@ static int write_state(int fd, char * const *states) { if (k < 0) return RET_GATHER(r, k); @@ -427,17 +437,17 @@ index 21062b24e0..262dd71d72 100644 if (k >= 0) { log_debug("Using sleep state '%s'.", *state); return 0; -@@ -155,7 +155,7 @@ static int write_mode(char * const *modes) { - STRV_FOREACH(mode, modes) { - int k; +@@ -157,7 +157,7 @@ static int write_mode(const char *path, char * const *modes) { + assert(path); -- k = write_string_file("/sys/power/disk", *mode, WRITE_STRING_FILE_DISABLE_BUFFER); -+ k = write_string_file("/sys/power/disk", *mode, 0); - if (k >= 0) { - log_debug("Using sleep disk mode '%s'.", *mode); + STRV_FOREACH(mode, modes) { +- r = write_string_file(path, *mode, WRITE_STRING_FILE_DISABLE_BUFFER); ++ r = write_string_file(path, *mode, 0); + if (r >= 0) { + log_debug("Using sleep mode '%s' for %s.", *mode, path); return 0; diff --git a/src/storagetm/storagetm.c b/src/storagetm/storagetm.c -index 16d4fb07d4..aca7506463 100644 +index 1bb8eec316..cf9b4c4a21 100644 --- a/src/storagetm/storagetm.c +++ b/src/storagetm/storagetm.c @@ -186,7 +186,7 @@ static int nvme_subsystem_unlink(NvmeSubsystem *s) { @@ -533,22 +543,22 @@ index 16d4fb07d4..aca7506463 100644 return log_error_errno(r, "Failed to set IP address on NVME port %" PRIu16 ": %m", portnr); diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c -index e5b8df5c2d..63ca15628c 100644 +index 581bbaf345..cdf648a2d1 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c -@@ -2711,7 +2711,6 @@ static int udev_rule_apply_token_to_event( - log_event_debug(dev, token, "ATTR '%s' writing '%s'", buf, value); - r = write_string_file(buf, value, - WRITE_STRING_FILE_VERIFY_ON_FAILURE | -- WRITE_STRING_FILE_DISABLE_BUFFER | - WRITE_STRING_FILE_AVOID_NEWLINE | - WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE); - if (r < 0) +@@ -2706,7 +2706,6 @@ static int udev_rule_apply_token_to_event( + log_event_debug(dev, token, "Writing ATTR{'%s'}=\"%s\".", buf, value); + r = write_string_file(buf, value, + WRITE_STRING_FILE_VERIFY_ON_FAILURE | +- WRITE_STRING_FILE_DISABLE_BUFFER | + WRITE_STRING_FILE_AVOID_NEWLINE | + WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE); + if (r < 0) diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c -index 4d82c65f0a..3a3d861b83 100644 +index ba742dda69..6f20e81615 100644 --- a/src/vconsole/vconsole-setup.c +++ b/src/vconsole/vconsole-setup.c -@@ -261,7 +261,7 @@ static int toggle_utf8_vc(const char *name, int fd, bool utf8) { +@@ -277,7 +277,7 @@ static int toggle_utf8_vc(const char *name, int fd, bool utf8) { static int toggle_utf8_sysfs(bool utf8) { int r; @@ -557,3 +567,6 @@ index 4d82c65f0a..3a3d861b83 100644 if (r < 0) return log_warning_errno(r, "Failed to %s sysfs UTF-8 flag: %m", enable_disable(utf8)); +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch b/meta/recipes-core/systemd/systemd/0015-Handle-__cpu_mask-usage.patch similarity index 91% rename from meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch rename to meta/recipes-core/systemd/systemd/0015-Handle-__cpu_mask-usage.patch index 6d7e002d61..86003db4de 100644 --- a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch +++ b/meta/recipes-core/systemd/systemd/0015-Handle-__cpu_mask-usage.patch @@ -1,7 +1,7 @@ -From f6b69f28657c09b1181552d85e52ced0e01182e3 Mon Sep 17 00:00:00 2001 +From c1cbec8571855b8480d56dcad2ab81aea0782bd4 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Fri, 13 Sep 2019 19:26:27 -0400 -Subject: [PATCH] Handle __cpu_mask usage +Subject: [PATCH 15/27] Handle __cpu_mask usage Fixes errors: @@ -24,7 +24,7 @@ Signed-off-by: Scott Murray 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/cpu-set-util.h b/src/shared/cpu-set-util.h -index 3c63a58826..4c2d4347fc 100644 +index 618fe1b0a3..46c92077b0 100644 --- a/src/shared/cpu-set-util.h +++ b/src/shared/cpu-set-util.h @@ -6,6 +6,8 @@ @@ -55,3 +55,6 @@ index ea0c58770e..b65c0bd370 100644 /* Print information about various types. Useful when diagnosing * gcc diagnostics on an unfamiliar architecture. */ +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch b/meta/recipes-core/systemd/systemd/0016-Handle-missing-gshadow.patch similarity index 80% rename from meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch rename to meta/recipes-core/systemd/systemd/0016-Handle-missing-gshadow.patch index 40b60399aa..6c7b233f95 100644 --- a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch +++ b/meta/recipes-core/systemd/systemd/0016-Handle-missing-gshadow.patch @@ -1,7 +1,7 @@ -From 5442d8ddb285d33b459aefc76962640afd131280 Mon Sep 17 00:00:00 2001 +From 8b540d8240bbc3f917de9ca8d3b62f28c3424d91 Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Tue, 10 Mar 2020 11:05:20 +0000 -Subject: [PATCH] Handle missing gshadow +Subject: [PATCH 16/27] Handle missing gshadow gshadow usage is now present in the userdb code. Mask all uses of it to allow compilation on musl @@ -17,10 +17,10 @@ Signed-off-by: Luca Boccassi 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/shared/user-record-nss.c b/src/shared/user-record-nss.c -index 414a49331b..1a4e1b628c 100644 +index ffb5721466..4d01815c8c 100644 --- a/src/shared/user-record-nss.c +++ b/src/shared/user-record-nss.c -@@ -329,8 +329,10 @@ int nss_group_to_group_record( +@@ -286,8 +286,10 @@ int nss_group_to_group_record( if (isempty(grp->gr_name)) return -EINVAL; @@ -31,7 +31,7 @@ index 414a49331b..1a4e1b628c 100644 g = group_record_new(); if (!g) -@@ -346,6 +348,7 @@ int nss_group_to_group_record( +@@ -303,6 +305,7 @@ int nss_group_to_group_record( g->gid = grp->gr_gid; @@ -39,7 +39,7 @@ index 414a49331b..1a4e1b628c 100644 if (sgrp) { if (looks_like_hashed_password(utf8_only(sgrp->sg_passwd))) { g->hashed_password = strv_new(sgrp->sg_passwd); -@@ -361,6 +364,7 @@ int nss_group_to_group_record( +@@ -318,6 +321,7 @@ int nss_group_to_group_record( if (r < 0) return r; } @@ -47,7 +47,7 @@ index 414a49331b..1a4e1b628c 100644 r = json_build(&g->json, JSON_BUILD_OBJECT( JSON_BUILD_PAIR("groupName", JSON_BUILD_STRING(g->group_name)), -@@ -387,6 +391,7 @@ int nss_sgrp_for_group(const struct group *grp, struct sgrp *ret_sgrp, char **re +@@ -344,6 +348,7 @@ int nss_sgrp_for_group(const struct group *grp, struct sgrp *ret_sgrp, char **re assert(ret_sgrp); assert(ret_buffer); @@ -55,7 +55,7 @@ index 414a49331b..1a4e1b628c 100644 for (;;) { _cleanup_free_ char *buf = NULL; struct sgrp sgrp, *result; -@@ -415,6 +420,9 @@ int nss_sgrp_for_group(const struct group *grp, struct sgrp *ret_sgrp, char **re +@@ -372,6 +377,9 @@ int nss_sgrp_for_group(const struct group *grp, struct sgrp *ret_sgrp, char **re buflen *= 2; buf = mfree(buf); } @@ -65,25 +65,25 @@ index 414a49331b..1a4e1b628c 100644 } int nss_group_record_by_name( -@@ -426,7 +434,9 @@ int nss_group_record_by_name( - struct group grp, *result; +@@ -382,7 +390,9 @@ int nss_group_record_by_name( + _cleanup_free_ char *sbuf = NULL; + _cleanup_free_ struct group *result = NULL; bool incomplete = false; - size_t buflen = 4096; +#if ENABLE_GSHADOW struct sgrp sgrp, *sresult = NULL; +#endif int r; assert(name); -@@ -455,6 +465,7 @@ int nss_group_record_by_name( - buf = mfree(buf); - } +@@ -391,6 +401,7 @@ int nss_group_record_by_name( + if (r < 0) + return r; +#if ENABLE_GSHADOW if (with_shadow) { r = nss_sgrp_for_group(result, &sgrp, &sbuf); if (r < 0) { -@@ -466,6 +477,9 @@ int nss_group_record_by_name( +@@ -402,6 +413,9 @@ int nss_group_record_by_name( incomplete = true; r = nss_group_to_group_record(result, sresult, ret); @@ -93,25 +93,24 @@ index 414a49331b..1a4e1b628c 100644 if (r < 0) return r; -@@ -483,7 +497,9 @@ int nss_group_record_by_gid( - struct group grp, *result; +@@ -418,13 +432,16 @@ int nss_group_record_by_gid( + _cleanup_free_ char *sbuf = NULL; + _cleanup_free_ struct group *result = NULL; bool incomplete = false; - size_t buflen = 4096; +#if ENABLE_GSHADOW struct sgrp sgrp, *sresult = NULL; +#endif int r; - for (;;) { -@@ -509,6 +525,7 @@ int nss_group_record_by_gid( - buf = mfree(buf); - } + r = getgrgid_malloc(gid, &result); + if (r < 0) + return r; +#if ENABLE_GSHADOW if (with_shadow) { r = nss_sgrp_for_group(result, &sgrp, &sbuf); if (r < 0) { -@@ -520,6 +537,9 @@ int nss_group_record_by_gid( +@@ -436,6 +453,9 @@ int nss_group_record_by_gid( incomplete = true; r = nss_group_to_group_record(result, sresult, ret); @@ -138,7 +137,7 @@ index 22ab04d6ee..4e52e7a911 100644 #include diff --git a/src/shared/userdb.c b/src/shared/userdb.c -index f60d48ace4..e878199a28 100644 +index 75dece3442..5628e1410f 100644 --- a/src/shared/userdb.c +++ b/src/shared/userdb.c @@ -1038,13 +1038,15 @@ int groupdb_iterator_get(UserDBIterator *iterator, GroupRecord **ret) { @@ -168,3 +167,6 @@ index f60d48ace4..e878199a28 100644 if (r < 0) return r; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch b/meta/recipes-core/systemd/systemd/0017-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch similarity index 89% rename from meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch rename to meta/recipes-core/systemd/systemd/0017-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch index 51f0b048fa..04b2fb712f 100644 --- a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch +++ b/meta/recipes-core/systemd/systemd/0017-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch @@ -1,7 +1,7 @@ -From 863dd6f502d53a4a2644e031eee2e8dfa3fd05aa Mon Sep 17 00:00:00 2001 +From 45bb63a1727097683acad23f270968026671ec6a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 12 Apr 2021 23:44:53 -0700 -Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl +Subject: [PATCH 17/27] missing_syscall.h: Define MIPS ABI defines for musl musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64 unlike glibc where these are provided by libc headers, therefore define @@ -44,3 +44,6 @@ index 67aa8ea1f2..8d9824495e 100644 typedef struct BaseFilesystem { const char *dir; /* directory or symlink to create */ +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch b/meta/recipes-core/systemd/systemd/0018-pass-correct-parameters-to-getdents64.patch similarity index 88% rename from meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch rename to meta/recipes-core/systemd/systemd/0018-pass-correct-parameters-to-getdents64.patch index 66b8f66806..b4b6be0e75 100644 --- a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch +++ b/meta/recipes-core/systemd/systemd/0018-pass-correct-parameters-to-getdents64.patch @@ -1,7 +1,7 @@ -From 01de9e5a6e4ad2f361d3eb4d9839c7afd91cc677 Mon Sep 17 00:00:00 2001 +From 78a59a540d425e677d5652d9b72d7b175e36f4dd Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 21 Jan 2022 15:15:11 -0800 -Subject: [PATCH] pass correct parameters to getdents64 +Subject: [PATCH 18/27] pass correct parameters to getdents64 Fixes ../git/src/basic/recurse-dir.c:57:40: error: incompatible pointer types passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'struct dirent *' [-Werror,-Wincompatible-pointer-types] @@ -20,10 +20,10 @@ Signed-off-by: Jiaqing Zhao 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/recurse-dir.c b/src/basic/recurse-dir.c -index 5e98b7a5d8..aef065047b 100644 +index 776733148b..d37419658c 100644 --- a/src/basic/recurse-dir.c +++ b/src/basic/recurse-dir.c -@@ -55,7 +55,7 @@ int readdir_all(int dir_fd, +@@ -56,7 +56,7 @@ int readdir_all(int dir_fd, bs = MIN(MALLOC_SIZEOF_SAFE(de) - offsetof(DirectoryEntries, buffer), (size_t) SSIZE_MAX); assert(bs > de->buffer_size); @@ -32,3 +32,6 @@ index 5e98b7a5d8..aef065047b 100644 if (n < 0) return -errno; if (n == 0) +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch b/meta/recipes-core/systemd/systemd/0019-Adjust-for-musl-headers.patch similarity index 84% rename from meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch rename to meta/recipes-core/systemd/systemd/0019-Adjust-for-musl-headers.patch index f86b8c889c..44eebe16b3 100644 --- a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch +++ b/meta/recipes-core/systemd/systemd/0019-Adjust-for-musl-headers.patch @@ -1,7 +1,7 @@ -From a45cf93772ac5055665cc55454509747b9c68ad2 Mon Sep 17 00:00:00 2001 +From 585e04673da62a8bf50e00fd6c1ae9ffc66c3b2f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 21 Jan 2022 22:19:37 -0800 -Subject: [PATCH] Adjust for musl headers +Subject: [PATCH 19/27] Adjust for musl headers Upstream-Status: Inappropriate [musl specific] @@ -14,7 +14,7 @@ Signed-off-by: Chen Qi src/network/netdev/bareudp.c | 2 +- src/network/netdev/batadv.c | 2 +- src/network/netdev/bond.c | 2 +- - src/network/netdev/bridge.c | 2 +- + src/network/netdev/bridge.c | 3 ++- src/network/netdev/dummy.c | 2 +- src/network/netdev/geneve.c | 2 +- src/network/netdev/ifb.c | 2 +- @@ -34,7 +34,6 @@ Signed-off-by: Chen Qi src/network/netdev/vxlan.c | 2 +- src/network/netdev/wireguard.c | 2 +- src/network/netdev/xfrm.c | 2 +- - src/network/networkd-bridge-mdb.c | 4 ++-- src/network/networkd-dhcp-common.c | 3 ++- src/network/networkd-dhcp-prefix-delegation.c | 3 ++- src/network/networkd-dhcp-server.c | 2 +- @@ -42,16 +41,15 @@ Signed-off-by: Chen Qi src/network/networkd-ipv6ll.c | 2 +- src/network/networkd-link.c | 2 +- src/network/networkd-ndisc.c | 2 +- - src/network/networkd-route.c | 8 ++++---- src/network/networkd-setlink.c | 2 +- src/network/networkd-sysctl.c | 2 +- src/shared/linux/ethtool.h | 3 ++- src/shared/netif-util.c | 2 +- src/udev/udev-builtin-net_id.c | 2 +- - 38 files changed, 45 insertions(+), 42 deletions(-) + 36 files changed, 40 insertions(+), 36 deletions(-) diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c -index c20367dfc9..b8d4cd8c2a 100644 +index 3e992d7cad..c7e1ff4dbf 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -5,7 +5,7 @@ @@ -90,7 +88,7 @@ index 26da0231d4..2e8002af8c 100644 #include "batadv.h" #include "fileio.h" diff --git a/src/network/netdev/bond.c b/src/network/netdev/bond.c -index 4d75a0d6bf..985b3197e0 100644 +index 52a7f126b6..74ca0812db 100644 --- a/src/network/netdev/bond.c +++ b/src/network/netdev/bond.c @@ -1,7 +1,7 @@ @@ -103,18 +101,19 @@ index 4d75a0d6bf..985b3197e0 100644 #include "alloc-util.h" #include "bond.h" diff --git a/src/network/netdev/bridge.c b/src/network/netdev/bridge.c -index 3e394edadf..f12f667687 100644 +index d426c0c501..14432adb95 100644 --- a/src/network/netdev/bridge.c +++ b/src/network/netdev/bridge.c -@@ -2,7 +2,7 @@ +@@ -2,7 +2,8 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include - #include -#include ++#include +//#include #include + #include - #include "bridge.h" diff --git a/src/network/netdev/dummy.c b/src/network/netdev/dummy.c index 00df1d2787..77b506b422 100644 --- a/src/network/netdev/dummy.c @@ -128,18 +127,18 @@ index 00df1d2787..77b506b422 100644 #include "dummy.h" diff --git a/src/network/netdev/geneve.c b/src/network/netdev/geneve.c -index bc655ec7ff..a77e8e17e4 100644 +index 22c2b00e1b..1d762c4911 100644 --- a/src/network/netdev/geneve.c +++ b/src/network/netdev/geneve.c @@ -2,7 +2,7 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include - #include -#include +//#include + #include #include "alloc-util.h" - #include "conf-parser.h" diff --git a/src/network/netdev/ifb.c b/src/network/netdev/ifb.c index d7ff44cb9e..e037629ae4 100644 --- a/src/network/netdev/ifb.c @@ -166,11 +165,11 @@ index d5fe299b7b..c9c8002eac 100644 #include "ipoib.h" diff --git a/src/network/netdev/ipvlan.c b/src/network/netdev/ipvlan.c -index 05d5d010f6..d440f49537 100644 +index 51ae64341d..46460efabd 100644 --- a/src/network/netdev/ipvlan.c +++ b/src/network/netdev/ipvlan.c -@@ -2,7 +2,7 @@ - +@@ -3,7 +3,7 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include #include -#include @@ -179,7 +178,7 @@ index 05d5d010f6..d440f49537 100644 #include "conf-parser.h" #include "ipvlan.h" diff --git a/src/network/netdev/macsec.c b/src/network/netdev/macsec.c -index 17d6acefb6..679d0984f9 100644 +index 4b9f19cc95..6c4951a7e6 100644 --- a/src/network/netdev/macsec.c +++ b/src/network/netdev/macsec.c @@ -1,7 +1,7 @@ @@ -192,11 +191,11 @@ index 17d6acefb6..679d0984f9 100644 #include #include diff --git a/src/network/netdev/macvlan.c b/src/network/netdev/macvlan.c -index 203807e3a5..8ab09a387e 100644 +index 21933d3970..a4ace19dc6 100644 --- a/src/network/netdev/macvlan.c +++ b/src/network/netdev/macvlan.c -@@ -2,7 +2,7 @@ - +@@ -3,7 +3,7 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include #include -#include @@ -205,11 +204,11 @@ index 203807e3a5..8ab09a387e 100644 #include "conf-parser.h" #include "macvlan.h" diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c -index 57127a861a..7f787d0b9f 100644 +index 2b411425ba..fe00200135 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c -@@ -2,7 +2,7 @@ - +@@ -3,7 +3,7 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include #include -#include @@ -267,40 +266,41 @@ index 380547ee1e..137c1adf8a 100644 #include "vcan.h" diff --git a/src/network/netdev/veth.c b/src/network/netdev/veth.c -index e0f5b4ebb1..8a424ed03d 100644 +index 78555286d1..e7eff072e4 100644 --- a/src/network/netdev/veth.c +++ b/src/network/netdev/veth.c @@ -3,7 +3,7 @@ - #include + /* Make sure the net/if.h header is included before any linux/ one */ #include - #include + #include -#include +//#include #include + #include - #include "netlink-util.h" diff --git a/src/network/netdev/vlan.c b/src/network/netdev/vlan.c -index 2390206993..efec630e30 100644 +index 60e49a5b8a..266fd58813 100644 --- a/src/network/netdev/vlan.c +++ b/src/network/netdev/vlan.c -@@ -2,7 +2,7 @@ - - #include +@@ -3,7 +3,7 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include + #include -#include +//#include #include #include "parse-util.h" diff --git a/src/network/netdev/vrf.c b/src/network/netdev/vrf.c -index b75ec2bcc6..6aeeea640b 100644 +index 24079a7203..33ff17ea82 100644 --- a/src/network/netdev/vrf.c +++ b/src/network/netdev/vrf.c -@@ -2,7 +2,7 @@ +@@ -2,8 +2,8 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include - #include -#include + #include +//#include #include "vrf.h" @@ -319,11 +319,11 @@ index c0343f45b6..f9e718f40b 100644 #include "vxcan.h" diff --git a/src/network/netdev/vxlan.c b/src/network/netdev/vxlan.c -index b11fdbbd0d..a971a917f0 100644 +index 37f65967a6..bdd8848a02 100644 --- a/src/network/netdev/vxlan.c +++ b/src/network/netdev/vxlan.c -@@ -2,7 +2,7 @@ - +@@ -3,7 +3,7 @@ + /* Make sure the net/if.h header is included before any linux/ one */ #include #include -#include @@ -332,18 +332,18 @@ index b11fdbbd0d..a971a917f0 100644 #include "conf-parser.h" #include "alloc-util.h" diff --git a/src/network/netdev/wireguard.c b/src/network/netdev/wireguard.c -index 4c7d837c41..6df6dfb816 100644 +index fed1be8d11..94b659fd23 100644 --- a/src/network/netdev/wireguard.c +++ b/src/network/netdev/wireguard.c -@@ -6,7 +6,7 @@ - #include +@@ -5,7 +5,7 @@ + + /* Make sure the net/if.h header is included before any linux/ one */ #include - #include -#include +//#include #include - - #include "sd-resolve.h" + #include + #include diff --git a/src/network/netdev/xfrm.c b/src/network/netdev/xfrm.c index 905bfc0bdf..39e34dbb3b 100644 --- a/src/network/netdev/xfrm.c @@ -356,29 +356,8 @@ index 905bfc0bdf..39e34dbb3b 100644 #include "missing_network.h" #include "xfrm.h" -diff --git a/src/network/networkd-bridge-mdb.c b/src/network/networkd-bridge-mdb.c -index bd1a9745dc..949d3da029 100644 ---- a/src/network/networkd-bridge-mdb.c -+++ b/src/network/networkd-bridge-mdb.c -@@ -1,7 +1,5 @@ - /* SPDX-License-Identifier: LGPL-2.1-or-later */ - --#include --#include - - #include "netlink-util.h" - #include "networkd-bridge-mdb.h" -@@ -11,6 +9,8 @@ - #include "networkd-queue.h" - #include "string-util.h" - #include "vlan-util.h" -+#include -+#include - - #define STATIC_BRIDGE_MDB_ENTRIES_PER_NETWORK_MAX 1024U - diff --git a/src/network/networkd-dhcp-common.c b/src/network/networkd-dhcp-common.c -index 080b15387c..efe8283957 100644 +index 9f0268d934..8cd605ab4a 100644 --- a/src/network/networkd-dhcp-common.c +++ b/src/network/networkd-dhcp-common.c @@ -1,7 +1,8 @@ @@ -392,7 +371,7 @@ index 080b15387c..efe8283957 100644 #include "bus-error.h" #include "bus-locator.h" diff --git a/src/network/networkd-dhcp-prefix-delegation.c b/src/network/networkd-dhcp-prefix-delegation.c -index af2fe9efcd..511565700f 100644 +index 2e660b7763..b8dd6240a0 100644 --- a/src/network/networkd-dhcp-prefix-delegation.c +++ b/src/network/networkd-dhcp-prefix-delegation.c @@ -1,6 +1,5 @@ @@ -412,7 +391,7 @@ index af2fe9efcd..511565700f 100644 assert(link); diff --git a/src/network/networkd-dhcp-server.c b/src/network/networkd-dhcp-server.c -index 607fe0053c..9ce4005874 100644 +index c35102af74..3be469ae16 100644 --- a/src/network/networkd-dhcp-server.c +++ b/src/network/networkd-dhcp-server.c @@ -1,7 +1,7 @@ @@ -425,7 +404,7 @@ index 607fe0053c..9ce4005874 100644 #include "sd-dhcp-server.h" diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c -index 49c452da7c..98aad1f3cd 100644 +index 4dd6044b18..15a598f9db 100644 --- a/src/network/networkd-dhcp4.c +++ b/src/network/networkd-dhcp4.c @@ -3,7 +3,7 @@ @@ -451,10 +430,10 @@ index 32229a3fc7..662a345d6e 100644 #include "in-addr-util.h" #include "networkd-address.h" diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c -index 4ef1be4bad..e5aa53604d 100644 +index 6b0f09926a..81f44f6e6a 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c -@@ -3,7 +3,7 @@ +@@ -4,7 +4,7 @@ #include #include #include @@ -464,7 +443,7 @@ index 4ef1be4bad..e5aa53604d 100644 #include #include diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c -index 840ccb158d..9f2e85e32f 100644 +index 7cafe1f6a3..07c293c9a6 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -6,7 +6,7 @@ @@ -476,33 +455,8 @@ index 840ccb158d..9f2e85e32f 100644 #include "sd-ndisc.h" -diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c -index eb502ae2cf..5b25ee4523 100644 ---- a/src/network/networkd-route.c -+++ b/src/network/networkd-route.c -@@ -1,9 +1,5 @@ - /* SPDX-License-Identifier: LGPL-2.1-or-later */ - --#include --#include --#include -- - #include "alloc-util.h" - #include "event-util.h" - #include "netlink-util.h" -@@ -21,6 +17,10 @@ - #include "vrf.h" - #include "wireguard.h" - -+#include -+#include -+#include -+ - int route_new(Route **ret) { - _cleanup_(route_freep) Route *route = NULL; - diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c -index 011ea1fe6e..59dfe733eb 100644 +index 058bc00ba1..bb0a430a0b 100644 --- a/src/network/networkd-setlink.c +++ b/src/network/networkd-setlink.c @@ -2,7 +2,7 @@ @@ -515,7 +469,7 @@ index 011ea1fe6e..59dfe733eb 100644 #include "missing_network.h" diff --git a/src/network/networkd-sysctl.c b/src/network/networkd-sysctl.c -index 2b226b2e2a..f12a474e2f 100644 +index 68c23e0eb7..e177c49d9b 100644 --- a/src/network/networkd-sysctl.c +++ b/src/network/networkd-sysctl.c @@ -2,7 +2,7 @@ @@ -525,8 +479,8 @@ index 2b226b2e2a..f12a474e2f 100644 -#include +//#include + #include "af-list.h" #include "missing_network.h" - #include "networkd-link.h" diff --git a/src/shared/linux/ethtool.h b/src/shared/linux/ethtool.h index 3d1da515c0..3fca9a4faf 100644 --- a/src/shared/linux/ethtool.h @@ -542,7 +496,7 @@ index 3d1da515c0..3fca9a4faf 100644 #include /* for INT_MAX */ diff --git a/src/shared/netif-util.c b/src/shared/netif-util.c -index f56c5646c1..5af28ff119 100644 +index 8adc2c89c8..1977e28d7f 100644 --- a/src/shared/netif-util.c +++ b/src/shared/netif-util.c @@ -1,7 +1,7 @@ @@ -555,10 +509,10 @@ index f56c5646c1..5af28ff119 100644 #include "arphrd-util.h" #include "device-util.h" diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c -index f528a46b8e..830318cda5 100644 +index 384a1f31cb..c94bb70afb 100644 --- a/src/udev/udev-builtin-net_id.c +++ b/src/udev/udev-builtin-net_id.c -@@ -18,7 +18,7 @@ +@@ -19,7 +19,7 @@ #include #include #include @@ -567,3 +521,6 @@ index f528a46b8e..830318cda5 100644 #include #include +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch b/meta/recipes-core/systemd/systemd/0020-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch similarity index 87% rename from meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch rename to meta/recipes-core/systemd/systemd/0020-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch index 67388e6807..b3fbfee08d 100644 --- a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch +++ b/meta/recipes-core/systemd/systemd/0020-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch @@ -1,8 +1,8 @@ -From 20dfb0b5e7113c2e7f82c01488b419dffe8714ab Mon Sep 17 00:00:00 2001 +From e01f0c444423eb65d176713735ff8cefb3068f3d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 8 Nov 2022 13:31:34 -0800 -Subject: [PATCH] test-bus-error: strerror() is assumed to be GNU specific - version mark it so +Subject: [PATCH 20/27] test-bus-error: strerror() is assumed to be GNU + specific version mark it so Upstream-Status: Inappropriate [Upstream systemd only supports glibc] @@ -13,7 +13,7 @@ Signed-off-by: Khem Raj 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/test-bus-error.c b/src/libsystemd/sd-bus/test-bus-error.c -index a55f3f9856..4123bf3da0 100644 +index 91045c06c2..a06b9bac0c 100644 --- a/src/libsystemd/sd-bus/test-bus-error.c +++ b/src/libsystemd/sd-bus/test-bus-error.c @@ -99,7 +99,9 @@ TEST(error) { @@ -27,7 +27,7 @@ index a55f3f9856..4123bf3da0 100644 assert_se(sd_bus_error_get_errno(&error) == EBUSY); assert_se(sd_bus_error_is_set(&error)); diff --git a/src/test/test-errno-util.c b/src/test/test-errno-util.c -index 376d532281..967cfd4d67 100644 +index ab463bd1b3..e2ebcaaf33 100644 --- a/src/test/test-errno-util.c +++ b/src/test/test-errno-util.c @@ -4,7 +4,7 @@ @@ -47,3 +47,6 @@ index 376d532281..967cfd4d67 100644 TEST(PROTECT_ERRNO) { errno = 12; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch b/meta/recipes-core/systemd/systemd/0021-errno-util-Make-STRERROR-portable-for-musl.patch similarity index 88% rename from meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch rename to meta/recipes-core/systemd/systemd/0021-errno-util-Make-STRERROR-portable-for-musl.patch index 36d468959a..6e899d0905 100644 --- a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch +++ b/meta/recipes-core/systemd/systemd/0021-errno-util-Make-STRERROR-portable-for-musl.patch @@ -1,7 +1,7 @@ -From 32371040c2aa649e23c3b0f2c5ee27995a16526a Mon Sep 17 00:00:00 2001 +From d2f632dd6a8cca0fbdd6568ce84004335c004f58 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 23 Jan 2023 23:39:46 -0800 -Subject: [PATCH] errno-util: Make STRERROR portable for musl +Subject: [PATCH 21/27] errno-util: Make STRERROR portable for musl Sadly, systemd has decided to use yet another GNU extention in a macro lets make this such that we can use XSI compliant strerror_r() for @@ -15,7 +15,7 @@ Signed-off-by: Khem Raj 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/basic/errno-util.h b/src/basic/errno-util.h -index 27804e6382..274c1c6ef1 100644 +index 48b76e4bf7..6e7653e2d9 100644 --- a/src/basic/errno-util.h +++ b/src/basic/errno-util.h @@ -15,8 +15,16 @@ @@ -37,3 +37,6 @@ index 27804e6382..274c1c6ef1 100644 /* A helper to print an error message or message for functions that return 0 on EOF. * Note that we can't use ({ … }) to define a temporary variable, so errnum is * evaluated twice. */ +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch b/meta/recipes-core/systemd/systemd/0022-sd-event-Make-malloc_trim-conditional-on-glibc.patch similarity index 76% rename from meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch rename to meta/recipes-core/systemd/systemd/0022-sd-event-Make-malloc_trim-conditional-on-glibc.patch index f860b5f542..ed7e3ea586 100644 --- a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch +++ b/meta/recipes-core/systemd/systemd/0022-sd-event-Make-malloc_trim-conditional-on-glibc.patch @@ -1,7 +1,7 @@ -From 751fb8c9a05115f5329cfa25e69afe7657124c20 Mon Sep 17 00:00:00 2001 +From 4a3ed5aaaf108d3a07f24997698906e801ba2412 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 2 Aug 2023 12:06:27 -0700 -Subject: [PATCH] sd-event: Make malloc_trim() conditional on glibc +Subject: [PATCH 22/27] sd-event: Make malloc_trim() conditional on glibc musl does not have this API @@ -12,10 +12,10 @@ Signed-off-by: Khem Raj 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c -index b6899df192..0c03287004 100644 +index a1305ef014..b8a73da2a3 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c -@@ -1874,7 +1874,7 @@ _public_ int sd_event_add_exit( +@@ -1877,7 +1877,7 @@ _public_ int sd_event_add_exit( } _public_ int sd_event_trim_memory(void) { @@ -24,7 +24,7 @@ index b6899df192..0c03287004 100644 /* A default implementation of a memory pressure callback. Simply releases our own allocation caches * and glibc's. This is automatically used when people call sd_event_add_memory_pressure() with a -@@ -1888,7 +1888,9 @@ _public_ int sd_event_trim_memory(void) { +@@ -1891,7 +1891,9 @@ _public_ int sd_event_trim_memory(void) { usec_t before_timestamp = now(CLOCK_MONOTONIC); hashmap_trim_pools(); @@ -34,3 +34,6 @@ index b6899df192..0c03287004 100644 usec_t after_timestamp = now(CLOCK_MONOTONIC); if (r > 0) +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch b/meta/recipes-core/systemd/systemd/0023-shared-Do-not-use-malloc_info-on-musl.patch similarity index 86% rename from meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch rename to meta/recipes-core/systemd/systemd/0023-shared-Do-not-use-malloc_info-on-musl.patch index ece9873bbc..b8583c7af7 100644 --- a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch +++ b/meta/recipes-core/systemd/systemd/0023-shared-Do-not-use-malloc_info-on-musl.patch @@ -1,7 +1,7 @@ -From 4fe2a8b1aab7297beac50f6ce46f3df4169de218 Mon Sep 17 00:00:00 2001 +From d3880d167d8dfafbb8ee62f7737a869f9525f303 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 2 Aug 2023 12:20:40 -0700 -Subject: [PATCH] shared: Do not use malloc_info on musl +Subject: [PATCH 23/27] shared: Do not use malloc_info on musl Upstream-Status: Inappropriate [musl-specific] Signed-off-by: Khem Raj @@ -11,10 +11,10 @@ Signed-off-by: Khem Raj 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c -index 74f148c8b4..2d862a123d 100644 +index 30f9602b1e..5308f168db 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c -@@ -611,15 +611,16 @@ static int method_dump_memory_state_by_fd(sd_bus_message *message, void *userdat +@@ -755,15 +755,16 @@ static int method_dump_memory_state_by_fd(sd_bus_message *message, void *userdat _cleanup_close_ int fd = -EBADF; size_t dump_size; FILE *f; @@ -52,3 +52,6 @@ index 8e70e365dd..9e782caec9 100644 (void) memstream_dump(LOG_INFO, &m); break; } +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch b/meta/recipes-core/systemd/systemd/0024-avoid-missing-LOCK_EX-declaration.patch similarity index 62% rename from meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch rename to meta/recipes-core/systemd/systemd/0024-avoid-missing-LOCK_EX-declaration.patch index f517392e58..6804c7c62e 100644 --- a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch +++ b/meta/recipes-core/systemd/systemd/0024-avoid-missing-LOCK_EX-declaration.patch @@ -1,7 +1,7 @@ -From 97d3ed7834bd86615ba4acdbef984c677b7e7791 Mon Sep 17 00:00:00 2001 +From ca2a736627f8ee8dd9dbbf5b3149d4c8493833ff Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Tue, 2 Jan 2024 11:03:27 +0800 -Subject: [PATCH] avoid missing LOCK_EX declaration +Subject: [PATCH 24/27] avoid missing LOCK_EX declaration This only happens on MUSL. Include sys/file.h to avoid compilation error about missing LOCK_EX declaration. @@ -10,12 +10,25 @@ Upstream-Status: Inappropriate [musl specific] Signed-off-by: Chen Qi --- + src/basic/fd-util.h | 1 + src/core/exec-invoke.c | 1 + src/shared/dev-setup.h | 1 + - 2 files changed, 2 insertions(+) + 3 files changed, 3 insertions(+) +diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h +index af17481dd8..fa20bfa30f 100644 +--- a/src/basic/fd-util.h ++++ b/src/basic/fd-util.h +@@ -6,6 +6,7 @@ + #include + #include + #include ++#include + + #include "macro.h" + #include "missing_fcntl.h" diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c -index fe14ceeb31..521e7b87ff 100644 +index ee8db04e76..2aff654f0f 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -4,6 +4,7 @@ @@ -38,3 +51,6 @@ index 5339bc4e5e..0697495f23 100644 int lock_dev_console(void); +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0025-include-signal.h-to-avoid-the-undeclared-error.patch b/meta/recipes-core/systemd/systemd/0025-include-signal.h-to-avoid-the-undeclared-error.patch new file mode 100644 index 0000000000..5cfb112d67 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0025-include-signal.h-to-avoid-the-undeclared-error.patch @@ -0,0 +1,27 @@ +From ecf124ab2e488a71741fe443ff4863f7ed172968 Mon Sep 17 00:00:00 2001 +From: Chen Qi +Date: Tue, 2 Jul 2024 22:18:47 -0700 +Subject: [PATCH 25/27] include signal.h to avoid the 'undeclared' error + +Upstream-Status: Inappropriate [musl specific] + +Signed-off-by: Chen Qi +--- + src/basic/pidref.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/basic/pidref.h b/src/basic/pidref.h +index 9920ebb9b3..2fdd4ff50f 100644 +--- a/src/basic/pidref.h ++++ b/src/basic/pidref.h +@@ -1,6 +1,7 @@ + /* SPDX-License-Identifier: LGPL-2.1-or-later */ + #pragma once + ++#include + #include "macro.h" + + /* An embeddable structure carrying a reference to a process. Supposed to be used when tracking processes continuously. */ +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0026-undef-stdin-for-references-using-stdin-as-a-struct-m.patch b/meta/recipes-core/systemd/systemd/0026-undef-stdin-for-references-using-stdin-as-a-struct-m.patch new file mode 100644 index 0000000000..ca1a525a0a --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0026-undef-stdin-for-references-using-stdin-as-a-struct-m.patch @@ -0,0 +1,48 @@ +From 787606c6ff822fb3fe41ba951ee289bbf6d4def3 Mon Sep 17 00:00:00 2001 +From: Chen Qi +Date: Tue, 2 Jul 2024 22:44:31 -0700 +Subject: [PATCH 26/27] undef stdin for references using stdin as a struct + member + +In musl stdio.h, we have: +include/stdio.h:#define stdin (stdin) + +This causes error when a struct member is also named stdin. undef it. + +Upstream-Status: Inappropriate [musl specific] + +Signed-off-by: Chen Qi +--- + src/shared/edit-util.c | 2 ++ + src/systemctl/systemctl-edit.c | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/src/shared/edit-util.c b/src/shared/edit-util.c +index cfb2828f4e..1794a7b269 100644 +--- a/src/shared/edit-util.c ++++ b/src/shared/edit-util.c +@@ -3,6 +3,8 @@ + #include + #include + ++#undef stdin ++ + #include "alloc-util.h" + #include "copy.h" + #include "edit-util.h" +diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c +index 15398f8364..e7d53ca9a1 100644 +--- a/src/systemctl/systemctl-edit.c ++++ b/src/systemctl/systemctl-edit.c +@@ -13,6 +13,8 @@ + #include "systemctl.h" + #include "terminal-util.h" + ++#undef stdin ++ + int verb_cat(int argc, char *argv[], void *userdata) { + _cleanup_hashmap_free_ Hashmap *cached_id_map = NULL, *cached_name_map = NULL; + _cleanup_(lookup_paths_done) LookupPaths lp = {}; +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0027-adjust-header-inclusion-order-to-avoid-redeclaration.patch b/meta/recipes-core/systemd/systemd/0027-adjust-header-inclusion-order-to-avoid-redeclaration.patch new file mode 100644 index 0000000000..1be075d606 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0027-adjust-header-inclusion-order-to-avoid-redeclaration.patch @@ -0,0 +1,76 @@ +From cf94d43572770007f95b832f477aa5a03624a1e5 Mon Sep 17 00:00:00 2001 +From: Chen Qi +Date: Tue, 2 Jul 2024 23:23:57 -0700 +Subject: [PATCH 27/27] adjust header inclusion order to avoid redeclaration + +Upstream-Status: Inappropriate [musl specific] + +Signed-off-by: Chen Qi +--- + src/network/netdev/wireguard.c | 2 +- + src/network/networkd-bridge-mdb.c | 3 ++- + src/network/networkd-route.c | 6 +++--- + 3 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/src/network/netdev/wireguard.c b/src/network/netdev/wireguard.c +index 94b659fd23..a78ad5762d 100644 +--- a/src/network/netdev/wireguard.c ++++ b/src/network/netdev/wireguard.c +@@ -5,9 +5,9 @@ + + /* Make sure the net/if.h header is included before any linux/ one */ + #include ++#include + //#include + #include +-#include + #include + + #include "sd-resolve.h" +diff --git a/src/network/networkd-bridge-mdb.c b/src/network/networkd-bridge-mdb.c +index 7ff4a18846..fe1a9cf888 100644 +--- a/src/network/networkd-bridge-mdb.c ++++ b/src/network/networkd-bridge-mdb.c +@@ -2,7 +2,6 @@ + + /* Make sure the net/if.h header is included before any linux/ one */ + #include +-#include + + #include "netlink-util.h" + #include "networkd-bridge-mdb.h" +@@ -13,6 +12,8 @@ + #include "string-util.h" + #include "vlan-util.h" + ++#include ++ + #define STATIC_BRIDGE_MDB_ENTRIES_PER_NETWORK_MAX 1024U + + /* remove MDB entry. */ +diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c +index d596fd81e6..0dc0d2a7a3 100644 +--- a/src/network/networkd-route.c ++++ b/src/network/networkd-route.c +@@ -1,8 +1,5 @@ + /* SPDX-License-Identifier: LGPL-2.1-or-later */ + +-#include +-#include +- + #include "alloc-util.h" + #include "event-util.h" + #include "netlink-util.h" +@@ -20,6 +17,9 @@ + #include "vrf.h" + #include "wireguard.h" + ++#include ++#include ++ + static Route* route_detach_impl(Route *route) { + assert(route); + assert(!!route->network + !!route->manager + !!route->wireguard <= 1); +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd/0028-build-path.c-avoid-boot-time-segfault-for-musl.patch b/meta/recipes-core/systemd/systemd/0028-build-path.c-avoid-boot-time-segfault-for-musl.patch new file mode 100644 index 0000000000..501728cbc8 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0028-build-path.c-avoid-boot-time-segfault-for-musl.patch @@ -0,0 +1,31 @@ +From 0e4379088b1cf607b605b785f6f23943ebeb6584 Mon Sep 17 00:00:00 2001 +From: Chen Qi +Date: Wed, 3 Jul 2024 07:18:42 -0700 +Subject: [PATCH 28/28] build-path.c: avoid boot time segfault for musl + +This function, at runtime, should return -ENOEXEC. For musl, it +somehow segfaults. I think it's related to getauxval, but it's +really does not matter, just return -ENOEXEC. + +Upstream-Status: Inappropriate [musl specific] + +Signed-off-by: Chen Qi +--- + src/basic/build-path.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/basic/build-path.c b/src/basic/build-path.c +index b5972658df..4ef551034e 100644 +--- a/src/basic/build-path.c ++++ b/src/basic/build-path.c +@@ -151,6 +151,7 @@ int get_build_exec_dir(char **ret) { + */ + + static int runpath_cached = -ERRNO_MAX-1; ++ return -ENOEXEC; + if (runpath_cached == -ERRNO_MAX-1) { + const char *runpath = NULL; + +-- +2.45.1 + diff --git a/meta/recipes-core/systemd/systemd_255.6.bb b/meta/recipes-core/systemd/systemd_256.bb similarity index 95% rename from meta/recipes-core/systemd/systemd_255.6.bb rename to meta/recipes-core/systemd/systemd_256.bb index 0376412f61..9bd59ef39f 100644 --- a/meta/recipes-core/systemd/systemd_255.6.bb +++ b/meta/recipes-core/systemd/systemd_256.bb @@ -8,7 +8,7 @@ DEPENDS = "intltool-native gperf-native libcap util-linux python3-jinja2-native" SECTION = "base/shell" -inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu systemd gettext bash-completion manpages features_check +inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu systemd gettext bash-completion manpages features_check mime # unmerged-usr support is deprecated upstream, taints the system and will be # removed in the near future. Fail the build if it is not enabled. @@ -26,36 +26,39 @@ SRC_URI += " \ file://init \ file://99-default.preset \ file://systemd-pager.sh \ - file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ - file://0008-implment-systemd-sysv-install-for-OE.patch \ - file://0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch \ + file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ + file://0002-implment-systemd-sysv-install-for-OE.patch \ + file://0003-meson-bpf-propagate-sysroot-for-cross-compilation.patch \ " # patches needed by musl SRC_URI:append:libc-musl = " ${SRC_URI_MUSL}" SRC_URI_MUSL = "\ - file://0001-missing_type.h-add-comparison_fn_t.patch \ - file://0002-add-fallback-parse_printf_format-implementation.patch \ - file://0003-src-basic-missing.h-check-for-missing-strndupa.patch \ - file://0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch \ - file://0005-add-missing-FTW_-macros-for-musl.patch \ - file://0006-Use-uintmax_t-for-handling-rlim_t.patch \ - file://0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch \ - file://0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch \ - file://0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch \ - file://0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \ - file://0011-avoid-redefinition-of-prctl_mm_map-structure.patch \ - file://0012-do-not-disable-buffer-in-writing-files.patch \ - file://0013-Handle-__cpu_mask-usage.patch \ - file://0014-Handle-missing-gshadow.patch \ - file://0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch \ - file://0016-pass-correct-parameters-to-getdents64.patch \ - file://0017-Adjust-for-musl-headers.patch \ - file://0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch \ - file://0019-errno-util-Make-STRERROR-portable-for-musl.patch \ - file://0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch \ - file://0021-shared-Do-not-use-malloc_info-on-musl.patch \ - file://0022-avoid-missing-LOCK_EX-declaration.patch \ + file://0004-missing_type.h-add-comparison_fn_t.patch \ + file://0005-add-fallback-parse_printf_format-implementation.patch \ + file://0006-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch \ + file://0007-add-missing-FTW_-macros-for-musl.patch \ + file://0008-Use-uintmax_t-for-handling-rlim_t.patch \ + file://0009-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch \ + file://0010-Define-glibc-compatible-basename-for-non-glibc-syste.patch \ + file://0011-Do-not-disable-buffering-when-writing-to-oom_score_a.patch \ + file://0012-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \ + file://0013-avoid-redefinition-of-prctl_mm_map-structure.patch \ + file://0014-do-not-disable-buffer-in-writing-files.patch \ + file://0015-Handle-__cpu_mask-usage.patch \ + file://0016-Handle-missing-gshadow.patch \ + file://0017-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch \ + file://0018-pass-correct-parameters-to-getdents64.patch \ + file://0019-Adjust-for-musl-headers.patch \ + file://0020-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch \ + file://0021-errno-util-Make-STRERROR-portable-for-musl.patch \ + file://0022-sd-event-Make-malloc_trim-conditional-on-glibc.patch \ + file://0023-shared-Do-not-use-malloc_info-on-musl.patch \ + file://0024-avoid-missing-LOCK_EX-declaration.patch \ + file://0025-include-signal.h-to-avoid-the-undeclared-error.patch \ + file://0026-undef-stdin-for-references-using-stdin-as-a-struct-m.patch \ + file://0027-adjust-header-inclusion-order-to-avoid-redeclaration.patch \ + file://0028-build-path.c-avoid-boot-time-segfault-for-musl.patch \ " PAM_PLUGINS = " \ @@ -73,7 +76,6 @@ PACKAGECONFIG ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '', 'link-udev-shared', d)} \ backlight \ binfmt \ - cgroupv2 \ gshadow \ hibernate \ hostnamed \ @@ -135,7 +137,6 @@ PACKAGECONFIG[backlight] = "-Dbacklight=true,-Dbacklight=false" PACKAGECONFIG[binfmt] = "-Dbinfmt=true,-Dbinfmt=false" PACKAGECONFIG[bpf-framework] = "-Dbpf-framework=true,-Dbpf-framework=false,clang-native bpftool-native libbpf,libbpf" PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2" -PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid" PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false" PACKAGECONFIG[cryptsetup] = "-Dlibcryptsetup=true,-Dlibcryptsetup=false,cryptsetup,,cryptsetup" PACKAGECONFIG[cryptsetup-plugins] = "-Dlibcryptsetup-plugins=true,-Dlibcryptsetup-plugins=false,cryptsetup,,cryptsetup" @@ -166,7 +167,7 @@ PACKAGECONFIG[importd] = "-Dimportd=true,-Dimportd=false,glib-2.0" PACKAGECONFIG[iptc] = "-Dlibiptc=true,-Dlibiptc=false,iptables" PACKAGECONFIG[journal-color] = ",,,less" PACKAGECONFIG[journal-upload] = "-Dlibcurl=true,-Dlibcurl=false,curl" -PACKAGECONFIG[kmod] = "-Dkmod=true,-Dkmod=false,kmod" +PACKAGECONFIG[kmod] = "-Dkmod=true,-Dkmod=false,kmod,libkmod" PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig" PACKAGECONFIG[libidn] = "-Dlibidn=true,-Dlibidn=false,libidn,,libidn" PACKAGECONFIG[libidn2] = "-Dlibidn2=true,-Dlibidn2=false,libidn2,,libidn2" @@ -677,6 +678,8 @@ FILES:${PN} = " ${base_bindir}/* \ ${sysconfdir}/init.d/README \ ${sysconfdir}/resolv-conf.systemd \ ${sysconfdir}/X11/xinit/xinitrc.d/* \ + ${sysconfdir}/ssh/ssh_config.d/20-systemd-ssh-proxy.conf \ + ${sysconfdir}/ssh/sshd_config.d/20-systemd-userdb.conf \ ${rootlibexecdir}/systemd/* \ ${rootlibdir}/systemd/libsystemd-core* \ ${libdir}/pam.d \ @@ -717,6 +720,7 @@ FILES:${PN} = " ${base_bindir}/* \ ${datadir}/dbus-1/system.d/org.freedesktop.portable1.conf \ ${datadir}/dbus-1/system.d/org.freedesktop.oom1.conf \ ${datadir}/dbus-1/system.d/org.freedesktop.home1.conf \ + ${datadir}/mime/packages/io.systemd.xml \ " FILES:${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd" From patchwork Thu Jul 11 07:56:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChenQi X-Patchwork-Id: 46201 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 F2626C3DA41 for ; Thu, 11 Jul 2024 07:56:59 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.6954.1720684619348940162 for ; Thu, 11 Jul 2024 00:56:59 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=7922740ab3=qi.chen@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46B5DVwe020873 for ; Thu, 11 Jul 2024 07:56:58 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 406u4x4pvv-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 11 Jul 2024 07:56:58 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=THbyk5naW5pYdVts21W5rnP6vDyIRojmybIoRHh7E5HbqsqaNHn+dsOCNFtOzLUX+njt8W/rZUnKyHzu6hheI2C4hpiuRxxffd6MX30N9tfFtH/FYybZjw6uZNaMC1dM5WTsWjm/EPJeOdOfnv2Jenaw8ovqgLQ4g8syh5lPff48lmjKPcm4yJbMwMV76z4/2aFCCiATZ+ExtDk92GwOZ0vuwiJLm4qZ8ANU5+B3AjqYCxFREOGs/Sf+6taTZ3zg3U1HsRnX2pr42O9wGwuVJnLVpIdJ8jcOM3PgeTWSdJycv6gO7hbzq/7Fc1K7zAls/H6xI2eCAt8BfPiR3ClSQA== 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=GomCLokgEnjlbq/v4/iEekpQSIIAo520PvkiKJMdtHs=; b=KtmlNpwqkEusqrsLzZD9PAhC0hzK+HF/GnOFE+D72EfhJktE2pXWzaugrXLz6pz6cMwPU4RbjyT6JEu63bs8T68QBMEYJ2iQb0FQkbdR25MAtcrDU3pkcdjBjPrxzQOUbkrzL/ENWiAJcdk6gJDrbH5SudP6e4O9px30SMDzHsb2rqh+IwCc+xGet+lF4dcchNfLKdbs4IQrGtVuGWfXuSOKuq0u15IgaZGHmqeieSmim8lBL4xmB+uBBmQlfQs+5CKMZSUyz1eK5Y1VfuNUbBvFVE2klnLn7OwSy9smbh592dEg6QJwFOdBSB5+a88+Gje+04b6NfEdyomv5BxcEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) by PH7PR11MB7051.namprd11.prod.outlook.com (2603:10b6:510:20e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Thu, 11 Jul 2024 07:56:51 +0000 Received: from CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093]) by CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093%4]) with mapi id 15.20.7741.033; Thu, 11 Jul 2024 07:56:51 +0000 From: Qi.Chen@windriver.com To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH V2 2/5] systemd-boot: upgrade from 255.6 to 256 Date: Thu, 11 Jul 2024 00:56:34 -0700 Message-Id: <20240711075637.3023203-2-Qi.Chen@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240711075637.3023203-1-Qi.Chen@windriver.com> References: <20240711075637.3023203-1-Qi.Chen@windriver.com> X-ClientProxiedBy: SJ0PR13CA0010.namprd13.prod.outlook.com (2603:10b6:a03:2c0::15) To CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR11MB5602:EE_|PH7PR11MB7051:EE_ X-MS-Office365-Filtering-Correlation-Id: c41ed368-966a-4067-b7ec-08dca17f0586 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 9+arokeGefdwQN7HJpq8r2NKmrcPiPuZ+uC9vzgxQd86O6gBdvqvIlgaDGRqXBCen7bImsbeGSolO1PmqywAecxaq8/NLIjmWMGWtoh/7+QQyC8320XRGaR6+IOkF5EiShfso0tk1LcqN3bdt150yrl7MAYhNGNjabM35MgHdFS2jvZZrlMBrkxbUdsk/yy6uJGoGgjomc1qNPBPEQ7k1EFsqw6HZB8X1b9pD79vyqiRYxypska8xFT+nCB4T2YxsWMNLNupcsAuiRqjsNqlN1mIGa7HrBTqDqHAem7o3dlupLFjPdwD3nKNR0OO1o6D+U09ttKLXEwFErxrJCIfMK24E+Ys0YZns7KG3arMGZe8GNW4C3u06zJPw5jkyfOrzVkJ7jLiuvU+GFg+6x8tptE6GWY/7HqrnStohwFP6xsgH6Ndub26EiA3/2xZqs8JBdpYHkRT8KAhECNnWlOd+FlmlGN627SHFXLuIdDVacRpS/Ti9p4EF6LVeKSRpN2MpKf6KV+kNekHq6ThN93JAT6hablmfD8fZkZpadhQw8xU2pzXlDC4BMAoRN3984WRuppsGt9PaLz74fX0mMwI5A8KxnkEV64CLKx0OjjFRMlGyI16ClsHAM4hLjE2LH3i3Mfg9N/ajfJrMRqm1dtC5KmgggTeY4eUkGYeIUK76sZNGD3hUEtlWyxx+5v6QFj0pAfMnHnU41SbsMsdgPDSe6Ok/Gq17ZyB4FVzhaNhyCc3vFFk4ivfKUYcLRZCV7ESWE6zSzBkz/cjJ/ya1KdoOHMAFyiYMHTV2/eh2okPjUuemskHxHsCTEgiePG3hCoof+bJT8wUEhiIDsNPAJIDQZ2jyBJlYUdPy0AaJg9DknSKwpw59ieZSoyjz33aeYxsthQenJ6zHuAx8Oo6AaKh6oyFQ7KSav5zpUIcu6uM9PpkdWZYOb9WNEdJceWsM+kjp0enC4fl0o2lIHQJtsG4Qip7v3O0k5k4mNl2INi2voWQ4ponsInaTmfEZAmYbPPwqxvBCDdMBzW4xk3egnmMm+iGxtZ1RUXzjeMThGVsXahKCeeG+P3+VXarBL/T1iICKOMB0vR869prR6ufTH17batqh/8G+I1WM77r3Uic8ZtOHg6LRbhfipuX4hxzuqrmTIXAu2/nITHjsLS7bh8/dTwvTqD4eOWW/yxi5wFFxwTIqm5sbg6gVSEdYjJthriEuOe5a0PMskbEf3XO1FyTHbx+0XJ1RxJ1YFH0Rlgb/v438Ly9QtgFWiOB8VWdNPYb52FnfvH+wc3Ob+SlbxE9pjjKSU0WlEzoDJgbgnRQHn6LaMpS9b5rkmaAHG4t7/WluU3ZC5pZsJJiQbOrhPXtQNVAeHn28YjY/xTZACwbdd0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR11MB5602.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8+baT295LhsXEh6DtHJuRMIMLL2/UID57h5oRu11I9eyY/I0DEzCBZe6o/dSnMUhz+gnJmk0rKovWBxMhmgVTa7FLwqHNu7OjRv5aK0yp2+XWA9z5DrAL2Opv29QaQKYy6+7Lf/0X2T6ixGtTpGuOKaEHl/icKY/vJQRvpAFaOKclG1eWiHMZQygAjAigRKvr4U4sCdLMNCCDJsmJH1lV/OTtbiCDBDosmSscvVbudpIsbjM6Qu12cSKAQtIcSelNNaPbSvvTEMBoyZH9rsQkvfSY9aa6F0LHQFLKQxcbetQh+VpCPhSDksDo7IMvgvX5bz/yXbrhm7eqLgmFqnFOTO2c8Ngnx4L8ApwFBCuAQzJYvWm+8JtLSlo9Dl0usL8RkollzlQ6JEws5HWDKK2YUKeOxerb7DvoWj16SYFVUl+9xdFSEUPAil+HcIKCFw4EV+GqXbEDGALFiR2Va3EdjzApATOoPWxepMGwvq7VSTsWAAbVkBrbJvWXn62piT94+JuWbof/fQlWRjWa0FJ7+cmhR1YNvTSDS4ROIPPv+OCfEtNhz09e7qbQvzGyKEY2wiJV3B2UDL/P6qJs9IWbugisbWGTZhB7R7S6Z0/1wTTFfayDsp95/84L0IdyEpxvRD2a9zc2omMy1b3LJeR7wEP4ku8aeB8IbFrPRudRrIWzxZvzz//lEf8xzZdP3ByL9kloFmBR0WT+FC33qmQoeEzvcD3D2Wa3bCNqj4jeHSlx2Foh4cuHPxZi0D7xWY9z23mOQfoKCDOuSxsNbjqEf0xeJ/2w88EIgYUC/lynWiBSVlJNU0zJ5uHQzqHsTBRr0KIKKvwrvyUhhWW6FIELaE48q1rgTXr6eOAbja/+BRhnp97X7r/H/NGUlek9/qFVPp1GeoV5334A52zTaOBUfyeA1jhJmQDGqqSw7ePyE2yMQCk/J5GiiYUqjPc8zGgOorelvhiappXntLj0HE7DndYjMMTzAqGt35mCWBYQ04gp3Z3ZHFS+ZUhbBiiQVdZ1F2zOGOM752VbFt+lBL5GcOROLYmkYhvx2mZy/9g6vfK59EtLR5Uh8NNozUYNpJ+tEd3MtGDPkufqjVu+DT0hFu0CcSqGDNXta57DpmToWViVwpzqnwoPWhI6Mf/sUeuwGgWy8Yb2IDjCcQiveOhCuMdsHBhKVVdm7OJr6pdhq3hk1i2cj0WaEnjeHtj9zDyjoOvgRENxkVj7gUAasjdu+1gZ1RJHoUrb5YS9seKeemEpb5F+2+JTLSRscpOvJ/aBfrhyGtnnWikC6xZSF/WG1ygVRvvfGxNCLWtL/HX/NJbNZTIpnKRR1DabMtAzC+epVPkQUQ5Gku26TxrW5hLeQa1zZaT5KE74scZqRJ+s7IfK/wd09ngbpVw9XK3p4dx3E1/fD9jRJaNz8wkWdFZShKBCfZV05nPM7O/v4+wexkAvP69PhKQejnfyzsm5euQBN+NcW2Ew/u5P9nr0d66w6RV0agcZw9Dl8YHw7PCZ93+gceZr2QOqn4sIrRJYSDkOVwPiV7Vby9AKgH2MZfSSfK1EZ39xQhIJbd+EzMt5RN/PiK9k/qlikBs+u0hCOnkvTj8jiije/9gLqZbh5YDuA== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: c41ed368-966a-4067-b7ec-08dca17f0586 X-MS-Exchange-CrossTenant-AuthSource: CO6PR11MB5602.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2024 07:56:50.6486 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OvUhpTi7hzfTD0rWTiGe7tyeOs+23oCAktYpoc86sl2lqAzVpOMHYJF8/wRPHqp5CXAAnBxLJ+3K91nrYppecQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7051 X-Proofpoint-ORIG-GUID: sEWj2on8_UhhVSVe3bL30bkqLL9Z-QIC X-Proofpoint-GUID: sEWj2on8_UhhVSVe3bL30bkqLL9Z-QIC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-11_04,2024-07-10_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2406140001 definitions=main-2407110054 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 ; Thu, 11 Jul 2024 07:56:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201765 From: Chen Qi Patch 0001-src-boot-efi-meson.build-ensure-VERSION_TAG-exists-i.patch is added to resolve build time error. Signed-off-by: Chen Qi --- ...ve_255.6.bb => systemd-boot-native_256.bb} | 0 ...temd-boot_255.6.bb => systemd-boot_256.bb} | 2 ++ ...on.build-ensure-VERSION_TAG-exists-i.patch | 32 +++++++++++++++++++ 3 files changed, 34 insertions(+) rename meta/recipes-core/systemd/{systemd-boot-native_255.6.bb => systemd-boot-native_256.bb} (100%) rename meta/recipes-core/systemd/{systemd-boot_255.6.bb => systemd-boot_256.bb} (95%) create mode 100644 meta/recipes-core/systemd/systemd/0001-src-boot-efi-meson.build-ensure-VERSION_TAG-exists-i.patch diff --git a/meta/recipes-core/systemd/systemd-boot-native_255.6.bb b/meta/recipes-core/systemd/systemd-boot-native_256.bb similarity index 100% rename from meta/recipes-core/systemd/systemd-boot-native_255.6.bb rename to meta/recipes-core/systemd/systemd-boot-native_256.bb diff --git a/meta/recipes-core/systemd/systemd-boot_255.6.bb b/meta/recipes-core/systemd/systemd-boot_256.bb similarity index 95% rename from meta/recipes-core/systemd/systemd-boot_255.6.bb rename to meta/recipes-core/systemd/systemd-boot_256.bb index 9a6d8e9d6e..dd06b6218b 100644 --- a/meta/recipes-core/systemd/systemd-boot_255.6.bb +++ b/meta/recipes-core/systemd/systemd-boot_256.bb @@ -1,6 +1,8 @@ require systemd.inc FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:" +SRC_URI += "file://0001-src-boot-efi-meson.build-ensure-VERSION_TAG-exists-i.patch" + require conf/image-uefi.conf DEPENDS = "intltool-native libcap util-linux gperf-native python3-jinja2-native python3-pyelftools-native" diff --git a/meta/recipes-core/systemd/systemd/0001-src-boot-efi-meson.build-ensure-VERSION_TAG-exists-i.patch b/meta/recipes-core/systemd/systemd/0001-src-boot-efi-meson.build-ensure-VERSION_TAG-exists-i.patch new file mode 100644 index 0000000000..6f02ea2f43 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0001-src-boot-efi-meson.build-ensure-VERSION_TAG-exists-i.patch @@ -0,0 +1,32 @@ +From 9df06062cebd0390d33de9694e9cb1c9fa7b8697 Mon Sep 17 00:00:00 2001 +From: Chen Qi +Date: Wed, 3 Jul 2024 23:18:41 -0700 +Subject: [PATCH] src/boot/efi/meson.build: ensure VERSION_TAG exists in case + of cross build + +The GIT_VERSION is changed to use VERSION_TAG, but in case of cross build +for src/boot/efi, it's not set, causing build error because the compiler cannot +know it's a macro thus treating it as some variable and error out. + +Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/33612] + +Signed-off-by: Chen Qi +--- + src/boot/efi/meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build +index 7a60b0ec7e..99d108d6e8 100644 +--- a/src/boot/efi/meson.build ++++ b/src/boot/efi/meson.build +@@ -65,6 +65,7 @@ endforeach + + if meson.is_cross_build() and get_option('sbat-distro') == 'auto' + warning('Auto detection of SBAT information not supported when cross-building, disabling SBAT.') ++ efi_conf.set_quoted('VERSION_TAG', version_tag) + elif get_option('sbat-distro') != '' + efi_conf.set_quoted('SBAT_PROJECT', meson.project_name()) + efi_conf.set_quoted('PROJECT_VERSION', meson.project_version().split('~')[0]) +-- +2.45.1 + From patchwork Thu Jul 11 07:56:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChenQi X-Patchwork-Id: 46203 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 ABC6EC3DA47 for ; Thu, 11 Jul 2024 07:57:09 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.6955.1720684620043314005 for ; Thu, 11 Jul 2024 00:57:00 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=7922740ab3=qi.chen@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46B5DVwf020873 for ; Thu, 11 Jul 2024 07:56:59 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 406u4x4pvv-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 11 Jul 2024 07:56:59 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=m92DEH7seyl0fd1lL1iEWSwXs2/tnuk4E3gpmEu55PMsITo3tk05NY6rBtpR751BFykYRhKiSyFhcFWSSKuL4O8+ZQbFG71rcxe+OvyClEBo89rNJefXVHdGFY0qfQU89h7XX5UIgwMMEig2PCRdGyXxm9Cl2r9QOTdDFPX+bjucrb5scCE/ExdSgqhlUp3BsS/58o/qHE2BG9siS/yTDdn1vF3K++fsHBQPvtYnMNBmJNCrt17Edk/pnWXhumHAxB+jJB8x2I3y9cx8VQZCyxCAJhd7Zp8/LmLM0pHo1lGDoF7qqGyh5V7Al3FIe/5QlrSJhhUiLg+AGFWXGQrdxA== 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=BQY+poplXZ8tSvkkGwafG1nQS8QrlphsPNFWfSVpk5Y=; b=lDdsWd8Topa+ix4eD4jkFusyORgMLLnH3ELSgLJuL1OLDMNpz5eQXHXcKVKeyPS6sY8pMxmx4WXw2m8upO+gvwTNWeFpcaWT15xEwLpni0KfVloSwDGpUZdwN+yyxdvN/gnVBthdMPm7lEedhb3O3t7GSjNOskywnm+rOo9iFrvbKYzXWV4TROPZc4ebjdsA20oAJ2IjlhxMB/7DFwBx0NI7oIb3pGGlQ78e8pEGSMhSZCs2DDT5fsuiqxr5eiFt5Pw2hiwZUHIIkIzV7uw4Im6tGBcRrLxqIjcm731ANLufQXrWjx/IvSIPmLccOd77yUA57AR7H3cOjlw7ikVvTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) by PH7PR11MB7051.namprd11.prod.outlook.com (2603:10b6:510:20e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Thu, 11 Jul 2024 07:56:52 +0000 Received: from CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093]) by CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093%4]) with mapi id 15.20.7741.033; Thu, 11 Jul 2024 07:56:52 +0000 From: Qi.Chen@windriver.com To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH V2 3/5] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1 Date: Thu, 11 Jul 2024 00:56:35 -0700 Message-Id: <20240711075637.3023203-3-Qi.Chen@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240711075637.3023203-1-Qi.Chen@windriver.com> References: <20240711075637.3023203-1-Qi.Chen@windriver.com> X-ClientProxiedBy: SJ0PR13CA0010.namprd13.prod.outlook.com (2603:10b6:a03:2c0::15) To CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR11MB5602:EE_|PH7PR11MB7051:EE_ X-MS-Office365-Filtering-Correlation-Id: 592bb55a-ae54-4d55-83c1-08dca17f05af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: RJa0lcfqnQooEDzeUZg0iFKXn+VkcVk4p6LH2g+cQE+ZN4CbGTUhuMik3zi/0/PvhuYFytnHEan9UB3G/M+ym+yoeKcwh3rwuEUf3CbY0DUJZkPPaYPmfSUsZM9TeK6A1R2QqYQUpoPfmqMIU3kN+nUeq1R1VPJz1g8KA1fi886vAi1DGBCg/xQP6W0kCEsGuqMn4tIBhnQW1q6Yh8xw+ei5H9DUBL+5ODDi3FFquJS9HNwPdWjH1FmNysY0rU2Dq/mUjgoCvWsvCLuuavDQhg7lyha4MwCx17OiTkPyR3vw7wfKWNg7+2IKBrk5s8cPxtuveOVKoqBCYmajZN8wORE78bB/TmUdVoRYu9b5OGvFMmNTZpb2ugAr+9dYrQLNve3PHXyxa+wQG61ZosOKCg+qAwT3dHA4b6LFXvN56wpAKMM9bvnhq3zynwBc3O2xy+oypUjKgUpUM/djONbSiKTRZRExYkI8XJI1ANCLA27pTsOAvffkK1U/G+4COqHKQE5XIUTMvwnwBw5Pm1a1A+96ZfVM1mnpSlM82yqW11w05p2S7t84I2/kYJtwLElTnF4B19ziR9P192V+gfo3OKFKi34gysQfLSrZhktQC9KH2rij+s62luJtsWT0hZjlUh0Q0SESr2756M7Aq2IiGZiiR49ES2B93tBL/O1b+J7CqDmUm7OgUP70fvOelOpAArHTWtCWFAcRPfdp7nCNvoHrshagRLnuDRC2pEK7LypuHi7YyQv9FbjLtDw23bStB9MexWN93ri/64thACv+yJCNI1Dugs1qwaHCaJIJY48l2AHzcTxvBlZW3NvyCyD2jod3TCGM/EisYU7ZtVba9LnOybltq6EgBUyCt8OOR3r+68z3FwueFFRz9WK7m/Rx7xcbf5/qjxaA/JBa3xn6U/CHB4ODc7WeJ1zqBZipwY3gt9r3NNdFpsiiSmSDvv3q58EnyGnZ98Rw+ThCwgj+saPb7PdwAO7kbYUuKM/W6PJIE5jFnk4gxcdxiR1SysoPTJyoG6lSGGydj5ywhNAe7y5p8nfgSBIbbqh8MGfQ6m6xJDMn1/nSIR/oc9CxnieMU7+Dmo8E/hyBZxGXNHVd7CU37PzXNOuxDtKp5yp8/etKh/cZQOSwkFCGaX0hoto9VXit1duYJYLciviO2meHGj8TZv6GBR2o0+df9kCzp3G3qkWbZYMN5oJhfKwiuQBkgnBiHDWdkkUzZKVUZAtI8xO6Ixj91NMLlX4rGSO8icyUfn24KmRgLXm1Cd6nK/YQGdBntyRUcbVyfmZPZnhd5YlnhmmprebTbngbA1ql3abM74oEYWNIUckaWoyzVyO54YHeXVV3fzAO1ng/EQwUZyMhKBLO/mzt3dHAtrg2+cQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR11MB5602.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6eSFeS+eEi06gfET3eMngB0u+jDrvYsi4GK8n4HB9LLxwLDhVoaLxOFQyT4sR1m06bh+tImzaXVVyQH0sAmAX0fNQ7oi9db/SEzZvsdVnJRvURYZhDcaeofwX9aHh16Vk0tVjqkaTPr9dyes6DuyBwM2ICwU47fZLqP6MRkJ+H6cNKAloZueffLd1Ce46lNPsyId+HrghjgMSJOpBm4EaJkVElpdmYx7jv+ur9oFz9kXEpVu2JdfUoV3wp+GJUC8RxyHjJbXFoRvy0kr3YHeRbu2qhVLErGNhC+SAWC9hBPwa5JLwcms1zW8pQh1R+FaJlngU/7JGRJwmMVLTO7JrotX/ytSWWQ6P22bmBqwjH08Q+8ns88u/wZP8KW6QP6jylPgcNAFS1jqcUVqVxRjst0J9K7LgyDHNY6pOOpQ/h2/LEWnfbUwinMSdXXvRoSk7m6A5yzMqvwleZR1sICObTA/b/p9nwyNqDF+A/D2BaTwcYgt9fRTo5yhzcADjOtgwDoiLrwY5/gg2uo6hpbnTeLKIbqWEHwQtNQqjr7ASZ0a9hyYpLbrZ68/LJanclIpdcdgOcSjG5JJQ1oQDepKMk9Sk3UyUXsJkA1r60CdYVdMiUrwwzVw5ShIjMoY4DypRBSS9yDQMeTcEupaPk995RrORuzNfCtfTApEOG+tQ34Fz96NHk5j/Fy9WdGz7D9AsQk9oBOCeK/C7Yj/gxIFes44PygO1QPmsovEu7vwrX2fsD+6nFta7CbrePnuHRg8obHmI/F7LB1Qab4pwhPtEObNehJaMFK1vx44Buy4ZinfonVm0T/qLZgbZ26Tz4DD+VlSgkPK2EAb90baX5yMmn3tAYu4l/NaXSeG5tVrcNeMFAKGCb0X+mULqO+oiz2hAsFQJQvRMvAo9kPHW0ngxZkHy7uyxxITBbPnEZqXGDxjbbDWMTQX3P813SLX2TTX7fgcjTmiR6DyL5+Ip8PlA3SZ3d5luIweCsZgbE95YpSRoy+yMgPd2BMc4C7Hdv1nfBu4lePfMoGSL6OZP2stihHWv9nKwiSlZb6NlqwMZcLm56D5wCKTDjd8KAk3eQ+mFmeQrTXvMLidHL5uF97TY6RdOGDZ66gYDBRhG4Df5FP4iKI+tmfZk5+AJ/i2NA6FO3UVDi9drBI3EGevnvX2pB7mwhlP0tHpiBf4nW8/2NCE7LIps+iAS8GwF4IuaNPsok3w/SsDVnmgHsCQVui+vqod5Fo0wqdU1mvxvslDcR9zHrDwwXBOKjRUutQVB95wwkpqSinToHTJHswOKMRn0RF5QUIWufxgjhZZ6mwK4UnHy2Qrmz4oQNyA0uFCzMNo9JMTUJZlu/dR/J6zJv8RK4QgTLSPWrmH5xQsb7i7Q5yG49gH297X2yJNwpyu6mnWBuRNJ/dhUS77xPaRr0LPuDKIuURJtajbhNpNmvtD0rhP3A6YvyldEesnBAIy1uz5y1C2YadlifsLUiBR8VJS/QmbXomxu0wq9ns6RW6QRWxJrmmuFDJLEE55/TchSPD6QxmkV/iAAFNq3TbNCC8TblWMW0Sco3cpg6xHz9SqiM3vfns1fzK07zT4Iwjg0Lz8 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 592bb55a-ae54-4d55-83c1-08dca17f05af X-MS-Exchange-CrossTenant-AuthSource: CO6PR11MB5602.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2024 07:56:50.9218 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8RYyFOiRCDgskbAPCKcz36ggn2pA9rJq9n3DzdYqGido4FNNyWYubQmTvaF2Ep5OlMGYEFjdvvHVk6wy3w0zDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7051 X-Proofpoint-ORIG-GUID: xfDxabTCsTNTTRPIKbZ6qwf6y78dHoZH X-Proofpoint-GUID: xfDxabTCsTNTTRPIKbZ6qwf6y78dHoZH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-11_04,2024-07-10_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2406140001 definitions=main-2407110054 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 ; Thu, 11 Jul 2024 07:57:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201766 From: Chen Qi License-Update: =============== GPL-2.0 is changed to GPL-2.0-only in README.licensing. The following two patches are removed as they've been there in new release: 0001-login-utils-include-libgen.h-for-basename-API.patch mit-license.patch Other existing patches are refreshed to avoid patch-fuzz error. A new PACKAGECONFIG, lastlog2, is added, which serves as a switch to build Y2038 safe lastlog pam module. This is a new functionality added in 2.40. This 2.40.1 version has the problem of unnecessary remake, causing intermmittent errors at parallel make. The do_compile:prepend is a workaround for this. Upstream issue and PR are: https://github.com/util-linux/util-linux/issues/3061 https://github.com/util-linux/util-linux/pull/3064 do_install is changed to do_install:append, the legacy codes are removed. They've been there since the born of oe-core. I tested with ccache, there's no error. A new dependency, diffutils, is added to ptest. Because the mkswap-offset test case needs 'cmp' from diffutils. The tests/ts/misc/enosys test case is deleted for musl. This is because the test case is comparing error description output and that's libc specific. Results below can demonstrate the case. ''' root@qemux86-64:/usr/lib/util-linux/ptest# cat /usr/lib/util-linux/ptest/tests/expected/misc/enosys-ioctl test_enosys: ioctl r=0 errno=Success test_enosys: ioctl r=-1 errno=Function not implemented test_enosys: ioctl r=-1 errno=Inappropriate ioctl for device test_enosys: ioctl r=-1 errno=Inappropriate ioctl for device test_enosys: ioctl r=-1 errno=Function not implemented root@qemux86-64:/usr/lib/util-linux/ptest# cat /usr/lib/util-linux/ptest/tests/output/misc/enosys-ioctl test_enosys: ioctl r=0 errno=No error information test_enosys: ioctl r=-1 errno=Function not implemented test_enosys: ioctl r=-1 errno=Not a tty test_enosys: ioctl r=-1 errno=Not a tty test_enosys: ioctl r=-1 errno=Function not implemented ''' Signed-off-by: Chen Qi --- ...2.39.3.bb => util-linux-libuuid_2.40.1.bb} | 0 meta/recipes-core/util-linux/util-linux.inc | 8 +-- ...ls-include-libgen.h-for-basename-API.patch | 60 ------------------- .../util-linux/avoid_parallel_tests.patch | 5 +- .../util-linux/configure-sbindir.patch | 7 +-- .../display_testname_for_subtest.patch | 7 +-- .../util-linux/util-linux/mit-license.patch | 45 -------------- .../util-linux/util-linux/ptest.patch | 11 ++-- ...l-linux_2.39.3.bb => util-linux_2.40.1.bb} | 24 +++++--- 9 files changed, 31 insertions(+), 136 deletions(-) rename meta/recipes-core/util-linux/{util-linux-libuuid_2.39.3.bb => util-linux-libuuid_2.40.1.bb} (100%) delete mode 100644 meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch delete mode 100644 meta/recipes-core/util-linux/util-linux/mit-license.patch rename meta/recipes-core/util-linux/{util-linux_2.39.3.bb => util-linux_2.40.1.bb} (94%) diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb similarity index 100% rename from meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb rename to meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index d506783f9a..0f5f838e84 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc @@ -6,7 +6,7 @@ disk partitioning, kernel message management, filesystem creation, and system lo SECTION = "base" -LICENSE = "GPL-1.0-or-later & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT" +LICENSE = "GPL-1.0-or-later & GPL-2.0-only & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT" LICENSE:${PN}-fcntl-lock = "MIT" LICENSE:${PN}-fdisk = "GPL-1.0-or-later" LICENSE:${PN}-libblkid = "LGPL-2.1-or-later" @@ -14,7 +14,7 @@ LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later" LICENSE:${PN}-libmount = "LGPL-2.1-or-later" LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later" -LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba \ +LIC_FILES_CHKSUM = "file://README.licensing;md5=ddd58b6c94da86ff4f03e91208eb9cfc \ file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \ @@ -30,7 +30,6 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:" MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \ - file://mit-license.patch \ file://configure-sbindir.patch \ file://runuser.pamd \ file://runuser-l.pamd \ @@ -38,8 +37,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin file://run-ptest \ file://display_testname_for_subtest.patch \ file://avoid_parallel_tests.patch \ - file://0001-login-utils-include-libgen.h-for-basename-API.patch \ file://fcntl-lock.c \ " -SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f" +SRC_URI[sha256sum] = "59e676aa53ccb44b6c39f0ffe01a8fa274891c91bef1474752fad92461def24f" diff --git a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch b/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch deleted file mode 100644 index 6258710e1e..0000000000 --- a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch +++ /dev/null @@ -1,60 +0,0 @@ -From d44e3ad1f6f8b5c1b3098bb7d537943a4c21d22f Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sun, 3 Dec 2023 19:59:46 -0800 -Subject: [PATCH] login-utils: include libgen.h for basename API - -musl has removed the non-prototype declaration of basename from string.h [1] which now results in build errors with clang-17+ compiler - -include libgen.h for using the posix declaration of the funciton. - -Fixes - -../util-linux-2.39.2/login-utils/su-common.c:847:20: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] - 847 | shell_basename = basename(shell); - | ^ - -[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 - -Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2615] -Signed-off-by: Khem Raj - ---- - login-utils/su-common.c | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) - -diff --git a/login-utils/su-common.c b/login-utils/su-common.c -index b674920..3297c78 100644 ---- a/login-utils/su-common.c -+++ b/login-utils/su-common.c -@@ -26,6 +26,7 @@ - #include - #include - #include -+#include - #include - #ifdef HAVE_SECURITY_PAM_MISC_H - # include -@@ -840,17 +841,20 @@ static void run_shell( - su->simulate_login ? " login" : "", - su->fast_startup ? " fast-start" : "")); - -+ char* tmp = xstrdup(shell); - if (su->simulate_login) { - char *arg0; - char *shell_basename; - -- shell_basename = basename(shell); -+ shell_basename = basename(tmp); - arg0 = xmalloc(strlen(shell_basename) + 2); - arg0[0] = '-'; - strcpy(arg0 + 1, shell_basename); - args[0] = arg0; -- } else -- args[0] = basename(shell); -+ } else { -+ args[0] = basename(tmp); -+ } -+ free(tmp); - - if (su->fast_startup) - args[argno++] = "-f"; diff --git a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch index 85ad7a5575..8ea00dbb95 100644 --- a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch +++ b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch @@ -1,4 +1,4 @@ -From 0b05e4695a0616badef71dfa459a00ef6ff1b521 Mon Sep 17 00:00:00 2001 +From da58b4150f6932de36c962ea657713bcf4ea44be Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Mon, 14 Jun 2021 14:00:31 +0200 Subject: [PATCH] util-linux: Add ptest @@ -9,13 +9,12 @@ Revert run.sh script accordingly to serialize running tests Signed-off-by: Tudor Florea Upstream-Status: Inappropriate - --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 890212f..870e817 100644 +index 651ef2b..2a8012e 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4]) diff --git a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch index 75adeca188..74abdc2038 100644 --- a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch +++ b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch @@ -1,4 +1,4 @@ -From c79222a9a5e3425c55e150edc0b7ac59c573aa2f Mon Sep 17 00:00:00 2001 +From 0387d71516c978899cfd556ca512f530a212b4a9 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Mon, 24 Sep 2012 07:24:51 +0100 Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected @@ -9,16 +9,15 @@ fix the test, the [ ] syntax was getting eaten by autoconf Signed-off-by: Phil Blundell Signed-off-by: Saul Wold Date: Thu, 3 Dec 2015 04:08:00 +0100 Subject: [PATCH] Display testname for subtest Signed-off-by: Tudor Florea Upstream-Status: Pending - --- tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functions.sh b/tests/functions.sh -index 5a562a3..098145e 100644 +index 5fe5ba0..a6c703e 100644 --- a/tests/functions.sh +++ b/tests/functions.sh -@@ -437,7 +437,7 @@ function ts_init_subtest { +@@ -450,7 +450,7 @@ function ts_init_subtest { if [ "$TS_PARSABLE" != "yes" ]; then [ $TS_NSUBTESTS -eq 1 ] && echo diff --git a/meta/recipes-core/util-linux/util-linux/mit-license.patch b/meta/recipes-core/util-linux/util-linux/mit-license.patch deleted file mode 100644 index afbec98f18..0000000000 --- a/meta/recipes-core/util-linux/util-linux/mit-license.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 5b8fab1584017d9d9be008c23b90128bba41a7b5 Mon Sep 17 00:00:00 2001 -From: Richard Purdie -Date: Thu, 28 Mar 2024 12:16:57 +0000 -Subject: [PATCH] README.licensing/flock: Add MIT license mention - -Looking at the license text, flock.c is under the MIT license (see -https://spdx.org/licenses/MIT). - -Add an SPDX license identifier header and add to the list of licenses the -source so everything is correctly listed/identified. - -Signed-off-by: Richard Purdie - -Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2870] - ---- - README.licensing | 2 ++ - sys-utils/flock.c | 4 +++- - 2 files changed, 5 insertions(+), 1 deletion(-) - -diff --git a/README.licensing b/README.licensing -index 4454f8392a..535ad34813 100644 ---- a/README.licensing -+++ b/README.licensing -@@ -12,6 +12,8 @@ There is code under: - - * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version - -+ * MIT - MIT License -+ - * BSD-2-Clause - Simplified BSD License - - * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License -diff --git a/sys-utils/flock.c b/sys-utils/flock.c -index fed29d7270..7d878ff810 100644 ---- a/sys-utils/flock.c -+++ b/sys-utils/flock.c -@@ -1,4 +1,6 @@ --/* Copyright 2003-2005 H. Peter Anvin - All Rights Reserved -+/* SPDX-License-Identifier: MIT -+ * -+ * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation diff --git a/meta/recipes-core/util-linux/util-linux/ptest.patch b/meta/recipes-core/util-linux/util-linux/ptest.patch index 6221de7182..7345926b88 100644 --- a/meta/recipes-core/util-linux/util-linux/ptest.patch +++ b/meta/recipes-core/util-linux/util-linux/ptest.patch @@ -1,24 +1,23 @@ -From d0a69ce80c579cbb7627a2f20e8b92e006a8d8ad Mon Sep 17 00:00:00 2001 +From f9be73c3e2b0a4f0923950dcb058be85d3ee8ed7 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 3 Dec 2015 04:08:00 +0100 Subject: [PATCH] Define TESTS variable Signed-off-by: Tudor Florea Upstream-Status: Pending - --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am -index effbb02..7d2bd1e 100644 +index 50ab8d0..7e2340d 100644 --- a/Makefile.am +++ b/Makefile.am -@@ -57,6 +57,7 @@ systemdsystemunit_DATA = +@@ -64,6 +64,7 @@ tmpfiles_DATA = dist_bashcompletion_DATA = check_PROGRAMS = dist_check_SCRIPTS = +TESTS = $(check_PROGRAMS) - PATHFILES = - ADOCFILES_COMMON = + BUILT_SOURCES = + diff --git a/meta/recipes-core/util-linux/util-linux_2.39.3.bb b/meta/recipes-core/util-linux/util-linux_2.40.1.bb similarity index 94% rename from meta/recipes-core/util-linux/util-linux_2.39.3.bb rename to meta/recipes-core/util-linux/util-linux_2.40.1.bb index 2cd7750afc..b70d97a934 100644 --- a/meta/recipes-core/util-linux/util-linux_2.39.3.bb +++ b/meta/recipes-core/util-linux/util-linux_2.40.1.bb @@ -90,7 +90,7 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3" # build host versions during development # PACKAGECONFIG ?= "pcre2" -PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}" +PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam lastlog2', '', d)}" # inherit manpages requires this to be present, however util-linux does not have # configuration options, and installs manpages always PACKAGECONFIG[manpages] = "" @@ -106,6 +106,7 @@ PACKAGECONFIG[pcre2] = ",,libpcre2" PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup" PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh," PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" +PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3" EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'" @@ -117,6 +118,7 @@ FILES:${PN}-mount = "${sysconfdir}/default/mountall" FILES:${PN}-runuser = "${sysconfdir}/pam.d/runuser*" FILES:${PN}-su = "${sysconfdir}/pam.d/su-l" CONFFILES:${PN}-su = "${sysconfdir}/pam.d/su-l" +FILES:${PN}-lastlog2 += "${base_libdir}/security/pam_lastlog2.so" FILES:${PN}-pylibmount = "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.so \ ${PYTHON_SITEPACKAGES_DIR}/libmount/__init__.* \ ${PYTHON_SITEPACKAGES_DIR}/libmount/__pycache__/*" @@ -136,7 +138,7 @@ RDEPENDS:${PN}-dev += " util-linux-libuuid-dev" RPROVIDES:${PN}-dev = "${PN}-libblkid-dev ${PN}-libmount-dev" RDEPENDS:${PN}-bash-completion += "${PN}-lsblk" -RDEPENDS:${PN}-ptest += "bash bc btrfs-tools coreutils e2fsprogs findutils grep iproute2 kmod procps sed socat which xz" +RDEPENDS:${PN}-ptest += "bash bc btrfs-tools coreutils e2fsprogs findutils grep iproute2 kmod procps sed socat which xz diffutils" RRECOMMENDS:${PN}-ptest += "kernel-module-scsi-debug kernel-module-sd-mod kernel-module-loop kernel-module-algif-hash" RDEPENDS:${PN}-swaponoff = "${PN}-swapon ${PN}-swapoff" ALLOW_EMPTY:${PN}-swaponoff = "1" @@ -147,18 +149,21 @@ SYSTEMD_AUTO_ENABLE:${PN}-uuidd = "disable" SYSTEMD_SERVICE:${PN}-fstrim = "fstrim.timer fstrim.service" SYSTEMD_AUTO_ENABLE:${PN}-fstrim = "disable" +do_compile:prepend () { + # this is a workaround for the unnecessary remake problem. Issue and PR are as below: + # https://github.com/util-linux/util-linux/issues/3061 + # https://github.com/util-linux/util-linux/pull/3064 + # When newly release tarball contains the above fix, the following workaround could be dropped. + [ -e ${S}/libsmartcols/src/filter-scanner.c ] && touch ${S}/libsmartcols/src/filter-scanner.c + [ -e ${S}/libsmartcols/src/filter-parser.c ] && touch ${S}/libsmartcols/src/filter-parser.c +} + do_compile:append () { cp ${UNPACKDIR}/fcntl-lock.c ${S}/fcntl-lock.c ${CC} ${CFLAGS} ${LDFLAGS} ${S}/fcntl-lock.c -o ${B}/fcntl-lock } -do_install () { - # with ccache the timestamps on compiled files may - # end up earlier than on their inputs, this allows - # for the resultant compilation in the install step. - oe_runmake 'CC=${CC}' 'LD=${LD}' \ - 'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' install - +do_install:append () { mkdir -p ${D}${base_bindir} sbinprogs="agetty ctrlaltdel cfdisk vipw vigr" @@ -342,6 +347,7 @@ do_install_ptest() { do_install_ptest:append:libc-musl() { for t in tests/ts/col/multibyte \ tests/ts/lib/timeutils \ + tests/ts/misc/enosys \ tests/ts/dmesg/limit; do rm -rf ${D}${PTEST_PATH}/$t done From patchwork Thu Jul 11 07:56:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChenQi X-Patchwork-Id: 46200 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 DAA6EC41513 for ; Thu, 11 Jul 2024 07:56:59 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.6985.1720684618357998721 for ; Thu, 11 Jul 2024 00:56:58 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=7922740ab3=qi.chen@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46B5DVwd020873 for ; Thu, 11 Jul 2024 07:56:57 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 406u4x4pvv-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 11 Jul 2024 07:56:57 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TYlduJGK3UsCj7fSmKuQmC/CBfiE7fUgO12pFVMIqMWeTDKgag5HmjruYuO7FQEtiQCMK26X2mlgMn0Z3MtEHWFMsmldbzr6IddCtUXI8Fb9ftgkNPBg3WnNxR+VCmIIcgusVAH3UvtqGAzDZKSdohRKTpGWDNXgUvE1NZwtzJyX1BjdtSE8lO6bNnZd9dVRqDqevLxNXpDCJOLesV7DRX8zKgTctHjcFuycW3tcv8G/oZZtSmZ/IeFFTKXTSeKGn/fJf1SI9+icLkdCkMntOP9tStUn05II/Lzfz3wpTtbzjYkC3d+l5vXiIQmWW60Q28Rn6HySR4Qj+2MIvlHLzg== 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=6Id6XlMB7AkZTMl1BgYRM7M2MlBt7OJiRtwPkrOkolY=; b=JAntGu1d7BdkyDVyMAqYleADbLmDqiuguW6VcFIaKBVihjTMa95g2j48yXBvXqV6QniD3Z7+ZA2DnZneLSUD87k0tQ/p5MmsJsTwv8AowrC54/4GvEIAEn/dFhstHj+bBXBkRKsWMsiLdQwBqEVCAzQiniE6S82K9aexvO+/tlPrMWvp2gJcUiU6E03s4lLvUTvHbXbjhiYW7qWWrCzHcAXdkawsBfMmy63kWv34JqKFvkrJ3z/2+T0ijGswHWO/0u5I2VJwONU1u1jRSiBLRr2rFWWtLqT/w+P2l9DaUffFfKCMNN4mZ1dLnQkAJmzF/Lq9QT3jZknzqWKiH4owKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) by PH7PR11MB7051.namprd11.prod.outlook.com (2603:10b6:510:20e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Thu, 11 Jul 2024 07:56:52 +0000 Received: from CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093]) by CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093%4]) with mapi id 15.20.7741.033; Thu, 11 Jul 2024 07:56:52 +0000 From: Qi.Chen@windriver.com To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH V2 4/5] libssh2: remove util-linux-col from ptest dependencies Date: Thu, 11 Jul 2024 00:56:36 -0700 Message-Id: <20240711075637.3023203-4-Qi.Chen@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240711075637.3023203-1-Qi.Chen@windriver.com> References: <20240711075637.3023203-1-Qi.Chen@windriver.com> X-ClientProxiedBy: SJ0PR13CA0010.namprd13.prod.outlook.com (2603:10b6:a03:2c0::15) To CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR11MB5602:EE_|PH7PR11MB7051:EE_ X-MS-Office365-Filtering-Correlation-Id: 26e92019-c131-462e-d694-08dca17f05d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: Unj9JU0hbkTn7ozf07bPUrVoGBGC85dEFrd6IM6zGPXyljtPXMwyzk49frI69FKbG/6OtkgNCV7stF+iPPpHep7jyzafr+RM2VLnmGSmrAeAyUS87yF8iFrhOvUKAWS5aRfChOQfP4viKoMpavZ/0qbn4IjMTykF2A/GBuirBKkNw4BiLFeWpUXTjyA/lmEysWiZPUNJ6LzBHPHiuvBm17I31C7IUUIgQJ5s1itXwQyMZQ8qVOdYZ3ZI3oopMdH8Rf86m7gzEaks6dONFjQmXW1+OVEE+2ei7YgfeK5MFn00AaJ2nHNQ5B1MWggqhiKlMjXE+bqI49kfwgwxXtBKhGk9jEiKoGWBI1DfLz/x6dSyFcEVlo82mprrLAElYjPiYGrN7qa8GYqEgwnxdhPYSjWMo0aElpCl05+/E5EBnQ49k6QTzp2yVDuww7BCrY/J7YWFThp59lPp9JYgkRHw5WvdsIOSrX3xI12uQeUXJzUB7zG1on/acuY/i409CMU+QCVj8mMLMV2ziOsP91oIbMgke16ufhcLTerj4/hG3LfZDwgk9VDgql34FA9b4jN3Oe0aLFGIoPllsU8bIX7tICE0xbepTelshHJl64KvsKYCffvDoOWZFVCSGwcI/4vh3+k6nlMubnyF3n5UMw6CxzRFgL/vl7FmA2HOA+/9GyRQ4fVU9z1Df2zAD3lsJxIKzEuUc2jpbwCZL/s6CGsK38PrRosFWfLhxmOg6H+QrIgUUqQeX50ANvu2ZCyC1hm4F6XMnrhVXPvmupi5hQm7Em7pw9y+EwKow73s8mg+xP85Pp45BDAwY4cG34GdIHgFTw2rFnDsi276w3ArIphtGQE9ZD22ljkxM6u8eEHbsIWFzIYO32NW6blMWluhp6B8QJPuS6ldHgUlarUwsY6JseEwuAKNNcSku6kyw7bW+2sbKLFLhQPUZBpCCvMSmPBHOR3pH6NiVQD7egKzAcCCiTUkMRCGl2kgAYWR6EyRfGfzdbwCkxHMzMWBjU2khKEARgnfGPrU+Zo29FctdJDnSjDyCs1tjqFtuMk99Dr2Zcb7C8cJM6vNc8SHEIVTAC++tlvNWhgGiJYHP6lB3y93r0IZFiHpfmPK9DwaMVZBiJlkKa1FGrWhrsVJ/NScGTFaWGcGgQs6U5H8XnhwkMRiFeHMkEMF7l4cNLc7hQQ8zMTD6HnkQ0txkYMVXx6/OqISt6sL8pIzKsHkkRiAfwd/dXjwFK6FTVb1bETbYJvaAoncQxqBpcL2XnE5ttNBiUFrnFV3l5kDSZ3z1i7pTkuK/yGdfWxHkJagMYVdaGuU/n30qECrYXt3RGnfzqfDJajupNMYuYrbl6IeINP2bz1LEzHn9y2HSfWyNAWgfT59x3A= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR11MB5602.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VwnMEYZGJwRIzzNfsV/rUC92KVRAnHWMM6ixVpmomx/owCjB0CTgTOkMX+0BD9sRxldyVSG/4kHCoust13cYqBJYhcIgTt7dTsIpZtJw95DEYhSeyPVidP4WJ1cLjO3nZNX4JpkeBhzk5mpgkqGbMMSLH3SWu/IT20JAH+v117wlPclWiD8QYZ/mZEwgzoYWUvE57X1twWf4B4LEZImu/sMppsvcmLviJcZN7hAN9RY1C5u15KCEBqms2KnU8enHo10/zKxVMlh30PVR3KyeAexLLh5Lpo2yAP8f4S3iF6SIBeO4rMdcNqynobwtEuRAWWFvj3jvKx+rfcCtReqDziIVemgUtUohbfGv3KQlXbs2hUsUnuGHQOK+F3F1aXEFE5KtZtxNpo1cmw+vRRXJkHAIha243sjEv+uBmXn076BsjHqKczMhoHtpiZj8W1oK40sKVnI6aW5jz5NsuJEG3rsM6mtw2V43kfsDv30yqUM6ewCFkubp9YcNTGx6Y8ZElMKGuArvi/bspU6wIgdaGsjnz7lW5rIp/fG11FKH1HJhXDj0aIM+Ur3ObAOss8rE8tyHu51AIEhFVEX4K6dA+8dll6uo5bwtEPtnGocQfKQud6ip/VSOiJsh/yJcCaom0ICWjcoE6adyYlGMXDj4Li3+ycOncV+/Pp9+CR+T9vDwwvBDZ2SKfuhaNpLL/nWbWN4Bw/Fol3IPvUhtn9VVJVLlNM5iZzjvD3r/JhBA9FCO8Q4CAP67+zx3auIURnRKmIqzRVn3iRLAYWM6+MlZbrmkFd11yC7Iyk57fXxBhnSanvRy4SvsXm0ODN/YMcMHLnYcKhe1FGqQTmZbUb3n0hhAqYp6jwfkGxQSClb3IKf2fQx2mKlTczjCdqIo4Sjv/dsz6NdSPE71HtYw8W03pqSMBIdYEgOmxcs6zqG5BKomrD2jVI8Ekfbq/2A09Xxn1NO7h0sm+6uVepC9Vlmcqo1GyHB3T3Xz2T+bZk52MLAGnMw5zBkGlnGKRpUlqjV+vxgAmTZjH0aPXYG23PIc3hSndmdbnhAHcNNy/VkNXm3NkS6xU/0QqPUHcOhW1CTOpwrOimWYa8ZsjvCeQHiMu4hRGqMu6HKVpyiek+pMNfMewSxFUT6hU/HGoDpmnGO25g26H80hcnn8gJqJq6aFaaVMx3AgE5W/2sOxwQpHYNaPEyzi63ZnKQmxcXEF2HKZBg8eJoi2++gKkFNHfo5/G2OpJT/qBE4D5e6bcAntHAqs3nFcxW7ZFDtiQqnqFgNSlCOzU4bHS5lZv4/Ofn7h7wGr57ZbjxeHFMaMu61ciT++koI55l7vsm/KzXbVNpPSF6jm+v2qorw+IQ6nwTkWCY7Xx+hJBb/CE9/XDGPvXdqjQn5W6m1BxeEyXQSr48XGkAcnRGQ47weIxxK16IQGDGG2G2GhDd8kknL+qoVBlCYOWol6DEN58/BtzTSJEWFJ77Vo6zCfVxsDEfCji0biMEcKhx+fN2L8HGGJ+ENBoXH2WHtQYceasgoqldw2r0t4Vt3ICvxu74VtQgL0BD6OHS3I15Piuqe+Af+z6lEKAvwDHZ/s7vjTvKaVZFhiWqij X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26e92019-c131-462e-d694-08dca17f05d8 X-MS-Exchange-CrossTenant-AuthSource: CO6PR11MB5602.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2024 07:56:51.1716 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dVO6gnz1fKhdst4zfZATVKQpqnRKlhKMv3/c8+xkiABwO2+rFC7N+wd2RpLY0Ne+3RviuS/c1kEA6oxjoha8nA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7051 X-Proofpoint-ORIG-GUID: ZWHNLeBn7PuiBs_rux6DYTvSkr53j4LA X-Proofpoint-GUID: ZWHNLeBn7PuiBs_rux6DYTvSkr53j4LA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-11_04,2024-07-10_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2406140001 definitions=main-2407110054 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 ; Thu, 11 Jul 2024 07:56:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201764 From: Chen Qi After util-linux upgrade to 2.40.1, we got the following QA issue on musl: WARNING: libssh2-1.11.0-r0 do_package_qa: QA Issue: libssh2-ptest rdepends on util-linux-col, but it isn't a build dependency? [build-deps] The issue appeared because new version util-linux has disabled building out col on musl[1]. In short, the reason is that col in util-linux requires something that musl does not provide. This 'util-linux-col' dependency was added in 2021, at that time the libssh2's version is 1.9.0. Now the version is 1.11.0 and I tested its ptest, it does not require util-linux-col to succeed. [1] https://github.com/util-linux/util-linux/commit/8886d84e25a457702b45194d69a47313f76dc6bc Signed-off-by: Chen Qi --- meta/recipes-support/libssh2/libssh2_1.11.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-support/libssh2/libssh2_1.11.0.bb b/meta/recipes-support/libssh2/libssh2_1.11.0.bb index 5100e6f7f9..dc9b9ae364 100644 --- a/meta/recipes-support/libssh2/libssh2_1.11.0.bb +++ b/meta/recipes-support/libssh2/libssh2_1.11.0.bb @@ -31,7 +31,7 @@ PACKAGECONFIG[gcrypt] = "--with-crypto=libgcrypt --with-libgcrypt-prefix=${STAGI BBCLASSEXTEND = "native nativesdk" # required for ptest on documentation -RDEPENDS:${PN}-ptest = "bash man-db openssh util-linux-col" +RDEPENDS:${PN}-ptest = "bash man-db openssh" RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us" do_compile_ptest() { From patchwork Thu Jul 11 07:56:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChenQi X-Patchwork-Id: 46202 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 D855CC3DA47 for ; Thu, 11 Jul 2024 07:56:59 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.6984.1720684617945707632 for ; Thu, 11 Jul 2024 00:56:58 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=7922740ab3=qi.chen@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46B5DVwc020873 for ; Thu, 11 Jul 2024 07:56:57 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 406u4x4pvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 11 Jul 2024 07:56:56 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MuWmW1NC7rc2rybYew7h3LEKx6tsVDEt+dj1T+WGI1R+erePXdQN0nbtJZhmCKnQJOrQuu8Xf2pUkhxzL+wIvzbmmgbs+CRWy8JNU+r6/gjeR0qhQg4lTiQAQcNQMqAbBElfAQ9LsRkjWbYv+XDONudFMLyBUSb7FNSNkSlHzv7R9IJoGGw9LaMFbCD9/0DWZnpdsjUKBUxZXRhKgiTXeStRlkzxDciwGz8Qt2nq7PpbPUy9iowEU0bCWOQaYNn4INjbFmTTdQfynVzBHOf0hNtwOz7tLQYUDbUGIBuyJbTEA3T6HXybld9gndQevY7jKT3lyQhxcXZNEQ7d/bkItw== 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=5LutVUc6LMoTuf9U0Fh621utbyZh08xXKWCRaJqsAls=; b=Inub0yTIdVDcCrj601kPClgjlqhL8ZtB8gbeaoPJxyKQvEYZtBulEaXqjH0vyNMwhTyuennuQLOG5CdMB7g27JbqsB72CoZmYB+jLhyqiiC8pXILKXaCpooPl9P9mAZgwPfwRLQyrl+1hZNBtZ2h/eUEBeQvshvTTHw/ljMtMB2ydTdrzOgAOpSz/BRvLtR6/bsz7BKopT6IiYp5E25/xT43KkYZ+r1QSZY1AO9GrSMFKmMEf4IINFjTNIENqYVKsdKWr/lL69+IxQONdrTO7OetzR699jAhhFs6eGiRM43LI2MdDTBYzKtWtGh7PmG3Sg1IF9nagAvmBTtLIPp6pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) by PH7PR11MB7051.namprd11.prod.outlook.com (2603:10b6:510:20e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Thu, 11 Jul 2024 07:56:53 +0000 Received: from CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093]) by CO6PR11MB5602.namprd11.prod.outlook.com ([fe80::a7e3:721d:9cec:6093%4]) with mapi id 15.20.7741.033; Thu, 11 Jul 2024 07:56:53 +0000 From: Qi.Chen@windriver.com To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH V2 5/5] pciutils: remove textrel INSANE_SKIP Date: Thu, 11 Jul 2024 00:56:37 -0700 Message-Id: <20240711075637.3023203-5-Qi.Chen@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240711075637.3023203-1-Qi.Chen@windriver.com> References: <20240711075637.3023203-1-Qi.Chen@windriver.com> X-ClientProxiedBy: SJ0PR13CA0010.namprd13.prod.outlook.com (2603:10b6:a03:2c0::15) To CO6PR11MB5602.namprd11.prod.outlook.com (2603:10b6:303:13a::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR11MB5602:EE_|PH7PR11MB7051:EE_ X-MS-Office365-Filtering-Correlation-Id: 72188828-1147-472f-0bc4-08dca17f0606 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: A8UfsM7zok2l68DDgyIQZWhQY4XVdjgUd4Fip1lRcng/z57FTFIJNriFyDKN/uigo+2ozknvR1YcA/ErySs48xAjAejAJhZOLhIBbMnzJ8qjcyly5H7vJW4IgIaYfyAgv1tcplpn+KLrPTZgOJfUoCsdmzjD9HK+coZAJXVmP1IY66AGtqmILqkBYN8a3BjtMGPgo0/QClKAKMuCxzQyZtbrsJEX8Hn0wJY1SSeuGR8L0/9GRo4x/kcEFrMBjV7SrC0awHseh/YsblSuU70MSisd8mRWOcAhR9pp65zdpGPJLy2wmUFSH9auYhK4w9LRyhXKxwl8Zz6tx194dMuWSbYoCtoGsIgJkW/DPhxtgZoEySk5DUcKTfbWFxEgAX06RITMtp0uicIm5ssy9LRYCpcFD2pwwoNs1tg63g4RWOALpePOSrrYMkk/D7WSlu+c1zOB89SC6OXKDJdqSbC7W8culuaDs+NF7C4j8mpemaxpctm1LzdgSpFfTSLevxpkafhdEelTYok8coIiHvfzR4w3QvNg5KYw9XXxC6AapYJui7Ql5ZVJzxt/+Crqyt29FTCkuTQdiGoXCWDccUy1mZshbyr56M+XWYkxOahNsQApKwyfJiAojUY8eemdw7Zk2MkFDcxeo3driR3uynJerxhyyiEeI2/PilMhAKRl51MbSqQu0rkHtlFB2kh6Wa9c344+RVWH8q6W4pbFdnhoOO1qhd9jpYM4STSyjMHdPq9SnyWn2cDUV46N8EZksMMpsC++zbt445eW16zCb4szGfzow7Yi6dV5lVPzsJJRJfTvQgpOhx3bJlgzCxxfkinj3UezzwFxv6acCTc/OcLr8XR7yOGzt+AU69qLjaXwVGGB7jJwcgb/hBOtXkdi+pE64Ke16GgBT8fF7P5IhUrsTiwzktclD2m0gHkVHFCKdTjDqahAtWeCVn8gwZR7o6bO7wgY6Stwb1fxP3gxnk8c0ceCoWAGjXUahQ4EpUAzpWJuNWJNKlaY8E+0Xay8+1lW5tWrrrNrOUtHcjDvy0knfKtYfpHn5c5rBde98rvmzf+etHAVcH/sa3Kpdkvr9rlpwTsvCoTZPJeGhdBWvMVND5DQDBj0IJlEcD0k1iBHuZg4G5XPYgWXCsVXwGrBvGLT3aAzLkc8i0E5Vo+87IIeari8dAibdr/csciBkYKjXxy6MOt2kgUTp6xB2i2paOqmPkD9zFOnYamLDzVZpm0O1ZR/NEVjsagifGMQbWJ0SG58UuRwPPik9W1GcKEkqvRLi0znY8EKLBap7yz3Sez2J3BS3CxoEbARkZciiXHJrG0l4lu+k3ziSFDwn4FIn0lHHXwDcZWyK1EypzK7nU3+xuDR5esJyypIdwTLty7SYUPTR+iK147psmBj4Balq/vcZNLhPFtFgQySCA85QYFQsA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR11MB5602.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FJ0HIAdlFMokl7Z05PZnnuGjzm0Hw9bXpptHgN7XRPOI4NgzPCcwTCeCEPVnUX3RheNjPsKyuUvpE3T+1KO5zSAbcZLoLLnCo6d1RTmr8UYjTls2TNVTpNhhPOOesLSmGKDYXnFrdL4FSOyVFghDHDGIXAwZc38clHJwEFo2EYkU7JtSOGLQRgX9feSOwbg4YwGVYX3R8LPFH++qkhYgNuogEV6UwQojm2YMEwVIHtWUFDQax3Qv09RNXUlsw1Y9nZjZ61bWf7lvODnZjc4jc3FXX+KoJQadzOaFxIzA5Ge/3Y5D4ftaRQK0UX7UxY12/J2B4fL49nF4uvP5CnmuO1qZ9GKquZFtdhAOiOZFgFN1Pf1u1DJo3Edbfz8R5trRR6R3yzoDU961sCZA5eRW4gw+I+/o8Po9sqmEUYj4AcaQtkG+79394IG/kJPLUy4Aocew4vU7bWJuMpkK54Zr/kHvs6Zs6x9VyMRxa8J5BZ8j2vqyTbk6DeEd8HvPbUJ2nt43dr/GDoSCXGsEZLMVtxr2VMKsqPFub/oHdj/ERP3os9kkS4C1qiOdmVZWX99do/kRBIMMVfLCyxHyqCg2DVHBIVlpU6gtaPCp+vyK2iEoNOF+zM7Zk7puR+MZmCcpfXKdPlXnn+EOkwztFBBY+M8NuwZbPDVoXW2NjntKiLW7nuzP66BZTViIEjwnt10rVG1PboAmPtGkTxf3jTgbl30BsHpnfWl/WN4hhf52FP3z1JpOYUY7rJ4IjkAPgB48BpXmkAIdi6SZa8hWhfKANenUa74YwK54X2pGLbSeMiVBDjkAu6irGG+MBU807XSsawx83YrV6GWUFigDJBSJSQCMj+39fU3DCScibg0D5d+D9NOA409tLTY0cnjoykzHyMVA0kHFnCrA/7SCBWkkQCh8K/c5Xv3aSI9YCyVTsH3nZD2s/shJA1Q7L6JZIj7KOLZW2fcMpS/96n/G/Ki8kJBEFvq8uR+OMcymbO8JO9H/650sh7Fxtf2bsXWnriE1Kw9tRRNbmUNV6dEorHTTel+Pl/APvmI5Eu5+MnA+kH7EHT4vw28byKKY/YFioccGjC7HUSC+b+oi4/6NGpI3gSwlBH9IAAMxm2GaBE321W05fUMEkwI133w6CdoQtE+JjXDKhhnVIGeFNLttFDYiZ5zFMx/bAnuBCKvtiSwr8k8XjDnC6rm0U6k3JrrS+12Sh+1FcfXv0L7mDkyruzmyAN/IPSLlFKITTBYbioDRPAns8xFRModmO7QBCTe/v1mjT3okRqgSFfl8D3UrwcqtXcikpiDUbsvPISbjkOlyJ1Txc7DpvxZwL+DjZzbzwPEt4soPYh8tP/RGRul8YyNb7QhM4O06jttqkPZXG/tHBBkDtTcj79U52hnTi3TJYdm7GQyPxIoKGuyIc5c3Srv5xn/ZpYQb5AJA60PK5f2XbHCEx2jmklk4Y4D4NvrWIpnJzb0RBt+fOM+PSB2X8SHFVhOp8g3zV3JZUT4b4waH9F9EUNScJIXizqIReSnwdq3lZo7+or66r5W/7fNAwxG8Jez1YTlrEMxn36xkxeR+Rn++gY0dhKuOdr8dyOL+DPKW X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 72188828-1147-472f-0bc4-08dca17f0606 X-MS-Exchange-CrossTenant-AuthSource: CO6PR11MB5602.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2024 07:56:51.5605 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PeuiLm996M/BMYpyZKMD9rnleTXvHUr2p0v8Mle/Wwdv+D+Q9yG9GIJu+HUnPsK48WoP1rMaXFeCEtYrl3JOUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7051 X-Proofpoint-ORIG-GUID: FSLyP_OZmTB7oFmAEHEtkOIzU_rG7Yfe X-Proofpoint-GUID: FSLyP_OZmTB7oFmAEHEtkOIzU_rG7Yfe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-11_04,2024-07-10_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxlogscore=724 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2406140001 definitions=main-2407110054 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 ; Thu, 11 Jul 2024 07:56:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201763 From: Chen Qi The current pciutils does not have this textrel problem any more. Signed-off-by: Chen Qi --- meta/recipes-bsp/pciutils/pciutils_3.13.0.bb | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/recipes-bsp/pciutils/pciutils_3.13.0.bb b/meta/recipes-bsp/pciutils/pciutils_3.13.0.bb index 0b876c7070..74edd8686b 100644 --- a/meta/recipes-bsp/pciutils/pciutils_3.13.0.bb +++ b/meta/recipes-bsp/pciutils/pciutils_3.13.0.bb @@ -47,8 +47,6 @@ DESCRIPTION:${PN}-ids = "Package providing the PCI device ID database for pciuti RDEPENDS:${PN} += "${PN}-ids" FILES:libpci = "${libdir}/libpci.so.*" -# The versioned symbols in libpci appear to be causing relocations -INSANE_SKIP:libpci += "textrel" ALTERNATIVE:${PN} = "lspci" ALTERNATIVE_PRIORITY = "100"