Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp48885rwd; Sat, 13 May 2023 12:37:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TJ4Sm15dBVJxgEHRiLGsoUO1nllv2hqT8X8fQednUl5LdVlIO+mLTA7UMcvJngK7HLnln X-Received: by 2002:a05:6a00:168b:b0:643:b9c9:e421 with SMTP id k11-20020a056a00168b00b00643b9c9e421mr32001519pfc.3.1684006667988; Sat, 13 May 2023 12:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684006667; cv=none; d=google.com; s=arc-20160816; b=t8M9CRIrFUyspdAOpGrPFWJV3weTxxOY0kXbRz3ms1TDS96+KIHbwinh/cKUUlisaT GDZh6ZhNH1JowTo/SiyE8lpKx1Y0Rso4YfM5dO2bzRCepVXPLm6kOsq2zbPBFvbrdCZ7 QjbAIABhmqW+beKVf2krkhdsGO0Jl4RY4yqauhQDaKruh0Lf0IV960BQA/aWDwsAMO35 aiU9alLzGZ4K6LUDgt53jpfmN6LnXYDmB0Krr7EEol9cxp3yU7QOghGJV+yFJwoBguMG ymTR8hd9AzAiey5sMBorfu1+pbebtFGVL8zIMKkjJ2nsL6MZ9R7ItOZRibKXtIs+ANmw D7Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=e+SMzSU4dAJYAloewLE0VXeuIZrxlhKoxdvjsCucXf0=; b=KjwL1kqJCG9vsPcdYGX/PF2TzpPYsrD2wELJuCdR4jTDL7lFsL7K4H4/dzNqPRqLyZ vFcHg+zTgk7V1ieS5fl/AU8COePoBYlP2jE5evyWRUJzKHBaF+4VH0TPYHMUZTP4dZ+P kt/P/XcIIPiotJn40hii/Ny21xocOmbc/lZw/Lp4fIhUlRwHl9LRnhhEzB5EQxb40GEX Sj8afQAUrXz23iroE6i3XcMOe75kpW7fEOios1DdkaC/8nLoLuu2C79bzBEeNYV9+cGF qvMQxq9vnGtYrH4LwXyf7UUeGmK8drQoNEzU4r7RbKPG0rkhwAo/iFDCaXdPhdtPKGyp u2zA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a631753000000b00513234112a7si11564906pgx.883.2023.05.13.12.37.35; Sat, 13 May 2023 12:37:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbjEMSvv (ORCPT + 99 others); Sat, 13 May 2023 14:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjEMSvu (ORCPT ); Sat, 13 May 2023 14:51:50 -0400 Received: from maynard.decadent.org.uk (maynard.decadent.org.uk [95.217.213.242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F49171D for ; Sat, 13 May 2023 11:51:48 -0700 (PDT) Received: from [213.219.167.32] (helo=deadeye) by maynard with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pxuL1-0007nD-35; Sat, 13 May 2023 20:51:27 +0200 Received: from ben by deadeye with local (Exim 4.96) (envelope-from ) id 1pxuKz-007N1Y-1u; Sat, 13 May 2023 20:51:25 +0200 Message-ID: <9fcf1d5f1612d45b60a65340d125364c5ae26dfb.camel@decadent.org.uk> Subject: Re: [PATCH] perf tools: Use $KBUILD_BUILD_TIMESTAMP as man page date From: Ben Hutchings To: Arnaldo Carvalho de Melo , Salvatore Bonaccorso Cc: Peter Zijlstra , Ingo Molnar , Alexander Shishkin , linux-kernel@vger.kernel.org Date: Sat, 13 May 2023 20:51:16 +0200 In-Reply-To: References: <20160517132809.GE7555@decadent.org.uk> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-2EmWy/SIbKwgYwszJqQR" User-Agent: Evolution 3.46.4-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 213.219.167.32 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on maynard); SAEximRunCond expanded to false X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 --=-2EmWy/SIbKwgYwszJqQR Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2023-05-10 at 09:59 -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, May 09, 2023 at 09:03:28PM +0200, Salvatore Bonaccorso escreveu: > > Hi Peter, Ingo, Arnaldo, > >=20 > > On Tue, May 17, 2016 at 02:28:09PM +0100, Ben Hutchings wrote: > > > This allows man pages to be built reproducibly. > > >=20 > > > Signed-off-by: Ben Hutchings > > > --- > > > --- a/tools/perf/Documentation/Makefile > > > +++ b/tools/perf/Documentation/Makefile > > > @@ -120,6 +120,9 @@ endif > > > ifdef DOCBOOK_SUPPRESS_SP > > > XMLTO_EXTRA +=3D -m manpage-suppress-sp.xsl > > > endif > > > +ifdef KBUILD_BUILD_TIMESTAMP > > > +ASCIIDOC_EXTRA +=3D -a revdate=3D$(shell date -u -d '$(KBUILD_BUILD_= TIMESTAMP)' +%Y-%m-%d) > > > +endif > > > =20 > > > SHELL_PATH ?=3D $(SHELL) > > > # Shell quote; > > > --- a/tools/perf/Documentation/asciidoc.conf > > > +++ b/tools/perf/Documentation/asciidoc.conf > > > @@ -71,6 +71,9 @@ ifdef::backend-docbook[] > > > [header] > > > template::[header-declarations] > > > > > > + > > > +template::[docinfo] > > > + > > > > > > {mantitle} > > > {manvolnum} > >=20 > > As we do apply the change in Downstream in Debian, I was wondering if > > it just felt trough the cracks and could still be applied. Is there > > anything missing? >=20 > Isn't this fixed in: >=20 > commit d586ac10ce56b2381b8e1d8ed74660c1b2b8ab0d > Author: Ian Rogers > Date: Fri Sep 20 21:13:27 2019 -0700 >=20 > perf docs: Allow man page date to be specified >=20 > With this change if a perf_date parameter is provided to asciidoc the= n > it will override the default date written to the man page metadata. [...] Not entirely, because the value for perf_date is currently generated with "git log", and Debian package builds are not done from a Git checkout. I'll revise my patch to allow perf_date to be set from KBUILD_BUILD_TIMESTAMP, which is already used in the kernel build. Ben. --=20 Ben Hutchings Life would be so much easier if we could look at the source code. --=-2EmWy/SIbKwgYwszJqQR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmRf3CQACgkQ57/I7JWG EQkSKg/9HldI3e96mr8bj+uUS34ySDEaf7m4gFRU4phX02nDUrm3Nk2R85iguTCa L+Hj4vLZqyI24RfNEKyvdROi7qz6TRyQAuUZittM2c+IQ0BSrxCWlBfzrppp2NUB 8Oz4T4I9NQVLYB3I0znRrbJAscMhhCKYYMa8fgJ4rhdpoYNYXggAgCoew58SnXgN E2qnHb8ARxQxMJ9G0+EkyvijfeHKgy/7BfpfXi1E6xIzpkE6xK0rMs0UuphwnYhE aiGZqKxo2FaBUEPUKgVwvEkjurlaeDrrnfU/L2UvjpkyOvjh3Iu7jo6ZtRDOip02 WTjhC9hsmfmyBvwH6Xe8nORp4wcVwNFYRBtGonyFHpE2wogwc0zgaeGk08dW6CkY KfiACsdDz1T/dqWCMYAwKj5ItJXXE9Sf8MTVAit+XleuJ4DMGiKHIbVlhesMCpdc rFZDh7awQsrxPdLOcQZ7xMzv0uPOnYamDZgqnvyP433KqP2U6yogwalBlgVyz891 +nDaRpB2lcNXuOPcwlacqla8e2EWD80jlrl4/8Kv8dpewhccpzwMDxwn4CdJv2Mk I62aHl+3znXltKusC26T28ly6zZ1h0Cy/kz++mM9YaZwAlx4itIWm6OFGVKUxelO 0EY2ecx1p+d7gXXw+qC2nABJNJ4VnTRLcerZgUQOIiIbgQFlkKU= =WjoT -----END PGP SIGNATURE----- --=-2EmWy/SIbKwgYwszJqQR--