From patchwork Thu Oct 31 13:26:30 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: 13857907 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_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 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> 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-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: 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?q?wIvSK6IdI+ppbdOX9EAELH2Pc97pa4I?= =?utf-8?q?TgzJ9bLO4vrEdKJvx8VT/ip9qotowgq3z5/xqOdp+fZMksqZ7EUvJAnyj1C3vOVIw?= =?utf-8?q?DKcrOdIihs1Q6fTl4vp7eOPOIe2BCF33u0SeSPdItlnCmtd7w60eiBILmrXvwIF8+?= =?utf-8?q?oh8WHBk8+ZAlKqRvb0/jT09VRip/bmB468Qlpi3x8xwXkJAWSWwj4LdaECcMHeWWJ?= =?utf-8?q?QSPyeCN3XKhkxUXcBxJlYadmGuWOtl/sPEVeoJuEwDRCH0X1qqeCGp3Egp7c9xvbS?= =?utf-8?q?z/8jNUTfcrB+K5cym0S2HPWU5BJZ51T4lKLyfm0GYIKvO0OYnVo378GzMXdVSnmVC?= =?utf-8?q?OUyj14Pl+xLT/c79t+TNJUuCXyWhMnRFNmWERfw/mkpMQN84sJOr/EzimEjLeJSbe?= =?utf-8?q?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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?YNXITZkAu/LmgE6hMCr7/5aqSSoG?= =?utf-8?q?X/a9Tz6hydKSAeTiny1XDYiWkBQ1l+aNzJgxcv0nxv6HaFbqK3qe+hr9OOxFRhw9T?= =?utf-8?q?FMILnQe3UDDbwLN8iBZJAmNFmmRyZzrJUwQ207pNo0dbrATUWiPB5WLyVXnL23jb+?= =?utf-8?q?eab9OD4GDfDMaz302GzbC3t/InbepbnNWHUmHuaw6D1uZg3FdiDZbQ9D999WlnFYV?= =?utf-8?q?ZK33UiQmhrxK5jia1cmoyV2nhA4AU4OHiS72XLlesPaBqXScuFqWFvvL3zUmx5RHW?= =?utf-8?q?SUvgPy9EtxO68hdjV6rbutGjPi/k3agA46Pj4JAfpaPpQgoseuctqT5W1InwA/Ttz?= =?utf-8?q?i4Aa2zXr7DJlaEjV2Z77eBmbc/p3N+YtuzGVegG1DLa9SA2gPW8CUCzGprMzMkfTX?= =?utf-8?q?sDhDS9bvQUt57KUQeGE+NjD6LXqwsqJGSQVZEYRq7JMp909gne6fye3RDzdRs3upe?= =?utf-8?q?TWpluqLYpIaBLR5/0heZ15mKEZN3fjKLpjwAV4rEwCJohTlS4hNQNZDGkUxc/mCZc?= =?utf-8?q?xTiUTbHqJIvwkgvuM315/KENYZ1E1K2N6cAsma2POO7rSpF3WB6JkLTipM4kXhnDo?= =?utf-8?q?PHSj0fHRy0HCSbYkFAfKuZh/MVeKJiLYCh+DO/zIH+qA+UdD4kc9QbOFdKe4PMp2X?= =?utf-8?q?8DaweSci9pEmFhOlkTYdlhDz6/02mqBuXFq21c5Z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iEATJpis4TwqgGNTlU4pgc7yUV?= =?utf-8?q?TCFGcP5bqBy?= 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/.gitignore] 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/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/genksyms/.gitignore] 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/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/mod/.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/genheaders/.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öhler --- 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 \) -print + ! -name unifdef -a ! -name mk_elfconfig -a \( -type f -o -type l \) \ + ! -name .gitignore -print } 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 -print 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}"