Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3235482rdb; Wed, 27 Dec 2023 00:10:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCCR8MN+RGBR2mCuq4jyVQkom/2YgxegWaUqYaoFqV4MV5FFJuNpm3gq1gqrUKffqV9OBz X-Received: by 2002:ac8:5d88:0:b0:427:a58d:6a03 with SMTP id d8-20020ac85d88000000b00427a58d6a03mr8715718qtx.14.1703664609370; Wed, 27 Dec 2023 00:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703664609; cv=none; d=google.com; s=arc-20160816; b=Nh50sC/TMa/zQQ7ysHbwZknFXFW+qAixewRtE94q//s4UY5Ic/5T+Ky9+EuFZLuVnj qhH44SZ4olMUr5Lcra5Gs3MWPe4gzg/LUDTsZG5PnpUkgBUzx+JiUuLSCTdYw1opTBAA EF4TAW95EnrQOUalINWGWcqd99J84MqbifkTPWHYO50rV0mCONclFayVQqQOYYqv/VKi 2Ti+qQ0ZemfKXm5lB6ueH4yBIa41vnp5BoycVNS6rXAhNPTD/nn2DOr7ACdTc0+opAD7 476998wtKswcMHJMAq1firPvzXiun0TxJuEPAmR3JvZItywJHksf7XDHqubWoEB9cEwj qzOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :mail-followup-to:message-id:subject:cc:to:from:date; bh=gsLVjDHgtO8rB1pwebRjZK9MjYIM3ey5q2/T6VhEb7o=; fh=f0A9nhGK9owKAvfuKSRYno7NswmG9iY69dN8ddydz6c=; b=DEWU2flTsBwMB4Ma+mPYiGyY7LAK1OJ5dMoyiNxP+5weanDu6d5bePHcYkRPrA9uzA 6lD/gXs35Uq5E37eTPKw7jTIt/+fSeDbMN42E63SLk4gIai7Z6ko5k2o7Iyfq6idy4Y+ DOSAKmlGiTXGR9VEJyFjuoupo9S4GZqapHFU5viBKQaFYdQ7L6E+0FgXII7HHWKy56zY 8ZIfu3uV948e9GSvl8ZBlrBhO011Ank5PNRTRqPzBbb31WSYYLxlO6hgk7IbhKFxSQza O565346RETRDljiPRK8JAAEQ3xCva1Mz1eSLUdTQKjis6x2NRYXoTeaY937L2XRS8U7U CLCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c9-20020a05622a058900b00425629552b9si14011673qtb.204.2023.12.27.00.10.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 00:10:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1CA6C1C222C3 for ; Wed, 27 Dec 2023 08:10:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E37763C0; Wed, 27 Dec 2023 08:10:02 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail.avm.de (mail.avm.de [212.42.244.120]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 102AE63A8; Wed, 27 Dec 2023 08:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fjasle.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=avm.de Received: from mail-auth.avm.de (dovecot-mx-01.avm.de [212.42.244.71]) by mail.avm.de (Postfix) with ESMTPS; Wed, 27 Dec 2023 09:09:48 +0100 (CET) Received: from buildd.core.avm.de (buildd-sv-01.avm.de [172.16.0.225]) by mail-auth.avm.de (Postfix) with ESMTPA id C5F378001F; Wed, 27 Dec 2023 09:09:53 +0100 (CET) Received: by buildd.core.avm.de (Postfix, from userid 1000) id C181418297D; Wed, 27 Dec 2023 09:09:53 +0100 (CET) Date: Wed, 27 Dec 2023 09:09:53 +0100 From: Nicolas Schier To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Ben Hutchings , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] kbuild: deb-pkg: allow to run debian/rules from output directory Message-ID: Mail-Followup-To: Masahiro Yamada , linux-kbuild@vger.kernel.org, Ben Hutchings , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org References: <20231226135243.1393780-1-masahiroy@kernel.org> <20231226135243.1393780-4-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231226135243.1393780-4-masahiroy@kernel.org> Organization: AVM GmbH X-purgate-ID: 149429::1703664588-FC32BDFE-E9E5F8BA/0/0 X-purgate-type: clean X-purgate-size: 1293 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean On Tue, Dec 26, 2023 at 10:52:41PM +0900, Masahiro Yamada wrote: > 'make O=... deb-pkg' creates the debian directory in the output > directory. However, currently it is impossible to run debian/rules > created in the separate output directory. > > This commit delays the $(srctree) expansion by escaping '$' and by > quating the entire command, making it possible to run debian/rules in quating -> quoting > the output directory. > > Signed-off-by: Masahiro Yamada > --- > > scripts/package/debian/rules | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules > index 8f24a8e84bf2..6b2333e3cf96 100755 > --- a/scripts/package/debian/rules > +++ b/scripts/package/debian/rules > @@ -19,7 +19,7 @@ binary: binary-arch binary-indep > binary-indep: build-indep > binary-arch: build-arch > $(MAKE) -f $(srctree)/Makefile $(make-opts) \ > - run-command KBUILD_RUN_COMMAND=+$(srctree)/scripts/package/builddeb > + run-command KBUILD_RUN_COMMAND='+$${srctree}/scripts/package/builddeb' That's a nice trick. Reviewed-by: Nicolas Schier > > .PHONY: build build-indep build-arch > build: build-arch build-indep > -- > 2.40.1 >