From patchwork Fri Mar 1 06:00:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1906547 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TmHhq0HJ7z1yXC for ; Fri, 1 Mar 2024 17:08:42 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rfw4H-0006g3-6O; Fri, 01 Mar 2024 06:08:25 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rfvwK-0004oL-5K for kernel-team@lists.ubuntu.com; Fri, 01 Mar 2024 06:00:12 +0000 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 8FA643FB6C for ; Fri, 1 Mar 2024 06:00:11 +0000 (UTC) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-1dc8b828178so16189915ad.3 for ; Thu, 29 Feb 2024 22:00:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709272809; x=1709877609; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EMN6jqyEWt2rST7aBEjfI7CjhT72Ey7jIutdcI2Hju8=; b=JMMznqbgYPfBn/O+kSASTEv88AZWzoDoYtsh94nkK/M8JIWDt55wBCXLxcLZZSMWB3 Gezya6leasDxb2xmQ16U3C8g8URVJjsDlnTCYlmxuACZKSQNc1+Hz8ubCZQ9wZmaB98P /KyLZBAsloazp0yA8M+WrEE12fuBnE+oAP0LkcSe4GO6gmMSEeBAf86RmTjeM8qnOhNs xeEeBUIi+8Bhu3oyl1o3UUZfAir5JM1w+eqzUepo8E7EKu7qvSBPn6eFTZW5qK+oo2cj j5oYkcici7ywXWm0iIWTC9/+O4sZ1vPwh12QuKPJ2dOCHKYZUh3fCSsKxgXzcyyYMI/O OGkw== X-Gm-Message-State: AOJu0YyqAvY9Y7HXHnSfyEjZA/7fP9Z12S41RXfT5tmDa6a9Dp3jFJaQ yaIT0NkTDtVmQ1CwZvZM80xBN4GCE2EuAXC4R2RzecUyONHLXySVnLGMOx6BNYkmoUo743EvFUy Nib8WeZq42aA4hBv3Hx8pf70HCTcNchc10E0MCXcS8sG5OcHEOnDvcL+GKN+12sq/BTIkCenp04 9voFr2YYQtTQ== X-Received: by 2002:a17:902:d38d:b0:1dc:a844:a38b with SMTP id e13-20020a170902d38d00b001dca844a38bmr711423pld.67.1709272808674; Thu, 29 Feb 2024 22:00:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhat+/kT5BCvK9QnIW7Uy4qiSYP8Zb6VZte4FGqoDmaUPFAZ5dDEEPqWZ7AutBI/9yrb37/A== X-Received: by 2002:a17:902:d38d:b0:1dc:a844:a38b with SMTP id e13-20020a170902d38d00b001dca844a38bmr711396pld.67.1709272807804; Thu, 29 Feb 2024 22:00:07 -0800 (PST) Received: from zoe.. ([2001:f74:8f00:c00:6aff::1001]) by smtp.gmail.com with ESMTPSA id c18-20020a170903235200b001dc6f7e794dsm2535149plh.16.2024.02.29.22.00.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 22:00:07 -0800 (PST) From: Masahiro Yamada To: kernel-team@lists.ubuntu.com Subject: [Unstable/Noble][PATCH] UBUNTU: [packaging] do not include debian/ directory in a binary package Date: Fri, 1 Mar 2024 15:00:00 +0900 Message-Id: <20240301060000.269475-1-masahiro.yamada@canonical.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Both Debian kernel and Ubuntu kernel provide a linux-source package, but a difference is that Debian's one does not include the debian/ directory, while Ubuntu's one includes debian/ and debian.*/ directories. Including a debian/ directory in a binary package is odd. If you want to rebuild the kernel in the Ubuntu way, you can get the source package by 'apt-get source'. It is not what the linux-source package should offer. Signed-off-by: Masahiro Yamada --- This was written during the hackathon. Since pull requests in getea are no longer considered, let's see if the same patch is individually acceptable in kernel ML. debian/rules.d/3-binary-indep.mk | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/debian/rules.d/3-binary-indep.mk b/debian/rules.d/3-binary-indep.mk index 6e459a09d4e8..70835566c168 100644 --- a/debian/rules.d/3-binary-indep.mk +++ b/debian/rules.d/3-binary-indep.mk @@ -46,16 +46,6 @@ ifeq ($(do_source_package_content),true) (cd $(srcdir); tar cf - $(srcpkg)) | bzip2 -9c > \ $(srcdir)/$(srcpkg).tar.bz2 rm -rf $(balldir) - find './debian' './$(DEBIAN)' \ - -path './debian/linux-*' -prune -o \ - -path './debian/$(src_pkg_name)-*' -prune -o \ - -path './debian/build' -prune -o \ - -path './debian/files' -prune -o \ - -path './debian/stamps' -prune -o \ - -path './debian/tmp' -prune -o \ - -path './$(DEBIAN)/__abi.current' -prune -o \ - -print | \ - cpio -pd --preserve-modification-time $(srcdir) $(LN) $(srcpkg)/$(srcpkg).tar.bz2 $(srcdir)/.. endif endif