Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2135861pxu; Fri, 9 Oct 2020 08:48:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkBpcUIoBl/tNejW07cVlqQj4iBUqQzA8IH2V0u3RYK+oT1csKdReFOlHlpiXKfpKdiLIo X-Received: by 2002:a17:906:fd7:: with SMTP id c23mr15755869ejk.324.1602258525270; Fri, 09 Oct 2020 08:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602258525; cv=none; d=google.com; s=arc-20160816; b=ht+/b4zRPJpvO29Ief+krRaDtCSfMpJYRCYNs7QmxxfDvC+1mhT1xWQESVrS++eDSP kzcns7EZyFteFrTm4YZTfaQuDqKvJnYhMw8MV1GRh6cASuFd7K9XE0doVJfTXFn1TNQY NU087qXDnDTm1zChiz/gQ44w6q+MrFp7L2/4O5yDDhzsot5YjFxOly5k2Y1al0Of1xn0 a3B92emgi/M9HPY8dz7BORCYttn3fX3lSoDOhGYL8hrlBCFkJDI47MuTS+O4YT9oqXIp 1vkkk3ArBkEiUWuvvXi4B8OlcetzFbfzMpcwVLBc/XVdaCYcsaYoQfHu6UqY1c9/f8Ib FsOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=uPHqCtH8kBQ7ooTjgeJwJmEs8QwVySn7ud+lvCOesSw=; b=aujXxB5MdeUye0G9VpUaAFuwbrbXIPGEpNNqM5Ve8atwtKIRx1gNrBaIq9vm9XmIic PVl8L/PurXlR2eo2dJk4rb7UiNRAPQUY9fC0DPNw5c6Zxc9CVpM+yzIG67Otg7Cwkgga OesKZdjieUgMjTJ8M7ZDNcW8+e64PNvoUHoNNNtrMZVLxF7MB6lDvYLn4eq08V5Cd6kV I1nWN+kcAPspAZ655sFrdcgNnSswAvlRONIyiEaC7Ha50AAbgxQiqhZ9LW17VffSy2qa ZEJckT8LtnRm7pFC9SIyfsP/vuG1U0s0lFagWbxTmdVOIVVJoGV7iy+AwSGdfeEcX08Z 1b6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nrjlfyFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si6315772edv.385.2020.10.09.08.48.21; Fri, 09 Oct 2020 08:48:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nrjlfyFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389298AbgJIPrC (ORCPT + 99 others); Fri, 9 Oct 2020 11:47:02 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:18570 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389144AbgJIPrC (ORCPT ); Fri, 9 Oct 2020 11:47:02 -0400 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 099Fkdow031281; Sat, 10 Oct 2020 00:46:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 099Fkdow031281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1602258400; bh=uPHqCtH8kBQ7ooTjgeJwJmEs8QwVySn7ud+lvCOesSw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nrjlfyFUFt3jPXO/bY1d3TpLjsyP24l4TetE1EaFUPVS06e/LCFER9MbUClHx88Vp 5l8W5hj6Pon+XwVWPsezWmHqLk7zbqISpwyoYJHdUKFqygwbIzgd37Wm3Xm9TGWc1s KSZDwFyI9DjtX1hYD12snc/09SphcSm1kXlwiAizLMcXzXNxmr4OytkPW9B8pb6+XT /U8BAjaJdLb7T26H7LbcMW2XU2AoRUUQLQeJL9bQUdHi3F1GT+ZyPpc7WOLgq+1Yoo VLWAgtqH8/7cgRIStTryQEVMPKV1L6H7E10KZcuZXdLk3QSCoyrD0Az6GMDevhZXzr sOzrvx/Itwavg== X-Nifty-SrcIP: [209.85.214.173] Received: by mail-pl1-f173.google.com with SMTP id h2so4627166pll.11; Fri, 09 Oct 2020 08:46:39 -0700 (PDT) X-Gm-Message-State: AOAM532FQ26RVAGPTjbtQECQWQKPB2tB4vVexaMka3NEfxSDSSvJXXXz 0hogTneEQ1FgAK46fsRSPYItUVLsAgwesKdHRwQ= X-Received: by 2002:a17:902:c3d4:b029:d3:df24:1619 with SMTP id j20-20020a170902c3d4b02900d3df241619mr12143028plj.1.1602258398929; Fri, 09 Oct 2020 08:46:38 -0700 (PDT) MIME-Version: 1.0 References: <20200920222556.10002-1-guillem@hadrons.org> <20200920222556.10002-5-guillem@hadrons.org> In-Reply-To: <20200920222556.10002-5-guillem@hadrons.org> From: Masahiro Yamada Date: Sat, 10 Oct 2020 00:46:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/7] builddeb: Add support for all required debian/rules targets To: Guillem Jover Cc: Linux Kbuild mailing list , Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 7:48 AM Guillem Jover wrote: > > These have been required by the Debian policy for a while, even though > the tooling can detect and workaround their omission, but are a hard > requirement when using rootless builds. > Applied to linux-kbuild. Thanks. I added a little more explanation about why this patch is needed. [masahiro: The following Debian policy is particularly important for rootless builds: "Both binary-* targets should depend on the build target, or on the appropriate build-arch or build-indep target, so that the package is built if it has not been already." ] > Signed-off-by: Guillem Jover > --- > scripts/package/mkdebian | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian > index 69f2a6d7f009..dae6c0ec0bd6 100755 > --- a/scripts/package/mkdebian > +++ b/scripts/package/mkdebian > @@ -231,11 +231,15 @@ cat < debian/rules > > srctree ?= . > > -build: > +build-indep: > +build-arch: > \$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \ > KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile > > -binary-arch: > +build: build-arch > + > +binary-indep: > +binary-arch: build-arch > \$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \ > KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg > > -- > 2.28.0.297.g1956fa8f8d > -- Best Regards Masahiro Yamada