Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp319227rdb; Wed, 17 Jan 2024 03:04:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDRMJ+yCcKtCvmE9gh6buS9QGLQvfRYB1uwAMXsYVcJLPHPy4++l7WSlaCXQ41R+5pje83 X-Received: by 2002:a05:620a:4885:b0:783:6a54:daa5 with SMTP id ea5-20020a05620a488500b007836a54daa5mr3209351qkb.93.1705489482862; Wed, 17 Jan 2024 03:04:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705489482; cv=pass; d=google.com; s=arc-20160816; b=Dboi5jK3Dhjododo2WzuUNbkdw0PqrP7opKX7y9omDB/+y5QZnHyOBufv/geK1HfmV tH2w0nsmX6yVZ0+7NtLfYVqMgyO/ZjH3AD9Q1YCdSz/OW+4IitALWJod9VFaxYX373By HrtRu2MYpg2ND8ZzVsVCQxv6QmqmnpRlqEl4aq7KxK40HPsCKn8fVpx2PfLlDCaEpQ42 55P4kK3bHU/qo+SXA+dm/dNg76vhFCHQUGVi2sqtq7lCva8qLX4N9Pa5aSiXJ0G3FIhJ Pn35VGL5EwgitG8+7fgq8rfwsYzjkNcmDCKb6BUPNHLTZKj2bDueAN9uo2Tj65WUQET2 Ue1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ehB8Nz/wponH4fIfqgCB5aicvVViblVGRmljnumyRpY=; fh=f3MDfshgIQeFn8t+tftuV9AOkBCG9PnQmaFs5Sw2L+Y=; b=vZm3YFT+3l5UaIt1N5MHPP4n0X4OmAN4E9kYMLjNNYsZvxgXyoOTJtjOkWIPV7EbPO Gw0PcXNb/dASXdNtXhIPh/gQGSXZppwWlXE+yIswZfAr1EqqOPXJTfLRYpW2gVoP7tQ9 bmaqgr0M98vNa8ykKHPFxFCwp2WMwIHsn91ku0cLKusE/0Wi7whTU5zU8CLsb8wATJMF 2++cGbKlYicCCD0Yy27uS/TaccN5vwoVbTK3Y/+ZjU0BNrcwGbp0oaksFohDKXtp9rb4 +PCZIti63KXgKE53v/Jla6Y1YMnMI91KSpSbSxoj1ZuFv6BqSzVwM0GVQyYFIsTrIX43 Cx2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=BduyVabK; arc=pass (i=1 spf=pass spfdomain=avm.de dkim=pass dkdomain=avm.de dmarc=pass fromdomain=avm.de); spf=pass (google.com: domain of linux-kernel+bounces-28877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pi38-20020a05620a37a600b00783525554c5si7485179qkn.330.2024.01.17.03.04.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 03:04:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28877-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; dkim=pass header.i=@avm.de header.s=mail header.b=BduyVabK; arc=pass (i=1 spf=pass spfdomain=avm.de dkim=pass dkdomain=avm.de dmarc=pass fromdomain=avm.de); spf=pass (google.com: domain of linux-kernel+bounces-28877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de 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 9B50E1C241DF for ; Wed, 17 Jan 2024 11:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 378791CFAC; Wed, 17 Jan 2024 11:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=avm.de header.i=@avm.de header.b="BduyVabK" Received: from mail.avm.de (mail.avm.de [212.42.244.94]) (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 2658C1D521; Wed, 17 Jan 2024 11:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.42.244.94 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705489476; cv=none; b=u5oPqsumE46/rfF7NHbiRGcKzHGqVSK4r/GaUWmr5lullvRvoHIMUHBKWlJ9sI6HZxs0TB2ABLBG+RJ9RiC+Qd/XniL6kbO69WHJQDRHVGdC/SKnsEuxvhCAZI0L4WzPKpF+wQvJAYj/C9kjw0TuaTXvCDb/Qx0bHlcS9CGTO/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705489476; c=relaxed/simple; bh=HrPZYQqbExd63Zfudzoo3ljRavdvSOtyLIQ4Bi8P7Tg=; h=DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-purgate-ID:X-purgate-type:X-purgate-size: X-purgate-Ad:X-purgate:X-purgate; b=mKPEyIGNcyBCeNDBgSVQrSEu6Ru5wMGoAQ+aQU9iMKmgbM4QdEaZlGgc8mo0yEVZr4rdUFOPCNE1chj/H4SGb/AO7mgKEhHO4LfXZDapID/z86MKxLgRRx73dG7s4tGYDPo3EznFRUG9K5zCv55bm/PNqnZUNrSTfd2r+ZP/oBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=avm.de; spf=pass smtp.mailfrom=avm.de; dkim=pass (1024-bit key) header.d=avm.de header.i=@avm.de header.b=BduyVabK; arc=none smtp.client-ip=212.42.244.94 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=avm.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=avm.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=avm.de; s=mail; t=1705489464; bh=HrPZYQqbExd63Zfudzoo3ljRavdvSOtyLIQ4Bi8P7Tg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BduyVabKK+1Mp1b/en1S1GIVo95XSaKeg9iUV5j3/Qsz3V59bntrKtrf9sWLTgsF+ pJoWe3w/5uMJd4+YAdKrVMuis7UA3GfUwDKAngDQ3QZuJpSsPGO/u2Z/7HQeUJhJhS jza/09Ri+UW9Bs9/mMCgaA2w2TCm/qTYA6csiq+E= Received: from mail-auth.avm.de (unknown [IPv6:2001:bf0:244:244::71]) by mail.avm.de (Postfix) with ESMTPS; Wed, 17 Jan 2024 12:04:23 +0100 (CET) Date: Wed, 17 Jan 2024 12:04:22 +0100 From: Nicolas Schier To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Ben Hutchings , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] kbuild: deb-pkg: show verbose log for direct package builds Message-ID: References: <20240113104339.16131-1-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: <20240113104339.16131-1-masahiroy@kernel.org> X-purgate-ID: 149429::1705489463-5855CEB6-63E38E50/0/0 X-purgate-type: clean X-purgate-size: 2019 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 Sat, Jan 13, 2024 at 07:43:36PM +0900, Masahiro Yamada wrote: > When the Debian package build is initiated by Kbuild ('make deb-pkg' > or 'make bindeb-pkg'), the log messages are displayed in the short > form, which is the Kbuild default. > > Otherwise, let's show verbose messages (unless the 'terse' tag is set > in DEB_BUILD_OPTION), as suggested by Debian Policy: "The package build > should be as verbose as reasonably possible, except where the terse tag > is included in DEB_BUILD_OPTIONS." [1] > > This is what the Debian kernel also does. [2] > > [1]: https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules > [2]: https://salsa.debian.org/kernel-team/linux/-/blob/debian/6.7-1_exp1/debian/rules.real#L36 > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: > - New patch > > scripts/package/debian/rules | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules > index 098307780062..697fbfa7595f 100755 > --- a/scripts/package/debian/rules > +++ b/scripts/package/debian/rules > @@ -11,6 +11,14 @@ ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))) > MAKEFLAGS += -j$(NUMJOBS) > endif > > +# When KBUILD_VERBOSE is undefined (presumably you are directly working with > +# the debianized tree), show verbose logs unless DEB_BUILD_OPTION=terse is set. > +ifeq ($(origin KBUILD_VERBOSE),undefined) > + ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) > + export KBUILD_VERBOSE := 1 > + endif > +endif > + > revision = $(lastword $(subst -, ,$(shell dpkg-parsechangelog -S Version))) > CROSS_COMPILE ?= $(filter-out $(DEB_BUILD_GNU_TYPE)-, $(DEB_HOST_GNU_TYPE)-) > make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE) KBUILD_BUILD_VERSION=$(revision) $(addprefix CROSS_COMPILE=,$(CROSS_COMPILE)) > -- > 2.40.1 > thanks! Reviewed-by: Nicolas Schier