Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initrd is not reproducible #2

Closed
osresearch opened this issue Aug 3, 2016 · 3 comments
Closed

initrd is not reproducible #2

osresearch opened this issue Aug 3, 2016 · 3 comments

Comments

@osresearch
Copy link
Collaborator

No description provided.

@osresearch osresearch added this to the reproduciblebuilds milestone Aug 3, 2016
@osresearch
Copy link
Collaborator Author

TODO: write a cpio processor that resets all of the dates.

@osresearch
Copy link
Collaborator Author

TODO: write a cpio process that also resets the inode numbers since they are being regenerated.

 000003c0: 30 30 30 30 30 30 30 30 30 44 30 30 30 30 30 30  000000000D000000
 000003d0: 30 30 62 69 6e 2f 62 61 73 65 6e 61 6d 65 00 00  00bin/basename..
 000003e0: 62 75 73 79 62 6f 78 00 30 37 30 37 30 31 30 30  busybox.07070100
-000003f0: 36 32 30 44 41 43 30 30 30 30 38 31 45 44 30 30  620DAC000081ED00
+000003f0: 36 32 31 30 33 30 30 30 30 30 38 31 45 44 30 30  621030000081ED00
 00000400: 30 30 30 33 45 38 30 30 30 30 30 33 45 38 30 30  0003E8000003E800
 00000410: 30 30 30 30 30 31 30 30 30 30 34 36 35 30 30 30  0000010000465000
 00000420: 30 34 42 46 33 30 30 30 30 30 30 30 30 30 30 30  04BF300000000000

@osresearch
Copy link
Collaborator Author

osresearch commented Aug 16, 2016

Fixed in commits 0646b0b and 74e2156

osresearch pushed a commit that referenced this issue Nov 29, 2016
@kylerankin kylerankin mentioned this issue Aug 30, 2019
techge pushed a commit to techge/heads that referenced this issue Jan 3, 2020
…quirements

X220 cbmem temp debug requirements
alex-nitrokey referenced this issue in Nitrokey/heads Jun 19, 2020
Pull in GPG fixes and be level with upstream
tlaurion added a commit that referenced this issue Feb 23, 2022
…be making CircleCI fail in the past days.

Heads build system is reextracting archives and reapplying patches on each iteration.
CircleCI optimizes building time by providing cache mechanisms and forces users to build a target under an hour.
This is to force Open Source projects (free tier) to not be leechers of the free tier.

In the past days, CircleCI bails on building coreboot 4.11 boards because some files being cached are already being present (created files from patches).
In those, two files were unwanted artifacts, recreated on top of coreboot 4.11 extracted original files (undesired .orig files), while bailing on the creating of src/security/tpm/sha1.c from patches/coreboot-4.11/0001-Add-Heads-TPM-measured-boot-support.patch.

Hopefully, this is CircleCI having a maximum of 3 automatically entered input (it fails on the 3rd)... And this fix will permit src/security/tpm/sha1.c and src/security/tpm/sha1.h to be skipped if existing.
Below, we see that CircleCI fills patch prompts with EOF 2 times, and then waits for input and then timeouts.

Here is the failing log trace from https://app.circleci.com/pipelines/github/tlaurion/heads/990/workflows/f2a430fd-dc8c-4e95-abe3-364a0e825533/jobs/4914/parallel-runs/0/steps/0-103:

Exerpt of that log:
if [ -d patches/coreboot-4.11 ] && [ -r patches/coreboot-4.11 ] ; then for patch in patches/coreboot-4.11/*.patch ; do echo "Applying patch file : $patch " ; ( cd /root/project/build/coreboot-4.11/ ; patch -p1 ) < $patch || exit 1 ; done ; fi
Applying patch file : patches/coreboot-4.11/0000-cpu-x86-smm-Use-PRIxPTR-to-print-uintptr_t.patch
patching file src/cpu/x86/smm/tseg_region.c
Applying patch file : patches/coreboot-4.11/0001-Add-Heads-TPM-measured-boot-support.patch
patching file src/Kconfig
The next patch would create the file src/Kconfig.orig,
which already exists!  Assume -R? [n] EOF
Apply anyway? [n] EOF
Skipping patch.
1 out of 1 hunk ignored
patching file src/include/program_loading.h
patching file src/lib/cbfs.c
patching file src/lib/hardwaremain.c
Hunk #2 succeeded at 549 (offset 8 lines).
patching file src/lib/rmodule.c
patching file src/security/tpm/Makefile.inc
The next patch would create the file src/security/tpm/sha1.c,
which already exists!  Assume -R? [n] make: *** [Makefile:507: /root/project/build/coreboot-4.11/.canary] Hangup

context deadline exceeded
weyounsix referenced this issue in weyounsix/heads Sep 24, 2022
* match new build dir structure from heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant