Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7325166rwr; Tue, 25 Apr 2023 11:11:03 -0700 (PDT) X-Google-Smtp-Source: AKy350ah1da8Zypy+V4bLyeAkO9AgBNveZwuMXCH7EqEaHm367jgrvj/1wWiu26BKg/OgihoLsEV X-Received: by 2002:a17:90b:388b:b0:247:6619:61de with SMTP id mu11-20020a17090b388b00b00247661961demr18996759pjb.46.1682446263431; Tue, 25 Apr 2023 11:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682446263; cv=none; d=google.com; s=arc-20160816; b=Q4C+dLeO5dQE0MR+4GZkW3zcmIEJfA6hxNchG+dUEzFChrjukCU5vjlHam99YBHCl2 4Pjgl+v5J18X+wzToYvjSmcScBgn8McW5eedhgwQGkHEVtQzkXnhGOY6QKh8+kv66RIU wbo4oF46xJ0V3k4HIAplO/77zkHXzO/LFgT/1hOv+O5z6c2X42S5Ib1VsPGKWgKzMSaj gsMcPdWAJeM55wpBOPscDzawbGAc3wx/SI2d3dtXcSNzZV3ajqmsW8sBQic+R4OlBbib 6sYvlMUaL+wSag1r/3HmpS7ohf3c46c6py9wi3Fl1ZJ4zhmij9ArxhLkQTAzfro2V3WA QO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Yu2RBGqIHYeNFNlFO5i4crlK0/+y62bo9x8nEJhf0Ho=; b=ciwzBCeMGby7DW5vu5oh4D7kyPEnPjopgEbWiay6IIqiS9hRQr7yLDL2N4LWpc1EqQ MZw85PUVfPHw315zToPzPcFOl019rTu25SgToMcQEGlPDMOt09zg0ilM6N8LZxMhgKMH Ml5pg4WZ1v1kYhjc9niI/yM1vdxEwbGxQJTiC5COGTYLxNIgasnHgWFCyN8o5fC68VgX asbdizvQW6t/zO8AbUgdo7TnMvKDmP8WiVkomVi+hoovDVwwv0+8s8uaB7yoUObo6sKG syfyc86r+JV6Fgk5l8MDjaquJA5aJF29st+Ao5ON68KZGPoXd+D8WAeWTcCOcT8EHRHz N6HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uDhmFSjo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 83-20020a630156000000b00520eac50926si14063311pgb.824.2023.04.25.11.10.47; Tue, 25 Apr 2023 11:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uDhmFSjo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235040AbjDYSII (ORCPT + 99 others); Tue, 25 Apr 2023 14:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234494AbjDYSIH (ORCPT ); Tue, 25 Apr 2023 14:08:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18F016188; Tue, 25 Apr 2023 11:08:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B0306296A; Tue, 25 Apr 2023 18:08:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56927C433D2; Tue, 25 Apr 2023 18:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682446085; bh=1c/iySntLL2tAru2rg3HGAKk4foULiGQ+TrL9KwD5+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uDhmFSjovHbtIFKGXov8t1lTW+4dGG0CG3nSxoWC/RQqFp7YSHLi4qWsiE3UnCYuI 6488vGTTBaT1U4zrYgXQHHCXu6fxTt15VGomGs86VEcsObxGRkzoGXsfVluvvCaaH8 X7N99jhNE+zN3brFB9yaGhQBCKiox17zwXfXVca7jL67goipbcwZypMaaL5izCdEdy u/0qzZxHzsTAE6vk8S4hcri6WmAPBgAlrbsdUq17bsdd52QJCSXtB1V29BNhF5rvX4 AQhEvwWvFTYT8oZ+eOvQIYAyygn3zjUMvvkv6NT3S6S41W4gTmsUuSXkFm+wb7wOtL yto/Lc3S+RwkQ== Date: Tue, 25 Apr 2023 11:08:02 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Nicolas Schier Subject: Re: [PATCH] kbuild: deb-pkg: specify targets in debian/rules as .PHONY Message-ID: <20230425180802.GA2881732@dev-arch.thelio-3990X> References: <20230425110859.1757001-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230425110859.1757001-1-masahiroy@kernel.org> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 25, 2023 at 08:08:59PM +0900, Masahiro Yamada wrote: > If a file with the same name exists, the target is not run. > > For example, the following command fails. > > $ make O=build-arch bindeb-pkg > [ snip ] > sed: can't read modules.order: No such file or directory > make[6]: *** [../Makefile:1577: __modinst_pre] Error 2 > make[5]: *** [../scripts/Makefile.package:150: intdeb-pkg] Error 2 > make[4]: *** [../Makefile:1657: intdeb-pkg] Error 2 > make[3]: *** [debian/rules:14: binary-arch] Error 2 > dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 > make[2]: *** [../scripts/Makefile.package:139: bindeb-pkg] Error 2 > > Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor > --- > > scripts/package/mkdebian | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian > index a4c2c2276223..b6cb95473548 100755 > --- a/scripts/package/mkdebian > +++ b/scripts/package/mkdebian > @@ -269,6 +269,8 @@ cat < debian/rules > srctree ?= . > KERNELRELEASE = ${KERNELRELEASE} > > +.PHONY: clean build build-arch build-indep binary binary-arch binary-indep > + > build-indep: > build-arch: > \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} \ > -- > 2.37.2 >