public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Marek <mmarek@suse.cz>
To: Arnaud Lacombe <lacombar@gmail.com>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kconfig: do not record timestamp in .config
Date: Mon, 16 May 2011 10:29:32 +0200	[thread overview]
Message-ID: <4DD0E06C.2040009@suse.cz> (raw)
In-Reply-To: <1305516176-4072-1-git-send-email-lacombar@gmail.com>

On 16.5.2011 05:22, Arnaud Lacombe wrote:
> Hi Michal,
>
> The following patch removes the timestamp in .config file. This is a
> prerequiresite for the revised version of the printer merge I sent back
> in December[0]. The issue is that heading comment generations will be
> merged in a single function, and that would revert the deterministic
> change you made in mid-April.
>
> The other options are either to have timestamp always enabled and
> disable them selectively, but that might be a pain to implement, or to
> have timestamp disable by default and an environment variable, say
> KCONFIG_TIMESTAMP, to turn everything on manually.

I personally am not a big fan of embedded timestamps, so

Acked-by: Michal Marek <mmarek@suse.cz>

But I'll wait some time before merging this, in case there are 
objections from others...

Michal


>
> Regards,
>   - Arnaud
>
> [0]: https://patchwork.kernel.org/patch/380631/
>
> --
>
> From: Arnaud Lacombe<lacombar@gmail.com>
> Subject: kconfig: do not record timestamp in .config
>
> Signed-off-by: Arnaud Lacombe<lacombar@gmail.com>
> ---
>   Documentation/kbuild/kconfig.txt |    5 -----
>   scripts/kconfig/confdata.c       |   12 +-----------
>   2 files changed, 1 insertions(+), 16 deletions(-)
>
> diff --git a/Documentation/kbuild/kconfig.txt b/Documentation/kbuild/kconfig.txt
> index cca46b1..c313d71 100644
> --- a/Documentation/kbuild/kconfig.txt
> +++ b/Documentation/kbuild/kconfig.txt
> @@ -48,11 +48,6 @@ KCONFIG_OVERWRITECONFIG
>   If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
>   break symlinks when .config is a symlink to somewhere else.
>
> -KCONFIG_NOTIMESTAMP
> ---------------------------------------------------
> -If this environment variable exists and is non-null, the timestamp line
> -in generated .config files is omitted.
> -
>   ______________________________________________________________________
>   Environment variables for '{allyes/allmod/allno/rand}config'
>
> diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
> index 834eecb..2bafd9a 100644
> --- a/scripts/kconfig/confdata.c
> +++ b/scripts/kconfig/confdata.c
> @@ -560,8 +560,6 @@ int conf_write(const char *name)
>   	const char *basename;
>   	const char *str;
>   	char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1];
> -	time_t now;
> -	int use_timestamp = 1;
>   	char *env;
>
>   	dirname[0] = 0;
> @@ -598,19 +596,11 @@ int conf_write(const char *name)
>   	if (!out)
>   		return 1;
>
> -	time(&now);
> -	env = getenv("KCONFIG_NOTIMESTAMP");
> -	if (env&&  *env)
> -		use_timestamp = 0;
> -
>   	fprintf(out, _("#\n"
>   		       "# Automatically generated make config: don't edit\n"
>   		       "# %s\n"
> -		       "%s%s"
>   		       "#\n"),
> -		     rootmenu.prompt->text,
> -		     use_timestamp ? "# " : "",
> -		     use_timestamp ? ctime(&now) : "");
> +		     rootmenu.prompt->text);
>
>   	if (!conf_get_changed())
>   		sym_clear_all_valid();


  reply	other threads:[~2011-05-16  8:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-16  3:22 [PATCH] kconfig: do not record timestamp in .config Arnaud Lacombe
2011-05-16  8:29 ` Michal Marek [this message]
2011-05-24 14:16   ` Arnaud Lacombe
2011-05-24 14:19     ` Michal Marek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DD0E06C.2040009@suse.cz \
    --to=mmarek@suse.cz \
    --cc=lacombar@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox