From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id B6BB0AC108B for ; Tue, 24 Jun 2025 14:57:28 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=muuuIBxWuvGKJ+dghKUGVDtv/7wwfDT4XQP6DY7z/oA=; c=relaxed/simple; d=groups.io; h=From:Date:To:Subject:Message-ID:References:MIME-Version:In-Reply-To:User-Agent:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition:Content-Transfer-Encoding; s=groups1; t=1750777048; v=1; x=1751036247; b=jh6BUJWB/oeJQ7fbXiNpuHw/qtIhnQfJyd7EghG5sJY2s0FHsgD4rtX5fhyy/SzTKRlxthT+ UwVVxwDKt2/KCdK6NjIuW+T6VYBqCwSfRQeXxzvO2lsprHkMg8N9Rex55L96+levp4bEOsZ7fAg TRGxEBtcNBBhB7mlHZSxo1y+fa7IR8/DLBsoEEwqtZotAUNkDmmAymwVoU3T/wUAgmBEfLvsgl6 tpKzmMeF6PmkYWsLcFkbSQNPLXd8oYigds/d9PeCAgopJ/PsBjQ4gdoqjkY+e4eumdnOQnEd8wJ Q2qhj7MFt5ICkLC3dwidmhYR8dbkxUCQY0KrG2qO250Ng== X-Received: by 127.0.0.2 with SMTP id ioliYY7687511xopdzClA0Hd; Tue, 24 Jun 2025 07:57:27 -0700 X-Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mx.groups.io with SMTP id smtpd.web10.452.1750777046062692195 for ; Tue, 24 Jun 2025 07:57:26 -0700 X-Received: by mail-wr1-f66.google.com with SMTP id ffacd0b85a97d-3a588da60dfso3313840f8f.1 for ; Tue, 24 Jun 2025 07:57:25 -0700 (PDT) X-Gm-Message-State: D61B4TzT7wqLiPggyaW7W8gyx7686176AA= X-Gm-Gg: ASbGncvegbzTLZSC0JmWM8rSvOuCI4q9rSXSfpxMNT5TG09LHx3gNMRaCuffQ8yW+Gt 9kSsrjE09p0aZbIG10PATAnDk3ISjvgpyMcyyoy+TB58tiwcoVfQCs30EL+a7sn6vWMIy4cKklI 7ddIHbfgKAZWtQuIs84/m6+HwUhvftKHJ4C8itTmh7AffHbNrmWINvskJh9iXyNQXMvclp/pz69 JN6fWlET6UTbMq0k3Yl1layLNPmKYTbJK1wlWQZC44rBrQUrBzFsiE35UyBMCoon3RYBirVYZqI ZBSY9+n/SaaG4uM4rG2234ECyAIYVYVTTAOXEaqxvUVM/gW8j2En67yElkAcvzNlT0FF016lhVt V9FqSujl5VElKU7om5A/H0AjdUPZd25avHgnJh0AYu4G96g== X-Google-Smtp-Source: AGHT+IHLsp+4jbL/5gLhtM8mRcHKV9tx8sEG5qbj2Lu9jcAAU65WHIOT/M9r50MCmqBoTjxcApkelw== X-Received: by 2002:a05:6000:2008:b0:3a4:f902:3872 with SMTP id ffacd0b85a97d-3a6d129da9fmr12160407f8f.19.1750777044109; Tue, 24 Jun 2025 07:57:24 -0700 (PDT) X-Received: from localhost.localdomain (1-164-84-179.dynamic-ip.hinet.net. [1.164.84.179]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b3218c00286sm4825239a12.73.2025.06.24.07.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jun 2025 07:57:23 -0700 (PDT) From: "Richard Lyu via groups.io" X-Google-Original-From: Richard Lyu Date: Tue, 24 Jun 2025 22:57:17 +0800 To: devel@edk2.groups.io, osde@linux.microsoft.com Subject: Re: [edk2-devel] Current State of Build Reproducibility in edk2 Message-ID: References: <7492707f-d532-4aaf-b65f-6093c77eaa81@linux.microsoft.com> <0a38cea9-b9e4-4721-83f3-8192eddd14af@linux.microsoft.com> MIME-Version: 1.0 In-Reply-To: <0a38cea9-b9e4-4721-83f3-8192eddd14af@linux.microsoft.com> User-Agent: Mutt/2.2.13 (2024-03-09) Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 24 Jun 2025 07:57:26 -0700 Resent-From: richard.lyu@suse.com Reply-To: devel@edk2.groups.io,richard.lyu@suse.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=groups1 header.b=jh6BUJWB; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Hi Oliver, I also noticed that edk2 is currently not reproducible in OvmfPkg because the stack cookie value has been randomized in AutoGen.h since edk2-stable202502. Fortunately, commit "cac0955658 BaseTools: Update Stack Cookie Logic" addresses this issue. By keeping the JSON files in the build directory, the STACK_COOKIE_VALUE can be made reproducible. I’ve tested this and was able to reproduce the same FDs and FVs with both edk2-stable202502 and edk2-stable202505. Perhaps you might like to give it a try as well. Best regards, Richard Lyu On 2025/06/19 09:53, Oliver Smith-Denny via groups.io wrote: > On 6/18/2025 5:21 PM, Michael D Kinney via groups.io wrote: > > Should work for physical platform builds. > > > > The OVMF and EmulatorPkg build may have some timestamps in them. > > > > If the EmbeddedPkg VirtualRealTimeClockLib is used, then it pulls in system time > > in Linux builds. I have a proposal to address this one queued up to support > > both windows and linux and reproducible builds when needed. > > > > [BuildOptions] > > GCC:*_*_*_CC_FLAGS = -DBUILD_EPOCH=`printenv SOURCE_DATE_EPOCH || date +%s` > > > > The following is a good resource on this topic and all the > > elements need to be tracked so issues do not get introduced. > > > > https://reproducible-builds.org/docs/ > > > > Thanks, let me play around with this some more. It may be that the > platform I started trying this with had some similar dependencies. > > Thanks, > Oliver > > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121428): https://edk2.groups.io/g/devel/message/121428 Mute This Topic: https://groups.io/mt/113714425/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-