From patchwork Thu Oct 31 13:26:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_B=C3=B6hler?= X-Patchwork-Id: 13857905 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2101.outbound.protection.outlook.com [40.107.20.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D820F19DF5F; Thu, 31 Oct 2024 13:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.101 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381205; cv=fail; b=MsvfXeFGoL5n/aTAtWvhnyzmnZPwhX5NfuxGnNZ7oOjtdrdV3BUj7pyvC4w+GPYiiaVc41SGcMGePF5ZTR0ynfIyoJuWsTa0L1wzPPBgyES974othH4MHpt8WBlDwTaOwqCMaI/+klC8/MCr2cJd6YS96+7omoy2PA4ss2ZirUU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381205; c=relaxed/simple; bh=kopefamX5gBzf7Aka6E1RS1E/+SiU7y8OT0OAbjvU0g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Nl6tG1VGqkd3MBTlgRTCZISct9+YL8rh071IBOyjCkhnBebFrz397Fh0sOWMeppLaNhduBY6VTzObUK349gILp9sM+2ApcUMH5GuiwerxHLBLQ+rgts48jcDVaUzXHsgc8ZBkoJCqhuKAi4vn+tPtPhtB5WhzhKbRRpVUN9Cl+U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com; spf=pass smtp.mailfrom=kunbus.com; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b=XqETbIPJ; arc=fail smtp.client-ip=40.107.20.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kunbus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b="XqETbIPJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P3Va6Iu+MrMwmx7A+R1z1aY31z37qjnxa3pSDPxLRSxn4kSYzOLjhYWjGskzxcZt6TzN/b/fY0vgN9kmLlXJGjjAEIllgHNx3xNiK4WoaPFDfrNEnJQj1uhG7HOnUhzLp+8azqlid/JCPiBkcbtET1j8DVhP/5l3OdC3IfIJIybLnnb1Rhg+96nV+S5AyjjzuOGbdwe/WDKGVXstJBJqbxH4e0BTdRqigVco9o1+URyzEoX5gvDAmKBM58wd/l6jksL7EqthBIIcCliAdDsti56YC8oCL6jnwuqFm+bX3NOAipLHSVkSbS176LiCHx7jfmnrhhwLw7dX3nwu1+/Nog== 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=AJ9YvaFbLnOneOGXYKvjygN/pIfGtLnK2+zV08e8P/E=; b=fjz8GrhO+56yP4w1Xs3ARJeGqlsWh1eNSpzI3oHDaZmoVlJsQxQEqG1z/mv0jyhmp2QnxImw5mtHzGBfwmmpPbAb2WL+UystRaFTyv5cMdpA/unFVG6IQ51ewRSwGj6HvVEruylWpeHVI8IJNj4MP4HUaL4EJjJAvC9N+/EfCQG8ZIPXmbb0+kSJdJf6vdMjhrao3pZ1mbteGAUcIMuayijSlc0ZzqBmoUPPyeN2fs7GV6Wxe2Y3M0tcIlA9iK4FSx98NWBnn/sQimX1RrKfSMkZANJ8E75qe/oGfeU1jdR8b+KVnLNg6IVt+cgmyFnn2OgLnyfibA5FFY8dq4Otcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kunbus.com; dmarc=pass action=none header.from=kunbus.com; dkim=pass header.d=kunbus.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kunbus.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AJ9YvaFbLnOneOGXYKvjygN/pIfGtLnK2+zV08e8P/E=; b=XqETbIPJzD/8OrbVq3IgaGX92lxYCjsqLqFBhzk+/QsxFG2G6+THB79tw2boHrL7gAKct6LSj2oDRjeXHqisqPQyO3ibiwBy3yZvaiWr5813ZJj5s4kpuDCDh7rEl7irIleIQzxDXXCK6SynOvTOUYdFvGAuD/IwxKZ37wGrCSc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kunbus.com; Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) by GVXP193MB2488.EURP193.PROD.OUTLOOK.COM (2603:10a6:150:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Thu, 31 Oct 2024 13:26:37 +0000 Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a]) by DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a%7]) with mapi id 15.20.8093.027; Thu, 31 Oct 2024 13:26:37 +0000 From: =?utf-8?q?Thomas_B=C3=B6hler?= To: Masahiro Yamada Cc: Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Rosenberger , Lino Sanfilippo , =?utf-8?q?Thomas_B=C3=B6hler?= Subject: [PATCH 2/3] package: debian: add missing Depends to linux-headers Date: Thu, 31 Oct 2024 14:26:29 +0100 Message-Id: <20241031132630.24667-3-t.boehler@kunbus.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241031132630.24667-1-t.boehler@kunbus.com> References: <20241031132630.24667-1-t.boehler@kunbus.com> X-ClientProxiedBy: FR3P281CA0049.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4a::22) To DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBAP193MB0954:EE_|GVXP193MB2488:EE_ X-MS-Office365-Filtering-Correlation-Id: 36c0801b-b728-45fa-ea00-08dcf9afa5a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|10070799003|52116014|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?MM0onm3e0Df+wFJEZvmbvJP9R8oER0v?= =?utf-8?q?cqsk0XUUu9Wh1utwgMtFshIiEg3JL5/fi4kVhyg+NglzVQmrfXXmRVC4MaO6t5lov?= =?utf-8?q?+5iJJlKrNZ01c5R4w0ImmNxWQXUlpB8H3sqc7MZgavMtwigw6jeHKcGYPvgAmbM6K?= =?utf-8?q?8BuawzJNGJIbKOdmca/zRr4bkouDxVanTPTy1mAF2ZeMvxUZ6UInLkkpb6L0aDTHy?= =?utf-8?q?B/8GyHxDsY1Bunqzw32ffR+WzGWgZhAUsmCfBDEdRSG8bVfCAOg0JlmpIY7XEAYyV?= =?utf-8?q?mhl4PDcg7usqR3O29Zx7VZeWXz+kWdB/72b0bxUIVJWh6QGyvAQTDkurOOE5N0b1O?= =?utf-8?q?lO5MJIErq9n0E9G4UdDch1qCMY+ttc0ox5PDRNeGYhhLbgIK5OSX30l/FI6sxGMU4?= =?utf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q?5LpI0OeoANQdq?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBAP193MB0954.EURP193.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(10070799003)(52116014)(376014)(366016);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OSTG1KFPNgqHARN/UUslrEULIoZ1?= =?utf-8?q?MRxhwVt6bkZsq173VzD4e5mOH9DBHjRimSt/Q8wbRK93oLaHBVFsw84IANS4pNplv?= =?utf-8?q?7fx91P3kz/NSSEjVYQUap2a5tPme88YiaaLSmSZjfPLntffYHnnZO35PvT5bysQBg?= =?utf-8?q?kOTlUDnuUByqAQmWZAiUDnlU1JCS3ERXhu3vNxDrCRC+mWCqEhtKET6O9LcpjSWjR?= =?utf-8?q?439bdF+w7O6VmkzAUe+kvGmPjcDBZKGf1JtyD98qhqnxMXyxUYA2eYHiC1DBz5jKZ?= =?utf-8?q?YWkOtMxanS6Mxyqon0PPD4s0Vc2yCALy2SMvpdmfVbaRIj47qByDSauQ3azj8BtJd?= =?utf-8?q?lUiZg+rC7rC1/I5er/MgSF18EBlR3IAvoAPa65C79aE2Mjovu7Vb4ZeSTd8fv0+Hv?= =?utf-8?q?tn/voBTY8Ardm3yqJa+csuxSH7mFIo7KiIj8mqiV62kUE++qmpfjThmVu/+HC67B3?= =?utf-8?q?uZH64/6dAYp5X9WQXzMssTS6R07Syc2dfnqixo8oLhJKrFwTlHApcdpj/rc4eH36H?= =?utf-8?q?0ZXbacl8PhkaNaeKeyIaqQ0uXg2BmaVNK0gbaWryYtEcJJ2joqJvZmiHLD1iHtsP1?= =?utf-8?q?dtxEtn0/zi/gqWOEYooJI8QS7aony4YdFMM7o2d60htqC39jRCn42VaI0n8BcysAi?= =?utf-8?q?4njoj8UaLqqC+GJEGZ/fm/1uNfSQ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QuUznWINS/tLPM39Tz6tR+U3hPU4PIg3dC3?= =?utf-8?q?HSkH6fdKXCF?= X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36c0801b-b728-45fa-ea00-08dcf9afa5a8 X-MS-Exchange-CrossTenant-AuthSource: DBAP193MB0954.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2024 13:26:37.5904 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: aaa4d814-e659-4b0a-9698-1c671f11520b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HpixWMHP5kYUWma3tS+6FZGwRmu5eYUFVfDp0YcbnT/CxAn6ed3VG5xucPjFKG833fEOOI60tva5D3+8SoKemw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP193MB2488 The linux-headers package is missing a dependency to libc. Lintian complains about this as well: W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/asn1_compiler] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/basic/fixdep] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/kallsyms] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/mod/modpost] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/sorttable] Fix this by introducing "dh_shlibdeps" into the build process. It calculates shared library dependencies for packages and creates a substvar entry for them, making them usable in "debian/control" by specifying "${shlibs:Depends}" in the "Depends" field. "dh_shlibdeps" detects the dependency on libc for the linux-headers package and by specifying the substvar for the linux-headers package in "debian/control" this dependency is correctly declared and lintian won't complain about it anymore. Signed-off-by: Thomas Böhler --- scripts/package/debian/rules | 1 + scripts/package/mkdebian | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index 0c75319acae1..2a51564128ff 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -52,6 +52,7 @@ define binary $(Q)dh_installchangelogs $(DH_OPTIONS) $(Q)dh_compress $(DH_OPTIONS) $(Q)dh_fixperms $(DH_OPTIONS) + $(Q)dh_shlibdeps $(DH_OPTIONS) $(Q)dh_gencontrol $(DH_OPTIONS) -- -f$(call mk-files,$@) $(Q)dh_md5sums $(DH_OPTIONS) $(Q)dh_builddeb $(DH_OPTIONS) -- $(addprefix -Z,$(KDEB_COMPRESS)) diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 10637d403777..5d96cb0d0bf8 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -224,6 +224,7 @@ cat <> debian/control Package: linux-headers-$version Architecture: $debarch +Depends: \${shlibs:Depends} Description: Linux kernel headers for $version on $debarch This package provides kernel header files for $version on $debarch .