All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wl@xen.org>
To: Hans van Kranenburg <hans@knorrie.org>
Cc: Maximilian Engelhardt <maxi@daemonizer.de>,
	xen-devel@lists.xenproject.org, Ian Jackson <iwj@xenproject.org>,
	Wei Liu <wl@xen.org>, Jan Beulich <jbeulich@suse.com>
Subject: Re: [XEN PATCH v2] docs: set date to SOURCE_DATE_EPOCH if available
Date: Tue, 5 Jan 2021 12:00:34 +0000	[thread overview]
Message-ID: <20210105120034.qzjlitwd3lxe5kyl@liuwe-devbox-debian-v2> (raw)
In-Reply-To: <f602c6d8-2e3d-806f-0584-ddb478b151b0@knorrie.org>

On Thu, Dec 24, 2020 at 08:02:37PM +0100, Hans van Kranenburg wrote:
> Hi,
> 
> On 12/23/20 5:56 PM, Maximilian Engelhardt wrote:
> > check if a GNU date that supports the '-u -d @...' options and syntax or
> > a BSD date are available. If so, use the appropriate options for the
> > date command to produce a custom date if SOURCE_DATE_EPOCH is defined.
> > If SOURCE_DATE_EPOCH is not defined or no suitable date command was
> > found, use the current date. This enables reproducible builds.
> > 
> > Signed-off-by: Maximilian Engelhardt <maxi@daemonizer.de>
> > 
> > Changes in v2:
> > - add capability detection for the 'date' command using ax_prog_date.m4
> > - add information about detected date command to config/Docs.mk
> > - only call a supported date command in docs/Makefile
> > ---
> > Please note the ax_prog_date.m4 macro is taken from the autoconf-archive
> > repository [1] and it's license is GPL v3 or later with an exception for
> > the generated configure script.
> > 
> > [1] https://www.gnu.org/software/autoconf-archive/
> > ---
> >  config/Docs.mk.in  |   3 +
> >  docs/Makefile      |  16 +++-
> >  docs/configure     | 213 +++++++++++++++++++++++++++++++++++++++++++++
> >  docs/configure.ac  |   9 ++
> >  m4/ax_prog_date.m4 | 139 +++++++++++++++++++++++++++++
> >  5 files changed, 379 insertions(+), 1 deletion(-)
> >  create mode 100644 m4/ax_prog_date.m4
> 
> Wait, what. The comment about the -d option already existing since 2005
> (in the previous thread) is relevant here...
> 
> I guess there would be other reasons why the whole current Xen master
> branch would not compile on e.g. Debian Sarge 3.1 from 2005... Like,
> amd64 did not even exist as release architecture yet, back then...
> 
> I'd prefer
> 
>   1 file changed, 7 insertions(+), 1 deletion(-)
> 
> over
> 
>   5 files changed, 379 insertions(+), 1 deletion(-)
> 
> in this case.
> 

I have not read the previous thread. I would rather prefer a smaller
patch than a larger one. I agree with Hans here.

Maximilian, what do you think?

Wei.


  reply	other threads:[~2021-01-05 12:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23 16:56 [XEN PATCH v2] docs: set date to SOURCE_DATE_EPOCH if available Maximilian Engelhardt
2020-12-24 19:02 ` Hans van Kranenburg
2021-01-05 12:00   ` Wei Liu [this message]
2021-01-05 22:45     ` Maximilian Engelhardt
2021-01-05 12:13 ` Olaf Hering

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=20210105120034.qzjlitwd3lxe5kyl@liuwe-devbox-debian-v2 \
    --to=wl@xen.org \
    --cc=hans@knorrie.org \
    --cc=iwj@xenproject.org \
    --cc=jbeulich@suse.com \
    --cc=maxi@daemonizer.de \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.