From nobody Sun Nov 24 23:49:24 2024 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 5A31C19E999; Thu, 31 Oct 2024 13:26:45 +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=1730381207; cv=fail; b=du9kNBiu0hN359ZODUBJLSSQOLc6b1RFaASB50AY6hKgKsagZ4gh5f3ot54s5vE2SYrjnnNbfGiRM2XdztMvISjE41fgcCT7qwk9mNGD2kJ2wnWoyPAWZFo6HGkY8h4/fXndF97t2jg7+iHMmuUUAlcTJprjDZTz8Zo/Bvilm8Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381207; c=relaxed/simple; bh=Jz32348WOXCpo55Lgwyh6GJWnQjpGU3LU4ZTn3Mlgko=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PQ3I2EVv0jUxqN7tdFB9tng6dYDnKqGLV4nYnpb/mA9szuUUREXDQQDd4eAUiwd/TLapV3DLWrl8BCANTQ29Wuz2z1uUkfp6KuRinoqtnAQzXZFNbZS4OcFM9b8Cv//N19BeaX0vRPBtyPb1csLMZ10LnnbLBxpFPcEv89ds/Zw= 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=vOAjpTZd; 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="vOAjpTZd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IK4javAiq+ivmy29k+kuN6CMisdY+PaoaqOwSaAB0B83FhvkulsKR5W5zlm6u8Hu8mUS3m9lcXTttfzyix2B5a2l3heSTdwYVFhywwKq9qWThtqvHWNhCX7hTm46K70LYmb8cn5O2EhW47pU375xmxCpzxeIHxJ0ka/vS3jrrFSdUwdxxcPd8LNiNQBt5Anvs3D5LPx3vRm6LPm2GUHmxjiWvJffv0LUU0ZXzX41vJkJdapWgW/cb4EtZpeNuX8LUGrxs0R73eMbHbuWg2UO6ObojlOV/MVzKLJHYyi+2F1jG2t2dQ+YVvMt9RuV4PapwB7Fmc5WlzAbwajjpmcwrw== 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=+gd2P2QyM6Btg7lkv0NpaudbosZkZpzI/p6utSSs/aI=; b=ixjoNQLy6SSyBDYr1PR/dg9onDD812pyStDLQ7WgwEjPecc57ap75vgJRROdHG6WbgdNv8ClqzjCkgypMs3NO6x1JZxCMF/Ls8R+tSqAea/xyOGi92fHmXIIQHsCr7cw4SkhPNUXySrf4b6NhT5J9HzsYOkuPXqrf/pAeeo7wSijmWMVqgjuslGGVSaCS2lSa8NbqwgHzXAAPPCa+Mxuk8Cpo8pk5otpRBnMWJIqpoRF3qe7k00Cm4CG6yomI0BNDpaxjzUtOsU3ALzCyceNfqt2GDMcw6XJdRZA/q5Y/V6e4jV0dPYI4kBa7MR1qCoyLg1WtGN3tkg2QfUgmAAwoQ== 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=+gd2P2QyM6Btg7lkv0NpaudbosZkZpzI/p6utSSs/aI=; b=vOAjpTZde0gLHostENbbg+66exBB2NzOeVFqrIIPGmXWYVmABiFqpZcOpxCjgozUF7P4bf/9fZrdZfABo3GyAVazIEQ7g2yAkMMlRLjfe/iDPuRG2V+BjpLoA4domeusjyoWL6OBb4qXGe7IEBkppIiigPfRCl6C8agcvWPy4jw= 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:36 +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:36 +0000 From: =?UTF-8?q?Thomas=20B=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=20B=C3=B6hler?= Subject: [PATCH 1/3] package: debian: strip headers package Date: Thu, 31 Oct 2024 14:26:28 +0100 Message-Id: <20241031132630.24667-2-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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: FR3P281CA0072.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::23) To DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) Precedence: bulk X-Mailing-List: linux-kernel@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: 165593c3-d4ab-4213-2260-08dcf9afa4ec 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?B?Y0RJQ2dXazcxSXppd3N1V0w2WU5KNmNndzB1MUFlaURCUzFCSmtPUlExM3NE?= =?utf-8?B?LzNqdTlPaXRBN1BUMklET1hxUkNRbFBSSFNiVkdOSVRYcHN2TDJyalQ2dWxs?= =?utf-8?B?dUdxYnFiY2MyOHpXRlJTbXNpbWhLVkd2RjRqNTkwbmxNNzlnV2VOMmJ6eG5F?= =?utf-8?B?TjJzNlhjSmtRU1l1c0NMS0ZacXVsY254Y0xiYzdNWFByZlNuSUZlQ09NZEdw?= =?utf-8?B?QzNidnZmTlRXZUdYeTgzanNsM2JDalpJbFR5WFJibFI3QVZnbnJodERPM1h4?= =?utf-8?B?WkRQVEg3UzN0aFVkQUxFeWhMU3lHSG96R2JDMkVPc3BubVFvMkxHWWJJemU0?= =?utf-8?B?b3U5TU9TQzN2UjgwTFY2THMzL1gvckt0b0VxTVJDYlg2dnZpNDJXVlljUXhu?= =?utf-8?B?WnBwcUJZVldpbzR0R2ZHR1lkVnpBZVptTGcvcUkzVXAreGZ1WEZRS25CUDBa?= =?utf-8?B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Wx6WEE5c0pW?= =?utf-8?B?Z0Q4ZjFuN2ZmZy9kVTRmaEpFeHVna29FSTFmYUJxSTJPaCt3d085WmM5c0Nl?= =?utf-8?B?eXRNOC9DQ3hlTUdYaEpSSTNuRFM2NnRVbnRBRU9PYnRtanNIcGtBWmJPenNi?= =?utf-8?B?Vi9CaTErb3JLdGR3ZFo5cUlRTzBhRzlueDE4aWY3UVJ5aHBMOGIyejl4UTZH?= =?utf-8?B?dGxGMEZPQ3cvSTdjSmdkTE03N2NlVFk5UGN5dDd5ZUg2YkYxQXZXK2szK095?= =?utf-8?B?L1RwSlp0VTRsay9TaWNYY2hkS3hwa1E1bC9KZ3BEOUU1NWNTMTAvWmVSTDdp?= =?utf-8?B?eXhpTk1QUXo4TytpZW93anVUN1JMdkI3VDhLcFp6Zlg0cGJ3VDhyNnJJMVov?= =?utf-8?Q?wHeZFuC167IZQ/wbPRlKpYzkhbbmMtKNF1qbUph?= 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?B?V3AwNFNhcjFQSS9vY2o2QythYnJUSmpMWE9CSzNBWlFnMDVxWTBoaHlpYkk0?= =?utf-8?B?TnV1K21JeFF5L2ZVS3lCb1pNYXovbDVhdEhQcWx6UVp0Smg5Y1FGcmp1bEp2?= =?utf-8?B?Z0tSeUREc2IrWXlqTGpHaytSNCtKdkdnWnZ0WU15QVYvMERyM0p1VlRLRGRF?= =?utf-8?B?eHkreTJ5UmJ0MkpOeDhuUjdqM2c2OFpSZUVjbzEyUlFqbHgwZzR0UlJQRldQ?= =?utf-8?B?TW1IYmtwOVhIUG5NcVkxbTVKOEZhZ3lw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?B?clJXb0V1cGZGdFc4SE56cVpROWNPM2RwVmR2czNCVzl4RDBZSm5UWU5VS1hI?= =?utf-8?B?OWFZVncybTZaMUJkcTlMWDJtdkFwME9SdytHcGhCaFQ4UjNUeUJhSXhSNzRl?= =?utf-8?Q?liaLf11nZ+KHsRViI8EUOyxlVOQFvG5cP6wSKLQq1AY4?= X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-Network-Message-Id: 165593c3-d4ab-4213-2260-08dcf9afa4ec 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:36.2337 (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: Ydq/1R856sLF+PqxXTp7jMUtX8uszeNbvAv1o/bgfcMfNuoGrKsxMIefYiO4paTdvnCSo2Fgoi0swWXaXJPLSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP193MB2488 The linux-headers package contains unstripped binaries. Lintian complains about this: E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object = [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/asn1_compiler] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object = [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/basic/fixdep] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object = [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/kallsyms] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object = [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/mod/modpost] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object = [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/sorttable] It's not possible to outright strip every package built with "debian/rules" as, for instance, the "binary-image" target shouldn't be stripped because it contains debug information that the "binary-image-dbg" target will make use of. Thus conditionally use "dh_strip" on the "binary-headers" target after using "dh_builddeb" to strip only the contents of the package lintian complains about. Also pass the "--no-automatic-dbgsym" option to make sure no headers-dbgsym package is created. Signed-off-by: Thomas B=C3=B6hler --- scripts/package/debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index ca07243bd5cd..0c75319acae1 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -46,6 +46,8 @@ define binary $(Q)dh_testroot $(DH_OPTIONS) $(Q)dh_prep $(DH_OPTIONS) $(Q)+$(MAKE) $(make-opts) run-command KBUILD_RUN_COMMAND=3D'+$$(srctree)/= scripts/package/builddeb $(package)' + $(if $(filter $(headers-package),$(package)),\ + $(Q)dh_strip $(DH_OPTIONS) --no-automatic-dbgsym) $(Q)dh_installdocs $(DH_OPTIONS) $(Q)dh_installchangelogs $(DH_OPTIONS) $(Q)dh_compress $(DH_OPTIONS) --=20 2.39.2 From nobody Sun Nov 24 23:49:24 2024 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=20B=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=20B=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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-kernel@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?B?TU0wb25tM2UwRGYrd0ZKRVp2bWJ2SlA5UjhvRVIwdmNxc2swWFVVdTlXaDF1?= =?utf-8?B?dHdnTXRGc2hJaUVnM0pMNS9maTRrVmh5ZytOZ2x6VlFtcmZYWG1SVkM0TWFP?= =?utf-8?B?NnQ1bG92KzVpSkpsS3JOWjAxYzVSNHcwSW1tTnhXUVhVbHBCOEgzc3FjN01a?= =?utf-8?B?Z2F2TXR3aWd3NmplSEtjR1lQdmdBbWJNNks4QnVhd3pKTkdKSWJLT2RtY2Ev?= =?utf-8?B?elJyNGJrb3VEeFZhblRQVHkxbUFGMlplTXZ4VVo2VUluTGtrcGI2TDBhRFRI?= =?utf-8?B?eUIvOEd5SHhEc1kxQnVucXp3MzJmZlIrV3pHV2daaEFVc21DZkJERWRSU0c4?= =?utf-8?B?YlZmQ0FPZzBKbG1wSVk3WEVBWXlWbWhsNFBEY2c3dXNxUjNPMjlaeDdWWmVX?= =?utf-8?B?WHora1dkQi83MmIwYnhVSVZKV2g2UUd5dkFRVERrdXJPT0U1TjBiMU9sTzVN?= =?utf-8?B?SklFcnE5bjBFOUc0VWREY2gxcUNNWSt0dGMwb3g1UERSTmVHWWhoTGJnSUs1?= =?utf-8?B?T1NYMzBsL0ZJNnN4R01VNHVnOWs4dXZpSU1NWEZpWHhKWm1aNEFoSGVwcks4?= =?utf-8?B?cDBRaCtLR1VjWnhrTzdWTXAxRGpEdENPUmRiZkw3ajFFWml1SHdFbnNnTjl0?= =?utf-8?B?Rkg0OWZ3N2JiY0t6RDJMaER2TDFrS1QvK1JxTnd1cjNGNDdiSDJxSjl2T1N3?= =?utf-8?B?cWI3bjRmVXdKQ2ttaWcvM1BvcHZTazV3Q2phNk9SNFBwd0IweVlrc3FSb0s0?= =?utf-8?B?cXpuQzlVRFBDQ2lGY2Vmb01kZU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kg5cGJNY0tIZUhzMkR4Nkl1SDhGOUM0eWxOZXVoLzYzdWNr?= =?utf-8?Q?xHuKYHmvjaz0tFPSjNCKvd8oxf5LpI0OeoANQdq?= 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?B?T1NURzFLRlBOZ3FIQVJOL1VVc2xyRVVMSW9aMU1SeGh3VnQ2Ymtac3ExNzNW?= =?utf-8?B?ekQ0ZTVtT0g5REJIalJpbVN0L1E4d2JSSzkzb0xhSEJWRnN3ODRJQU5TNHBO?= =?utf-8?B?cGx2N2Z4OTFQM2t6L05TU0VqVllRVWFwMmE1dFBtZTg4WWlhYUxTbVNaamZQ?= =?utf-8?B?TG50ZmZZSG5uWk8zNVB2VDVieXNRQmdrT1RsVURudVVCeXFBUW1XWkFpVURu?= =?utf-8?B?bFUxSkNTM0VSWGh1M3ZOeERyQ1JDK21XQ3FFaHRLRVQ2TzlMY3BqU1dqUjQz?= =?utf-8?B?OWJkRit3N082Vm1rekFVZStrdkdtUGpjREJaS0dmMUp0eUQ5OHFocW54TVh5?= =?utf-8?B?eFVZQTJlWUhpQzFEQno1aktaWVdrT3RNeGFuUzZNeHlxb24wUFBENHMwVmMy?= =?utf-8?B?eUNBTHkyU012cGRtZlZiYVJJajQ3cUJ5RFNhdVEzYXpqOEJ0SmRsVWlaZyty?= =?utf-8?B?QzdyQzEvSTVlci9NZ1NGMThFQmxSM0lBdm9BUGE2NUM3OWFFMk1qb3Z1N1Zi?= =?utf-8?B?NFplU1RkOGZ2MCtIdnRuL3ZvQlRZOEFyZG0zeXFKYStjc3V4U0g3bUZJbzdL?= =?utf-8?B?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hwSDJw?= =?utf-8?B?YXprdE9vSDNIRVlJVElXY3ZqNE5iTjdjYnZRSTlUVXVwSUZrRzdyUTlFOVU1?= =?utf-8?B?dFV4ZS9HaUVmcENDRGV6T2g5czZuVTV6VnJFQVpSWjNBSi9YYU9ZNkRXdEdh?= =?utf-8?B?aTRUdWpVNFJ2QVMweDVicTQvWFRuTEZETWxHZnp1TWhvRHB5YWVnMnlmWnlo?= =?utf-8?B?UVlyTFNtNTVjNHh2blhYczgyaXdrQUkzMGIwZWdCTlVqbnNxZjFoUmRpVEFq?= =?utf-8?B?K3pnWmJjc1I3cGoxaExlTWRubm9vVEdnOGhIaGJmd05FZkNnTEl0RzFYSFRQ?= =?utf-8?B?dmJxMkswRm5RYXhWRnc3VlFNNGRSaHBrOFF2VFBXZkNYRmdCbE45NlBVVVpS?= =?utf-8?B?WUdieFNyblNPRjlEeE5HVjhjbkRLWlFRblZwZUh4MUtTZWxwcE8vRDBOcis2?= =?utf-8?B?cW0zaTZmNTZMU2xWK0MxbWtZdDQrQlExb3pTbCtjSDFXbnUxMTFYbTAvd05o?= =?utf-8?B?eXZ4QnhuamQ5RUNucDJzMXFBWVhEMHYvVk9PcitaQzlqM3B6MjNyMnIwSFRv?= =?utf-8?B?ckFoTzN0NVRUNUVBWnpNeEplZTJQbFNKeUNuNGlPL3lPSmpUbmc1cldrZmN4?= =?utf-8?B?NzlMYi9zOGJ6SGgweWZkc3VsZFVWbGV2bThUMDFraVgxSXV0dUtod281ZVF1?= =?utf-8?Q?UznWINS/tLPM39Tz6tR+U3hPU4PIg3dC3HSkH6fdKXCF?= 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_c= ompiler] 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/kallsy= ms] 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/mo= dpost] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites= (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/sortta= ble] 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=C3=B6hler --- 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 =20 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 . --=20 2.39.2 From nobody Sun Nov 24 23:49:24 2024 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 C1C2219F41C; Thu, 31 Oct 2024 13:26:47 +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=1730381210; cv=fail; b=HUKCKHdErEQM3NF6EbQMncs7lfJx6pFIcPlUelU+U7W6/AHAnTnhf51BSxlgoZuldFwOX60OIZv1IdJR22bO/4kP0o7mol+yaDYJNxGcQCBvp173moSBIsu8hxPuFdloKit8tLuDdZXX78YMb1ADexajxLii8g/sChzcJ8YYSHY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381210; c=relaxed/simple; bh=Q7XVAV+MtEk3oqoB07bx4Atz1eAS4g4rqJTkq0j9GLU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=QJb0aod7cFhAilJuUqpRIAb3JaP/ItWsqaGHZMWFDvEsnmEyvLGiWGMWx4pQN3fohOKqSgPFyYL95XrYFJXco4ahBX3vbV6dvpOqsr0PKryQ7xp1ejfAdsNhAVkrAXpRj5DLVcXLYR4q2CdyxZxEFVI0rfD1F/CfLrZZbZSQRig= 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=QUv6df5t; 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="QUv6df5t" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s7969WWiVN3SAME23qNUuxERt5x1Kt3rR4gpc3AfLbAQjxNuWmXVvLptMJBbjeCj4yBqZWtJq+/O5nEVaLp7p1cty00kpXi/JjwkKX3J+E9QGolJN7AUacX8UOS8FJYpvZF2GoO3brablCgNx864ZHlvOHVWqFcL6/hbf36+fB4TDF8bCM94lI2w0mZ8+AN/FI84DJJakx0ZrRn1SK3tnVCS8FRRH5Q4fa8cTK+p/C6weTgxip/qiGJtFqQU0TTOywq5JaBe3gpahyb1Fy7tN9Ms3n1QPRqnvBHnZd0WHIvEc9N45/MboKFfg1ouNiLDWsykIO4FJo8CfGtOYyyfQw== 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=LoY3rNemiz+0/8PpQ0QLnrk3Jk8aUTDr59ZSX2o6KGY=; b=aKSWrr4GsJu/NZeNznbzt9SH8tMS3rAJ+vklxZ8T3WebVRbPwmmigFOFscxc8zGSGPtfXpR3vnU6jfVTz+EjMEfjvxnqwkFLSngD63QdDyAmBqX7y6sUqn4TdakmtSf38dZzYg3o1qfVYomo79/FRlpgxIiolkGUwaRxtQbtZXDZ481ggEr95XoiQcptNEkofJiL6PJmo5DjBaEkvmptHnNuntqQ4DXkjY3jNwLtfUJP4PwWqguhj2h9vlanLmVvaJv7+E2OoWavqzos7mOLAeg0L7PEQM2ilEvKRjzJhdN+/s2qk3c1BGXofF2G2DEXpzk6/9LkP04rfchxeuvHDA== 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=LoY3rNemiz+0/8PpQ0QLnrk3Jk8aUTDr59ZSX2o6KGY=; b=QUv6df5twHURCZYlkhRRGGJ68scNLRfZv/mJ19GyrAzvHOTtcIL2D0YZ3Fu65SyjjigYXOXryRvpC+TdLNE4cluC0v1hoBBeJsXDxoEdnOsIPqJ1AICIGyDbbwgxxJQIW0Y40igZmkR0qAuMNbY7B0yEzz7NVuH5K408YlAiQX4= 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:38 +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:38 +0000 From: =?UTF-8?q?Thomas=20B=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=20B=C3=B6hler?= Subject: [PATCH 3/3] package: debian: don't include .gitignore under scripts/ Date: Thu, 31 Oct 2024 14:26:30 +0100 Message-Id: <20241031132630.24667-4-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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: FR3P281CA0102.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a1::17) To DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) Precedence: bulk X-Mailing-List: linux-kernel@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: 9244f0cc-8b12-471d-c93c-08dcf9afa665 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?B?d0l2U0s2SWRJK3BwYmRPWDlFQUVMSDJQYzk3cGE0SVRneko5YkxPNHZyRWRL?= =?utf-8?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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?B?WU5YSVRaa0F1L0xtZ0U2aE1DcjcvNWFxU1NvR1gvYTlUejZoeWRLU0FlVGlu?= =?utf-8?B?eTFYRFlpV2tCUTFsK2FOekpneGN2MG54djZIYUZicUszcWUraHI5T094RlJo?= =?utf-8?B?dzlURk1JTG5RZTNVRERid0xOOGlCWkpBbU5GbW1SeVp6ckpVd1EyMDdwTm8w?= =?utf-8?B?ZGJyQVRVV2lQQjVXTHlWWG5MMjNqYitlYWI5T0Q0R0RmRE1hejMwMkd6YkMz?= =?utf-8?B?dC9JbmJlcGJuTldIVW1IdWF3NkQxdVpnM0ZkaURaYlE5RDk5OVdsbkZZVlpL?= =?utf-8?B?MzNVaVFtaHJ4SzVqaWExY21veVYybmhBNEFVNE9IaVM3MlhMbGVzUGFCcVhT?= =?utf-8?B?Y3VGcVdGdnZMM3pVbXg1UkhXU1V2Z1B5OUV0eE82OGhkalY2cmJ1dEdqUGkv?= =?utf-8?B?azNhZ0E0NlBqNEpBZnBhUHBRZ29zZXVjdHFUNVcxSW53QS9UdHppNEFhMnpY?= =?utf-8?B?cjdESmxhRWpWMlo3N2VCbWJjL3AzTitZdHV6R1ZlZ0cxRExhOVNBMmdQVzhD?= =?utf-8?B?VUN6R3ByTXpNa2ZUWHNEaERTOWJ2UVV0NTdLVVFlR0UrTmpENkxYcXdzcUpH?= =?utf-8?B?U1FWWkVZUnE3Sk1wOTA5Z25lNmZ5ZTNSRHpkUnMzdXBlVFdwbHVxTFlwSWFC?= =?utf-8?B?TFI1LzBoZVoxNW1LRVpOM2ZqS0xwandBVjRyRXdDSm9oVGxTNGhOUU5aREdr?= =?utf-8?B?VXhjL21DW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f-8?B?R3oySnIvY0M3V3VCOCtJd0tObUExZkYwSmNyY1lqRUpobzNoeUZGa0ZZSkJl?= =?utf-8?B?Z2orQ2dQTXd5NExmMC95Ry9hVEk5RmRWMkFUdEtIOUQ3a2xDNm9VYU1Mamps?= =?utf-8?B?a3RrT0JHM3JRdURvYTRtQVhkbzNPQnU5WGJMcGxRMG82bHFNVkFHQkh2L0NV?= =?utf-8?B?MHBUenBaODM0c3RTUnV6bUJpRVZXcDZQandzOWd5REpXU2c5ZE1nK2V4N2lz?= =?utf-8?B?S0pkVkVGTWovNnZ0MW9NRDY4RllKd1VSMGJHbS9veURDb2JhWUgrR0xQUXY0?= =?utf-8?B?OEhWaFlaTmZMbDZmdTdlNnRKeVZyZ25ZcE5XMDNiUGlCK1J3Tnl4RllITHdV?= =?utf-8?B?eVJqRjlwd04rY0xyL1E0NURNZC95R013WnVXTzFQSkZvTmg2alYvTWpTSzlw?= =?utf-8?B?bWNJbUYvNWxldVVHQ1V3ZkMzOVdCcDRDOXdERWI3TmFlVUJGVnh2em05ZGV2?= =?utf-8?B?NTh0dmhDTDk5VjRaeFdEUDcwQzQxRDRzR25FSHJNYXNoT3c2TjJWUWZGY21O?= =?utf-8?Q?c+ffHx5iEATJpis4TwqgGNTlU4pgc7yUVTCFGcP5bqBy?= X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9244f0cc-8b12-471d-c93c-08dcf9afa665 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:38.7048 (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: dUHmY/RoAVlPksd7537SuBHzaAEwOtL/9zV17m9lGC9JvdulI4xWUv83dkW9L86JefCR0rnunAEzfuvjdNiqUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP193MB2488 Files to copy into the header package from the scripts/ directory are listed by a call to find which also includes .gitignore files. These don't belong in the package, and lintian also complains with a "package-contains-vcs-control-file": W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/basic/.gitign= ore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/gcc-plugins/.= gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/gdb/linux/.gi= tignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/genksyms/.git= ignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/ipe/polgen/.g= itignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/mod/.gitignor= e] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/selinux/genhe= aders/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control= -file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/selinux/mdp/.= gitignore] Filter the .gitignore files so they're not copied into the resulting package. Signed-off-by: Thomas B=C3=B6hler --- scripts/package/install-extmod-build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/package/install-extmod-build b/scripts/package/install= -extmod-build index d2c9cacecc0c..5c735e176b53 100755 --- a/scripts/package/install-extmod-build +++ b/scripts/package/install-extmod-build @@ -12,7 +12,8 @@ is_enabled() { find_in_scripts() { find scripts \ \( -name atomic -o -name dtc -o -name kconfig -o -name package \) -prune= -o \ - ! -name unifdef -a ! -name mk_elfconfig -a \( -type f -o -type l \) -pri= nt + ! -name unifdef -a ! -name mk_elfconfig -a \( -type f -o -type l \) \ + ! -name .gitignore -print } =20 mkdir -p "${destdir}" @@ -23,7 +24,8 @@ mkdir -p "${destdir}" find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*' find "arch/${SRCARCH}" -name generated -prune -o -name include -type d -p= rint find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform - find include \( -name config -o -name generated \) -prune -o \( -type f -= o -type l \) -print + find include \( -name config -o -name generated \) -prune -o \( -type f -= o -type l \) \ + ! -name .gitignore -print find_in_scripts ) | tar -c -f - -C "${srctree}" -T - | tar -xf - -C "${destdir}" =20 --=20 2.39.2