From nobody Mon Nov 25 01:56:13 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