Received: by 2002:ac8:5349:0:b0:427:7d78:cd45 with SMTP id d9csp266408qto; Tue, 19 Dec 2023 07:41:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7eZmwUYJSGbkjVhvJHF+4sjLGFb8nNJqnqK84dk2QxWeUpDcABOVdYzd2EkFYnXjxg2/i X-Received: by 2002:a50:c191:0:b0:552:e0f3:4f3b with SMTP id m17-20020a50c191000000b00552e0f34f3bmr4189893edf.30.1703000492538; Tue, 19 Dec 2023 07:41:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703000492; cv=none; d=google.com; s=arc-20160816; b=f5L8TZo61uaDYs3D0ANz6pAMQbJJ3Is11XQNxCDuK1nza3p1csId08Aq/p0q/X1urb 0rwHQTpxaz+HrWksn8tLldLdfVkqEzRMemHlDRM6CaT77iXmmTC/UZmLAUaSIX521mBS 1sWOLphUMRTOM5/JgXy97nv0+iAoLn3RFhNRkl15SQKFrtMV7RrFHrVRZ0dfpUoRgBKA 8Cs/0qZ8LSfTK8Wca0vDuoYx6gq7hDzKbw+HOnHbhu8aN7ooWuJFfHw5mSHmpFouBy2G +/8h126X8Bk1SBuWZnWauJFh1uMz5+d6hD/7yoHrtVU7zhbKMEZqQQsthye0LiF+gb+9 QEmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Xrstjt0Ab9CToVM3Gc0s9Lsw7WRH9fER1PqFNsCBnlg=; fh=5gYN4msaJmwnN8mGpibv8VZnTy0MtvGQcf5D09XpoaQ=; b=BjZFuoO9DlVWyDjZ0XXn2jjnf3rr/qt1YGYCEV/VVh/9FkiIAcK4hvCy6XfImqwq4v L3ygeG7Z9YcDI8SddG3ASOZRQAMRdcCk+KAT/aCtfWHWvMPBi2xdw936sEnatvcc7Sj1 5z5gQIkHK4QPsWxjWKJyLqVqJJ9gjelh8gDcdWKa13irlalAD58WJqx1aEex7LzdEUN5 7HAqJR7A0ruKjHcvnGVXGG+G/9gYo7tz2nMjwFFwXNu65zwFQDwMVUjpV6gC7uTLwoTU aNAWqgTOzlOg3MhC0JLhcogHE/Rxwc70AVLKNc4ojh+UFI/Crzepfyec4Era9yKddU2j Tk7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FNaXtJeq; spf=pass (google.com: domain of linux-kernel+bounces-5501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m13-20020a056402510d00b0054b433bf3a8si10755769edd.266.2023.12.19.07.41.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:41:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FNaXtJeq; spf=pass (google.com: domain of linux-kernel+bounces-5501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 347AD1F226FE for ; Tue, 19 Dec 2023 15:41:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEA3F1D154; Tue, 19 Dec 2023 15:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FNaXtJeq" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3DDD01D522; Tue, 19 Dec 2023 15:40:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E2B4C433C8; Tue, 19 Dec 2023 15:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703000455; bh=CleS4Wyn8+tIT1wCL1GNRFUcnY3c+Rh3z0BVuoazyrg=; h=From:To:Cc:Subject:Date:From; b=FNaXtJeqqpXT0c/EUUZCqP9TZtPDztQ0nPuNRjXajW4W2sxnUWKDqo5jcqiU+9UZo OTltfbPG4ewehZ2AVqV59eH2rXPN152gxLe51R9xEfdsbT3AnxjZVo3QQx0zTok/ux zCdyI/LUKSXDijeGa7lmCW1VMJRnCvNgoS8cUS+/cJDYLh3PXZ2IKOfEkVQXdD9K22 CwwhejZ1bxprFs3uUApNaaGGFXqpZxYaKN2BDAyoOyTUcNaHYNbchS7bhPyYIuilDL qRCo4deQOpwIYc6czweTxtNqOT2MSfpFlRDdxTuNfPkFl+jJ5DIQ+tOGhumMqHDSqT ZkYR+6B90IE1g== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: deb-pkg: split debian/copyright Date: Wed, 20 Dec 2023 00:40:49 +0900 Message-Id: <20231219154049.1095323-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Copy debian/copyright instead of generating it by the 'cat' command. Signed-off-by: Masahiro Yamada --- scripts/package/debian/copyright | 16 ++++++++++++++++ scripts/package/mkdebian | 21 +-------------------- 2 files changed, 17 insertions(+), 20 deletions(-) create mode 100644 scripts/package/debian/copyright diff --git a/scripts/package/debian/copyright b/scripts/package/debian/copyright new file mode 100644 index 000000000000..388a204b0b2b --- /dev/null +++ b/scripts/package/debian/copyright @@ -0,0 +1,16 @@ +This is a packaged upstream version of the Linux kernel. + +The sources may be found at most Linux archive sites, including: +https://www.kernel.org/pub/linux/kernel + +Copyright: 1991 - 2018 Linus Torvalds and others. + +The git repository for mainline kernel development is at: +git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License version 2 can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index c1a36da85e84..91f0e09600b1 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -188,26 +188,6 @@ $sourcename ($packageversion) $distribution; urgency=low -- $maintainer $(date -R) EOF -# Generate copyright file -cat < debian/copyright -This is a packaged upstream version of the Linux kernel. - -The sources may be found at most Linux archive sites, including: -https://www.kernel.org/pub/linux/kernel - -Copyright: 1991 - 2018 Linus Torvalds and others. - -The git repository for mainline kernel development is at: -git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 dated June, 1991. - -On Debian GNU/Linux systems, the complete text of the GNU General Public -License version 2 can be found in \`/usr/share/common-licenses/GPL-2'. -EOF - # Generate a control file cat < debian/control Source: $sourcename @@ -268,6 +248,7 @@ ARCH := ${ARCH} KERNELRELEASE := ${KERNELRELEASE} EOF +cp "${srctree}/scripts/package/debian/copyright" debian/ cp "${srctree}/scripts/package/debian/rules" debian/ exit 0 -- 2.40.1