All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominique Martinet <asmadeus@codewreck.org>
To: Alan Maguire <alan.maguire@oracle.com>
Cc: acme@kernel.org, andrii.nakryiko@gmail.com,
	dwarves@vger.kernel.org, jolsa@kernel.org, williams@redhat.com,
	kcarcia@redhat.com, dxu@dxuuu.xyz, eddyz87@gmail.com
Subject: Re: [PATCH dwarves] pahole: enable --reproducible_build when SOURCE_DATE_EPOCH is set
Date: Tue, 2 Jul 2024 08:35:47 +0900	[thread overview]
Message-ID: <ZoM9UymFjr5n8PPK@codewreck.org> (raw)
In-Reply-To: <149bf9d7-3ac4-43d0-ae73-28f685807c68@oracle.com>

Alan Maguire wrote on Mon, Jul 01, 2024 at 05:44:15PM +0100:
> >  - in theory, sure; this patch works. I say we can do this independantly
> > of any other effort. The propere way of setting reproducible build in
> > the kernel is not SOURCE_DATE_EPOCH but KBUILD_BUILD_TIMESTAMP and
> > handling it at kernel makefile level is sound.
> 
> Okay, so I propose we try and get the KBUILD_BUILD_TIMESTAMP-based
> change upstream. I'll send that later today. That doesn't mean we can't
> add the envvar-based method too, it just means we have something
> upstream that handles reproducible builds more explicitly.

Thanks.

> >  - in practice, (nixos hat) some modules won't set it but will only have
> > SOURCE_DATE_EPOCH available, and there are trees that won't be updated
> > for years (and that's being optimistic), so our local patch in pahole is
> > here to stay for a while and the benefits far outweight the rebasing
> > work.
> >  - (alpine hat) alpine doesn't seem to care as much about
> > reproducibility (the nixos patch wasn't in and nobody complained so far),
> > undecided at this point. Makefile.btf patch is probably good enough, but
> > since I'm maintaining the patch anyway it's no extra work to add it
> > there, undecided at this point.
> > 
> >
> 
> One thing I think would be worth doing in your patch would be adding
> debug logging (if in verbose mode) that we are enabling reproducible
> builds due to the presence of the SOURCE_DATE_EPOCH envvar. I don't
> think we can do this in the non-debug case because build logs would just
> be flooded with a few thousand of these messages for each module we add
> BTF to using pahole. With that small addition I'd be happy with the
> change. Can you send a v2 with that added? Thanks!

That makes sense, I'll send a v2 with a debug log message
tonight/tomorrow

-- 
Dominique Martinet | Asmadeus

      reply	other threads:[~2024-07-01 23:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-26  3:22 [PATCH dwarves] pahole: enable --reproducible_build when SOURCE_DATE_EPOCH is set Dominique Martinet
2024-06-26 14:29 ` Alan Maguire
2024-06-26 23:01   ` Dominique Martinet
2024-06-27 17:25     ` Alan Maguire
2024-06-28  8:31       ` Alan Maguire
2024-06-28 13:59         ` Arnaldo Carvalho de Melo
2024-06-28 19:44         ` Dominique Martinet
2024-07-01 16:44           ` Alan Maguire
2024-07-01 23:35             ` Dominique Martinet [this message]

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=ZoM9UymFjr5n8PPK@codewreck.org \
    --to=asmadeus@codewreck.org \
    --cc=acme@kernel.org \
    --cc=alan.maguire@oracle.com \
    --cc=andrii.nakryiko@gmail.com \
    --cc=dwarves@vger.kernel.org \
    --cc=dxu@dxuuu.xyz \
    --cc=eddyz87@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kcarcia@redhat.com \
    --cc=williams@redhat.com \
    /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.